Architecture Overview
AgentPress follows a modern monorepo architecture with clear separation of concerns. This section covers the foundational layers of the application.
Core Documentation
| Document | Description |
|---|---|
| Routing | Frontend (TanStack React Router) and backend (Express.js) routing architecture |
| State Management | Zustand stores, React Query, and state patterns |
| Database | Drizzle ORM setup, schema organization, and query patterns |
| Authentication | Session-based auth with Lucia, OAuth flows, and security |
Technology Stack
Frontend
- Build Tool: Vite
- Framework: React 19 with TanStack Router
- Styling: Tailwind CSS v4
- UI Components: Radix UI
- State Management: Zustand with React Query
Backend
- Framework: Express.js 5.1.0
- Database: PostgreSQL with pgvector extension
- ORM: Drizzle ORM
- Authentication: Lucia Auth with GitHub/Google OAuth
Monorepo Structure
AgentPress/
βββ apps/
β βββ console/ # Admin console (Vite + React)
β βββ api/ # Express.js API server
β βββ portal/ # User-facing portal (Vite + React)
β βββ dropin-chat/ # Embeddable chat widget
β βββ docs/ # This documentation site (Nextra)
βββ packages/
β βββ api/ # Core backend logic (@agentpress/api)
β βββ lib/ # Shared library (@agentpress/lib)
β βββ ui/ # UI components (@agentpress/ui)
β βββ custom/ # Custom implementations
β βββ cli/ # CLI tool
βββ .docs/ # Internal development documentationLast updated on