Skip to main content
Try Demo

Architecture · Repository

Persistence behind a stable boundary.

Repository interfaces provide controlled access to financial records. Domain services receive mapped finance types rather than raw Prisma rows, preserving testability and execution-mode isolation.

Core principles

What this layer protects.

01

No raw Prisma in UI

Designed as an explicit, testable part of the Atlas AI product boundary.

02

Domain mapping at the boundary

Designed as an explicit, testable part of the Atlas AI product boundary.

03

Demo and self-host remain explicit

Designed as an explicit, testable part of the Atlas AI product boundary.

04

Server-only credentials

Designed as an explicit, testable part of the Atlas AI product boundary.

System view

How the experience fits together.

01Domain service
02Repository contract
03Storage adapter

In depth

Built around clear responsibilities.

01

One contract, explicit modes

Self-host mode uses PostgreSQL repositories while public demo mode uses isolated in-tab state. The application never silently switches between them.

02

Mapping protects the domain

Persistence-specific shapes are converted before they reach finance calculations or presentation components.

03

A test seam

Repository contracts allow pure services to be exercised with fictional data and guarded integration suites.

Workflow

A visible path from input to review.

  1. 01Domain request
  2. 02Repository contract
  3. 03Execution-mode adapter
  4. 04Mapped record
  5. 05Domain service

Keep financial reasoning transparent.

Explore Atlas AI with fictional data or review the architecture before running it in your own environment.

Try the Live DemoExplore Architecture