Axioma is an MVP between-session intelligence layer. It turns patient reflection into structured summaries that therapists can retrieve before or around sessions.
This repository exists to prove one product claim: structured summaries plus grounded retrieval can improve therapist understanding between sessions.
- Axioma is not an EHR, telehealth platform, or therapist replacement.
- Summaries are the core therapist-facing memory unit.
- Retrieval happens before therapist-facing generation.
- AI is a stateless processor, not system memory.
- Current implementation status:
apps/webcontains early placeholder patient and therapist surfaces.apps/apicurrently provides Fastify app setup, CORS, Swagger, and a health route.- Prisma models a simplified MVP slice with
User,Organization,Membership,TherapistPatientAssignment,ReflectionEntry, andAiSummary. packages/sharedcontains the current shared schemas and types for reflection input, roles, and summaries.
apps/web- Next.js frontendapps/api- Fastify backendpackages/shared- shared contracts and schemasdocs- repo-facing source of truthai/skills- project-specific agent guidance
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS 4
lucide-react
- Node.js
- Fastify 5
- TypeScript
- Zod
- Swagger via Fastify plugins
- PostgreSQL
- Prisma
- pnpm workspaces
- Prettier
- ESLint
- Docker Compose
- GitHub Actions CI
pnpm install
pnpm dev
pnpm build
pnpm lint
pnpm test
pnpm format- If product truth, architecture, models, or workflow boundaries change, update docs in the same change.
- Use the Google Drive
Codingfolder as the broader product source of truth. - Reconcile Drive docs against checked-in code before claiming something is implemented.
- Keep summaries and retrieval-first architecture central in docs and code.
- Expand the backend from health/docs scaffolding into the MVP request flow.
- Keep schema and API contracts aligned with the summary-centric model.
- Add the first grounded therapist retrieval flow without expanding beyond MVP.