Skip to Content
AgentPress is finally here! πŸŽ‰
ArchitectureOverview

Architecture Overview

AgentPress follows a modern monorepo architecture with clear separation of concerns. This section covers the foundational layers of the application.

Core Documentation

DocumentDescription
RoutingFrontend (TanStack React Router) and backend (Express.js) routing architecture
State ManagementZustand stores, React Query, and state patterns
DatabaseDrizzle ORM setup, schema organization, and query patterns
AuthenticationSession-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 documentation
Last updated on