Architecture
Architecture Overview
Technical stack and design decisions.
The architecture is guided by these principles:
- Composability and reusability
- Security and automation
- Designed for scale
- API as source of truth
- Multiple clients (web, mobile, desktop, other servers)
- No vendor lock-in
- Tooling chosen for long-term and community support
Architecture Flow
Architecture Topics
- Monorepo Structure - Turborepo organization and package architecture
- API Architecture - Node.js, Fastify, PostgreSQL, Drizzle ORM
- Authentication - Magic link, OAuth and Web3 wallet authentication
- Frontend Architecture - Next.js, Shadcn/ui, Tailwind CSS
- Frontend Stack - Core libraries, patterns, Web3 wallet hooks
- ESM & TypeScript Strategy - ESM module system architecture and TypeScript configuration
- Error Handling - Error handling and logging
- Portability Strategy - Zero vendor lock-in strategy