https://github.com/bidmcdigitalpsychiatry/lamp-js

The JavaScript API client for the LAMP Platform.

https://github.com/bidmcdigitalpsychiatry/lamp-js

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

The JavaScript API client for the LAMP Platform.

Basic Info
  • Host: GitHub
  • Owner: BIDMCDigitalPsychiatry
  • License: bsd-3-clause
  • Language: TypeScript
  • Default Branch: master
  • Homepage: https://docs.lamp.digital/
  • Size: 556 KB
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • Open Issues: 3
  • Releases: 31
Created about 6 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

JavaScript & TypeScript API client for the LAMP Platform

Overview

This API client is used to connect to the LAMP Platform from the JavaScript and TypeScript programming languages. Visit our documentation for more information about the LAMP Platform.

Installation

Prerequisites

Install the package directly from the GitHub repository.

sh npm i lamp-core

Configuration

Ensure your serverAddress is set correctly. If using the default server, it will be api.lamp.digital. Keep your accessKey (sometimes an email address) and secretKey (sometimes a password) private and do not share them with others.

javascript import LAMP from 'lamp-core' await LAMP.connect({ serverAddress: '...', accessKey: '...', secretKey: '...' })

API Endpoints

All URIs are relative to the serverAddress (by default, api.lamp.digital) with the https:// protocol.

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- LAMP.API | query | POST / | Query the LAMP Database. LAMP.API | schema | GET / | View the API schema document. LAMP.Activity | all | GET /activity | Get the set of all activities. LAMP.Activity | allByParticipant | GET /participant/{participantid}/activity | Get all activities for a participant. LAMP.Activity | allByResearcher | GET /researcher/{researcherid}/activity | Get all activities for a researcher. LAMP.Activity | allByStudy | GET /study/{studyid}/activity | Get all activities in a study. LAMP.Activity | create | POST /study/{studyid}/activity | Create a new Activity under the given Study. LAMP.Activity | delete | DELETE /activity/{activityid} | Delete an Activity. LAMP.Activity | update | PUT /activity/{activityid} | Update an Activity's settings. LAMP.Activity | view | GET /activity/{activityid} | Get a single activity, by identifier. LAMP.ActivityEvent | allByParticipant | GET /participant/{participantid}/activityevent | Get all activity events for a participant. LAMP.ActivityEvent | allByResearcher | GET /researcher/{researcherid}/activityevent | Get all activity events for a researcher by participant. LAMP.ActivityEvent | allByStudy | GET /study/{studyid}/activityevent | Get all activity events for a study by participant. LAMP.ActivityEvent | create | POST /participant/{participantid}/activityevent | Create a new ActivityEvent for the given Participant. LAMP.ActivityEvent | delete | DELETE /participant/{participantid}/activityevent | Delete a ActivityEvent. LAMP.ActivitySpec | all | GET /activityspec | Get all ActivitySpecs registered. LAMP.ActivitySpec | create | POST /activityspec | Create a new ActivitySpec. LAMP.ActivitySpec | delete | DELETE /activityspec/{activityspecname} | Delete an ActivitySpec. LAMP.ActivitySpec | update | PUT /activityspec/{activityspecname} | Update an ActivitySpec. LAMP.ActivitySpec | view | GET /activityspec/{activityspecname} | View an ActivitySpec. LAMP.Credential | create | POST /type/{typeid}/credential | LAMP.Credential | delete | DELETE /type/{typeid}/credential/{accesskey} | LAMP.Credential | list | GET /type/{typeid}/credential | LAMP.Credential | update | PUT /type/{typeid}/credential/{accesskey} | LAMP.Participant | all | GET /participant | Get the set of all participants. LAMP.Participant | allByResearcher | GET /researcher/{researcherid}/participant | Get the set of all participants under a single researcher. LAMP.Participant | allByStudy | GET /study/{studyid}/participant | Get the set of all participants in a single study. LAMP.Participant | create | POST /study/{studyid}/participant | Create a new Participant for the given Study. LAMP.Participant | delete | DELETE /participant/{participantid} | Delete a participant AND all owned data or event streams. LAMP.Participant | update | PUT /participant/{participantid} | Update a Participant's settings. LAMP.Participant | view | GET /participant/{participantid} | Get a single participant, by identifier. LAMP.Researcher | all | GET /researcher | Get the set of all researchers. LAMP.Researcher | create | POST /researcher | Create a new Researcher. LAMP.Researcher | delete | DELETE /researcher/{researcherid} | Delete a researcher. LAMP.Researcher | update | PUT /researcher/{researcherid} | Update a Researcher's settings. LAMP.Researcher | view | GET /researcher/{researcherid} | Get a single researcher, by identifier. LAMP.Sensor | all | GET /sensor | Get the set of all sensors. LAMP.Sensor | allByParticipant | GET /participant/{participantid}/sensor | Get all sensors for a participant. LAMP.Sensor | allByResearcher | GET /researcher/{researcherid}/sensor | Get all sensors for a researcher. LAMP.Sensor | allByStudy | GET /study/{studyid}/sensor | View all sensors in a study. LAMP.Sensor | create | POST /study/{studyid}/sensor | Create a new Sensor under the given Study. LAMP.Sensor | delete | DELETE /sensor/{sensorid} | Delete a Sensor. LAMP.Sensor | update | PUT /sensor/{sensorid} | Update an Sensor's settings. LAMP.Sensor | view | GET /sensor/{sensorid} | Get a single sensor, by identifier. LAMP.SensorEvent | allByParticipant | GET /participant/{participantid}/sensorevent | Get all sensor events for a participant. LAMP.SensorEvent | allByResearcher | GET /researcher/{researcherid}/sensorevent | Get all sensor events for a researcher by participant. LAMP.SensorEvent | allByStudy | GET /study/{studyid}/sensorevent | Get all sensor events for a study by participant. LAMP.SensorEvent | create | POST /participant/{participantid}/sensorevent | Create a new SensorEvent for the given Participant. LAMP.SensorEvent | delete | DELETE /participant/{participantid}/sensorevent | Delete a sensor event. LAMP.SensorSpec | all | GET /sensorspec | Get all SensorSpecs registered. LAMP.SensorSpec | create | POST /sensorspec | Create a new SensorSpec. LAMP.SensorSpec | delete | DELETE /sensorspec/{sensorspecname} | Delete an SensorSpec. LAMP.SensorSpec | update | PUT /sensorspec/{sensorspecname} | Update an SensorSpec. LAMP.SensorSpec | view | GET /sensorspec/{sensorspecname} | Get a SensorSpec. LAMP.Study | all | GET /study | Get the set of all studies. LAMP.Study | allByResearcher | GET /researcher/{researcherid}/study | Get the set of studies for a single researcher. LAMP.Study | create | POST /researcher/{researcherid}/study | Create a new Study for the given Researcher. LAMP.Study | delete | DELETE /study/{studyid} | Delete a study. LAMP.Study | update | PUT /study/{studyid} | Update the study. LAMP.Study | view | GET /study/{studyid} | Get a single study, by identifier. LAMP.Type | getAttachment | GET /type/{typeid}/attachment/{attachmentkey} | LAMP.Type | getDynamicAttachment | GET /type/{typeid}/attachment/dynamic/{attachmentkey} | LAMP.Type | listAttachments | GET /type/{typeid}/attachment | LAMP.Type | parent | GET /type/{typeid}/parent | Find the owner(s) of the resource. LAMP.Type | setAttachment | PUT /type/{typeid}/attachment/{attachmentkey}/{target} | LAMP.Type | setDynamicAttachment | PUT /type/{typeid}/attachment/dynamic/{attachmentkey}/{target} |

Documentation for Models

Owner

  • Name: BIDMC Division of Digital Psychiatry
  • Login: BIDMCDigitalPsychiatry
  • Kind: organization
  • Email: team@digitalpsych.org
  • Location: Longwood Medical Area, Boston, MA, US

GitHub Events

Total
  • Release event: 21
  • Delete event: 7
  • Push event: 31
  • Pull request review event: 16
  • Pull request event: 35
  • Create event: 26
Last Year
  • Release event: 21
  • Delete event: 7
  • Push event: 31
  • Pull request review event: 16
  • Pull request event: 35
  • Create event: 26

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 1
  • Total pull requests: 73
  • Average time to close issues: 7 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 1
  • Total pull request authors: 6
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.07
  • Merged pull requests: 64
  • Bot issues: 0
  • Bot pull requests: 3
Past Year
  • Issues: 1
  • Pull requests: 35
  • Average time to close issues: 7 days
  • Average time to close pull requests: about 6 hours
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 31
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sarithapillai8 (1)
Pull Request Authors
  • sarithapillai8 (53)
  • falmeida-orangeloops (9)
  • mcurbelo-orangeloops (5)
  • dependabot[bot] (3)
  • Linoy339 (2)
  • bvescovi-orangeloops (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (3)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 432 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 5
  • Total versions: 38
  • Total maintainers: 1
npmjs.org: lamp-core

The JavaScript and TypeScript API client for the LAMP Platform.

  • Versions: 38
  • Dependent Packages: 2
  • Dependent Repositories: 5
  • Downloads: 432 Last month
Rankings
Dependent repos count: 5.0%
Dependent packages count: 8.8%
Average: 11.3%
Stargazers count: 13.1%
Downloads: 14.0%
Forks count: 15.4%
Maintainers (1)
Last synced: 10 months ago

Dependencies

package-lock.json npm
  • @types/node 13.11.1 development
  • buffer-from 1.1.1 development
  • source-map 0.6.1 development
  • source-map-support 0.5.16 development
  • typescript 3.8.3 development
  • isomorphic-fetch 3.0.0
  • jsonata 1.8.4
  • node-fetch 2.6.1
  • url-search-params-polyfill 7.0.1
  • whatwg-fetch 3.6.2
package.json npm
  • @types/node ^13.11.1 development
  • source-map-support ^0.5.16 development
  • typescript ^3.7.0 development
  • isomorphic-fetch ^3.0.0
  • jsonata ^1.8.4
  • url-search-params-polyfill ^7.0.0
.github/workflows/publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite