Skip to content

Validic/inform-quickstart

Repository files navigation

Inform Quickstart

A working web app that demonstrates the four steps of the Validic Inform API: provision a user, connect a device, retrieve health data, and stream real-time events — all with your own credentials.

Clone it, run it, then use it as the starting point for whatever you want to build.

Prerequisites

Setup

1. Clone this repo

git clone https://github.com/validic/inform-quickstart.git
cd inform-quickstart
npm install

2. Add your credentials

cp .env.example .env

Open .env and fill in two values:

ORG_ID=your_org_id_here
ORG_TOKEN=your_org_token_here

Both are available in your Validic dashboard.

3. Start the app

npm start

On startup, the app finds or creates a Validic user and stream for your org automatically. Open http://localhost:3000.

What you're looking at

The app walks through the four-step Inform integration pattern:

Section What it demonstrates
Connect Your Device GET /users/:id/apps — list connected sources; redirect to Marketplace
Your Data GET /users/:id/:type — pull 30 days of normalized health data
Live Stream SSE via /streams/:id/connect — real-time data as it arrives
Replay last 30 days SSE via /replay — historical events through the same stream interface

All Validic API calls happen in server.js. The frontend only talks to localhost.

Extending this

  • Add a database — swap .env state for SQLite or Postgres to support multiple users
  • Add a frontend framework — the public/ folder is plain HTML/JS; drop in React or Vue
  • Add alert rules — use the Rules API to trigger notifications when thresholds are crossed

API Reference

About

Get started building with Validic Inform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages