THE MONOREPO FOR AGENT-BUILT PRODUCTS

Harness as Code.

Build web and mobile products with typed APIs, durable workflows and practical AI tooling. Shared packages, secure environment loading and executable checks give your team and its agents a system to build on.

included

AI tools + evaluations

included

Web + mobile

included

Typed APIs + workflows

included

Vercel + portable APIs

monokit.harness.ts

Harness as Code

The repo is the operating model.

Start with a schema. Carry it through validation, OpenAPI and a typed client, then add persistence, tests and instrumentation. The harness records the boundaries and checks that keep this workflow repeatable.

monokit.harness.tstyped
export const harness = defineHarness({
  surfaces: ["api", "web", "mobile", "extension"],
  capabilities: ["api", "ai", "auth", "cms", "database", "email", "storage", "ui"],
  boundaries: "workspace",
  agentContext: {
    policy: "versioned",
    files: ["AGENTS.md", "skills/monokit-app-boilerplate/SKILL.md"],
  },
});

4

surfaces

8

capabilities

12

checks

01

Declare the product system

App surfaces, shared capabilities, agent instructions and verification commands live in one inspectable contract.

02

Give agents real context

The harness makes boundaries and safe operations legible before an agent changes code.

03

Verify each change

Run the commands declared in the harness, from contract tests to runtime smoke checks.

Production capabilities

The foundations your next product needs.

Connect your app surfaces to reusable APIs, AI tooling and integrations, with checks that keep changes verifiable.

Hono + OpenAPI

Zod contracts connect validation, interactive API docs and typed clients. Request IDs, structured errors and health checks are built in.

Explore the docs

Durable workflows

Transactional state changes, idempotency, audit entries and an outbox. Signed webhooks and leased jobs handle retries and recovery.

Explore the docs

One mobile app, two backends

Expo Router connects to tRPC or Hono with shared session handling, account-scoped queries and cache rules.

Explore the docs

Practical AI engineering

Typed tools, permission checks, structured outputs and versioned prompts, with deterministic test doubles, evaluations and tracing.

Explore the docs

AI + API unit costs

Supply your own rate cards and track usage by request and feature. Model contribution margins with explicit handling of unpriced usage.

Explore the docs

Secrets in the system store

dotenvx keeps local keys in the OS credential store. Three shared environment keys, output redaction and typed validation cover every app.

Explore the docs

Connected authentication

Better Auth serves web and Expo sessions. The Hono API verifies the same identity and enforces ownership on its example resources.

Explore the docs

Consistent app surfaces

Next.js, Expo and a browser extension starter, with HeroUI, Tailwind and theme-aware components for your product.

Explore the docs

Content, email + storage

Sanity content, React Email templates and AWS SES/S3 integrations live in shared packages you can adapt across apps.

Explore the docs

Polar integration

Checkout and license validation patterns provide a starting point for paid products, backed by your own Polar account and configuration.

Explore the docs

Deploy on your terms

Start on Vercel. The Hono backend also includes Cloudflare Workers and Node/Docker adapters with explicit database migrations.

Explore the docs

Verification that runs

An inspectable harness declares real checks for types, lint, tests, builds and smoke tests. Database fixtures cover concurrency and recovery.

Explore the docs

Integrated stack

Proven parts, already wired.

Production tools connected through stable package boundaries.

Legible by default

Structure an agent can reason about.

Four app starters, focused shared packages and a versioned harness. Explore the toolkit layout to see where contracts, AI costs, environment policy and verification live.

monokit/Toolkit layout
    • api/Hono · Vercel, Workers and Docker
    • web/Next.js · tRPC and Better Auth
    • mobile/Expo · choose tRPC or Hono
    • extension/Vite · browser extension
    • api/Contracts, clients, queries and durable jobs
    • auth/Shared Better Auth configuration
    • database/Prisma clients, schemas and migrations
    • cms/Sanity content and Studio
    • email/React Email and AWS SES
    • storage/S3 uploads and access utilities
    • ui/HeroUI components and theme tokens
    • testing/Shared Vitest configuration
    • tools/Shared application utilities
    • tsconfig/Workspace TypeScript configuration
    • mcp/Scaffolding tools with a dry-run default
  • monokit.harness.tsApp boundaries and executable checks
  • AGENTS.mdVersioned instructions and guardrails
  • EnvfileEncryption and output-redaction policy

Selected files from the toolkit. Expand a folder to explore its purpose.

Clear before checkout

Questions, answered.

Start inside the harness

Ship the product. Keep the system.

Start with the architecture, integrations, and agent context already working together, then make the product unmistakably yours.