Skip to content

hds-lib

LibraryGitHub

The core JavaScript/TypeScript library powering all HDS applications.

  • HDSModel — loads and provides access to the HDS data model (items, streams, event types, datasources)
  • appTemplates — AppManagingAccount, Collector, CollectorRequest patterns for doctor/researcher apps
  • HDSSettings — user settings singleton (theme, locale, timezone, date format)
  • HDSProfile — user profile management
  • eventToShortText — shared event formatter for diary display
  • Pryv integration — re-exports and patches for Pryv.io client library
  • ESM module ("type": "module")
  • TypeScript source in ts/, compiled to js/ via prepare script
  • Published as git dependency: git+https://github.com/healthdatasafe/hds-lib-js.git