HyperSaaS

Architecture

Overview of the HyperSaaS tech stack and project structure.

Tech Stack

Backend

TechnologyPurpose
Django 5Web framework
Django REST FrameworkAPI layer
PostgreSQL + pgvectorDatabase with vector search
Celery + RedisBackground tasks
DockerContainerization

Frontend

TechnologyPurpose
Next.js 15React framework
TypeScriptType safety
Tailwind CSS v4Styling
shadcn/uiComponent library
NextAuthAuthentication

AI Agent System

HyperSaaS uses a pluggable multi-framework agent architecture:

  • LangGraph — Default handler, supports tool calling and streaming
  • PydanticAI — Alternative handler for structured outputs
  • Custom — Extend BaseAgentHandler for any framework

Project Structure

backend/
├── backend/
│   ├── chat/          # Chat sessions, messages, AI handlers
│   ├── documents/     # Knowledge base, RAG, embeddings
│   ├── users/         # User management
│   ├── workspaces/    # Multi-tenancy
│   └── subscriptions/ # Stripe billing
├── config/            # Django settings, URLs, API router
└── requirements/      # Pip dependencies

frontend/
├── src/
│   ├── app/           # Next.js App Router pages
│   ├── components/    # UI components
│   ├── lib/           # Utilities, types, actions
│   └── config/        # Site configuration
└── public/            # Static assets

On this page