Developer Documentation
Everything you need to build on, extend, and contribute to the Freedom Platform. From local setup to production deployment.
Get StartedArchitecture
System design, stack overview, and data flow
Getting Started
Local setup, prerequisites, and first run
Database
Schema, migrations, and Drizzle ORM patterns
API
tRPC routers, REST endpoints, and authentication
Frontend
React components, routing, and UI patterns
Background Jobs
Inngest functions and event-driven workflows
Testing
Vitest unit tests and Playwright E2E
Deployment
Vercel configuration and environment variables
Security
Auth, encryption, RLS, and API key management
Contributing
Code style, PR process, and commit conventions
Quick Reference
Stack
Next.js 15 + React 19 + tRPC v11 + Drizzle ORM + Neon PostgreSQL
Auth
Clerk (session + API key authentication)
Background Jobs
Inngest (serverless, event-driven)
UI Framework
shadcn/ui (Radix + Tailwind CSS) + Lucide icons
Deployment
Vercel (US-East, iad1)
Multi-tenancy
parentAccounts → companies → teamMembers with RLS