GlucoseIQ

Choose a Package

Pick the smallest GlucoseIQ package that owns the contract your application needs.

GlucoseIQ splits analytics from framework adapters. Start with @glucoseiq/core, then add a package when your application needs its API.

GlucoseIQ 1.0 package selection
PackageOwnsAdd it whenRuntime relationship
@glucoseiq/coreAnalytics, mapped ingestion, connectors, interoperability, and optional SVG renderersYou need glucose-data primitives or render-ready dataNo runtime dependencies
@glucoseiq/reactMemoized hooks and React wrappers for the core SVG renderersYour client interface uses React 18 or newerDepends on core; React is a peer
@glucoseiq/tokensZone names, thresholds, palettes, trend glyphs, and CSS variablesYou are building your own visual layerNo runtime dependencies
@glucoseiq/testingSeeded synthetic CGM-shaped fixturesYou need repeatable tests, demos, stories, or screenshotsDepends on core types and contracts
@glucoseiq/cliMapped delimited-data reports, JSON output, and AGP-style SVG filesYou need a terminal workflow or an injectable command runnerDepends on core; exposes the glucoseiq executable
diabetic-utilsThe 107-export compatibility bridgeYou are migrating an existing diabetic-utils applicationVersion 2 re-exports core; 1.5 remains on the legacy tag

All published packages require Node.js 24 or newer. The React package keeps a react >=18 peer range and is the only package with a React boundary.

Start with core

Install only the engine when you own the UI, use another framework, or run analytics in a server process:

npm install @glucoseiq/core

The root export covers the main data model and analytics. Four public subpaths group APIs by responsibility:

  • @glucoseiq/core/metrics for individual metrics
  • @glucoseiq/core/connectors for supported payload normalizers
  • @glucoseiq/core/interop for interoperability helpers
  • @glucoseiq/core/render for optional SVG-string renderers

See the core API reference for the public contract.

Add packages by boundary

Use React when React owns presentation, tokens when your design system owns rendering, testing for synthetic fixtures, and the CLI for file-oriented terminal workflows. The API reference lists each package's public exports.

Install only the packages your application uses. The package boundaries show which code belongs in browser bundles and which dependencies affect upgrades.

Migrate existing applications

New applications should import @glucoseiq/core directly. Existing diabetic-utils applications can move through the compatibility package without losing the 1.5 public export surface. Follow the migration guide for version, runtime, and import changes.

On this page