Platform Architecture — Vaultara
PLATFORM — SYSTEM ARCHITECTURE

A domain core with zero dependencies, and one layer allowed to touch the database.

An npm-workspaces monorepo of four packages. Business rules live in pure TypeScript that cannot import Prisma, cannot reach a framework, and can be tested with the Node test runner alone.

01 — MONOREPO
{{ p.path }}
{{ p.role }}

{{ p.body }}

{{ p.stack }}
02 — CAPITAL FLOW

Money never touches a balance column.

Click any node to inspect what the ledger writes at that step.

commit EDGES CARRY LEDGER ENTRIES — NOT UPDATES
ACTOR
Investor
STATE MACHINE
Subscription
LEDGER ACCOUNT
ESCROW_CASH
GATE
Compliance
ISSUANCE
Allocation
PROJECTION
Position
STATE MACHINE
Redemption
WATERFALL
Distribution
INSPECTOR
{{ sel.title }}

{{ sel.body }}

WRITES {{ w.text }}
{{ sel.guard }}
03 — STATE MACHINES

Try to break the lifecycle.

Pick a machine, then click a state to attempt a transition. Illegal moves are refused at the domain boundary — the same guard the server actions run behind.

CONSOLE
{{ logText }}
LEGAL FROM HERE
{{ n.label }}
04 — RUNTIME

Deliberately few moving parts.

{{ r.k }} {{ r.v }}
05 — CHOKEPOINTS

Three doors in, no side entrance.

{{ c.fn }}

{{ c.body }}

Middleware only checks that a cookie is present — the Edge runtime cannot run Prisma, so it is never trusted with authorisation.