Framework Documentation
Documentation for the framework packages
Welcome to the framework documentation. This monorepo contains packages for building event-driven applications with Prisma.
Run the Example
The repository includes a runnable reference app in:
examples/server(Hono + oRPC API onhttp://localhost:9001)examples/web(Next.js UI onhttp://localhost:9000)
From the repo root:
bun install
bun run db:start
bun run db:push
bun run exampleYou can also run each app separately:
bun run example:server
bun run example:webPackages
Framework
Core primitives: event system, adapters, Prisma extensions
Server
Hono service bootstrap with health checks, request IDs, and logging
Testing
Test harness and fixtures for integration testing
Quick Links
Event System
- Defining Events - Type-safe event definitions
- Adapters - Composable event handlers
- History API - Query typed event history
- Outbox Pattern - Reliable event delivery
Prisma Extensions
- Soft Delete - Automatic soft delete with filtering
- Audit Trail - Mutation logging with diffs
Testing
- Test Harness - Composable fixture builder
- Built-in Fixtures - PostgreSQL and Prisma fixtures