No client-side Prisma
Designed as an explicit, testable part of the Atlas AI product boundary.
Docs · API Overview
Atlas AI does not expose a broad public financial API. Server actions and narrow route handlers support the application while repositories, credentials and raw financial context remain behind server boundaries.
Core principles
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
System view
In depth
Income, expenses, debts, memory and reminders use validated server-side workflows rather than exposing raw persistence operations.
The coach route accepts controlled application intent and never accepts browser credentials or arbitrary raw financial context.
Rate refresh runs server-side and returns limited application-safe status without exposing upstream credentials or raw errors.
The current route surface supports the application and is not published as a versioned third-party API contract.
Repository source
Atlas AI separates financial truth, persistence, scenarios, and AI explanation. Higher layers may interpret deterministic outputs but cannot replace them.
flowchart TD
UI["Next.js App Router UI"] --> INPUT["Validated Financial Inputs"]
INPUT --> ENGINE["Deterministic Finance Engine"]
ENGINE --> SERVICES["Forecast / Decision / Memory / Reminder"]
SERVICES --> CONTEXT["Minimized Coach Context"]
CONTEXT --> REGISTRY["AI Provider Registry"]
REGISTRY --> MOCK["Mock"]
REGISTRY --> SERVER["Server-side Providers"]
REGISTRY --> LOCAL["Local Providers"]
SERVICES --> USER["User Review and Decision"]
REGISTRY --> USERNext.js pages and React components display current reality, evidence, scenarios, forecasts, reminders, memory, and AI explanations. UI copy distinguishes calculated facts, assumptions, temporary scenarios, and user decisions.
The finance engine calculates monthly allocation, living budget, risk, payment priority, and payoff projections. It is independent from AI providers and persistence implementations.
Forecast, scenario, decision, memory, trend, recommendation, and reminder services derive structured outputs from finance snapshots. Temporary scenarios do not mutate saved state.
Self-host mode uses Prisma repositories backed by PostgreSQL. Domain services consume mapped finance types rather than Prisma records.
flowchart LR
DOMAIN["Finance Domain"] --> PORT["Repository Boundary"]
PORT -->|"Self-host"| PRISMA["Prisma Repositories"]
PRISMA --> PG["PostgreSQL"]
PORT -->|"Public demo"| STORE["Per-tab Demo Store"]
STORE --> SEED["Immutable Fictional Seed"]Coach Context Builder minimizes deterministic plan, memory, trend, and recommendation signals. Provider adapters normalize timeout, retry, errors, and structured responses. Invalid or unavailable providers fall back to Mock where configured.
Provider metadata describes execution mode, authentication, model, base URL capability, and availability. Credentials remain outside Coach Context and domain models. OpenAI, Anthropic, and remote custom endpoints are self-host-only; Ollama and LM Studio are local-only; cloud browser BYOK remains experimental and production-disabled.
Deployment is environment-explicit:
The repository does not assume one required hosting, database, or AI vendor.
Workflow
Explore Atlas AI with fictional data or review the architecture before running it in your own environment.