Omnisentia web

Feature-based Next.js starter with a CGM service layer.

App code is split into features and infrastructure, and role-specific files now use suffixes like *.service.ts, *.schema.ts, *.dto.ts, and *.component.tsx.

Open authOpen sandbox test

features/home

Feature architecture

UI and flows live by feature

features/cgm

CGM service

Provider-agnostic service with Dexcom implementation

infrastructure/*

Infrastructure

Env and database wiring

zod schemas

Validation

Input and API payloads are parsed explicitly

Feature: cgm

CGM service with Dexcom as one implementation

The public service is provider-oriented around CGM data. Dexcom is currently the first implementation behind that contract, and its authorized connection is now stored per Better Auth user.

Example server usage

const readings = await cgmService.getLatestReadings({
  accessToken,
  minutes: 180,
})