Skip to content

Your product above. Durable contracts below.

A TypeScript monorepo with business logic outside framework routes. Customize the product while preserving authorization, accounting and external-action invariants.

foundrylayer / sourceTypeScript
apps/web

Your product

Brand, interface, business logic

packages/agents + integrations

The execution layer

Runs, approvals, durable actions

packages/auth + billing + db

The SaaS foundation

Workspaces, subscriptions, credits

Your database Your provider keys Your deployment

The application layer

apps/web owns the Next.js App Router, server actions and interface. Signal is a reference product in this layer; replace branding and workflows without rebuilding the lower-level domain services.

Next.js 16 · React 19 · Tailwind v4 · shadcn/ui

The execution layer

agents owns threads, plans, steps, leases and budgets. ai adapts OpenRouter usage and the model allowlist. integrations owns connected tools and durable external intent.

agents → ai + integrations · bounded orchestration

The SaaS layer

auth and permissions own identity and current authority. billing owns paid-state reconciliation and credits; entitlements and usage stay separate. email owns the transactional outbox.

Explicit package boundaries · server-only exports

The persistence layer

PostgreSQL and versioned Drizzle migrations include custom triggers and concurrency invariants. Replay committed migrations; do not replace them with schema push or direct unreviewed writes.

Node 24 · PostgreSQL · documented Vercel/Neon target

Build on a foundation you own.

$149 USD once. One developer seat. Unlimited owned and client projects. Prelaunch.

Explore the license