Foxmayn AI is a professional, full-stack application designed for managing knowledge bases through a complete RAG (Retrieval-Augmented Generation) pipeline. It provides a robust, type-safe architecture for indexing documents and generating AI responses with high precision.
- API Service: Hono backend powering the ORPC engine, auth, and background jobs.
- Frontend App: Modern React 19 interface (TanStack Router, Query, Jotai).
- @repo/db: Drizzle ORM models for Auth and RAG modules.
- @repo/llm: OpenRouter SDK wrapper for chat and batch embeddings.
- @repo/qdrant: High-performance vector database client and utilities.
- End-to-End Type Safety: Shared types across the entire stack using ORPC.
- Flexible RAG Pipeline: Multiple strategy supports via customizable RAG Profiles.
- Multi-Tenant Auth: Advanced user management with Better Auth (API Keys, Orgs, Admin).
- Background Processing: BullMQ-powered document ingestion and email services.
- Serverless Ready: Hono core adaptable to multiple environments.
- Node.js: v20+
- pnpm: v9+
- Docker: For PostgreSQL, Redis, and Qdrant local instances.
pnpm installCreate .env files in:
apps/apiapps/apppackages/dbpackages/qdrantpackages/llm
# Push schema to local DB
pnpm --filter=@repo/db db:push# Start both API and Frontend
pnpm dev
# Start background jobs worker
pnpm --filter=api run dev:workerDesigned & Developed by Foxmayn AI Team