features/home
Feature architecture
UI and flows live by feature
Omnisentia web
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.
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
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,
})