Skip to Content
Developer DocsArchitectureOverview

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 (Hono) routing architecture
State ManagementZustand stores, React Query, and state patterns
DatabaseDrizzle ORM setup, schema organization, and query patterns
AuthenticationClerk (primary), Lucia Auth (legacy fallback), OAuth flows, and security
Custom Tool UIDynamic tool UI components, bundle compilation, and runtime loading

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: Hono 4.x
  • Database: PostgreSQL with pgvector extension
  • ORM: Drizzle ORM
  • Authentication: Clerk (primary), Lucia Auth (legacy fallback), GitHub/Google OAuth

Monorepo Structure

AgentPress/ ├── apps/ │ ├── console/ # Admin console (Vite + React) │ ├── api/ # Hono 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