Upload documents, chat with AI about their content, and extract insights instantly. Powered by advanced AI models with semantic search and intelligent document processing.
Open-source document chat platform built with Next.js 15, React 19, and TypeScript. Deploy your own instance with optional billing to monetize as a SaaS.
Watch the complete demo and walkthrough
From knowledge management to customer support, Document Chat System adapts to your needs
A complete, production-ready platform with advanced features for document management, AI chat, vector search, multi-tenancy, and optional monetization.
Scalable cloud storage with CDN distribution
Lightning-fast responses with Upstash Redis
End-to-end TypeScript with Zod validation
Live document sync and chat streaming
Production Dockerfile with optimization
Fast global delivery with edge functions
Our intelligent pipeline processes documents automatically and makes them instantly searchable
Drag and drop any document - PDFs, Word documents, text files, images, and more. Organize in folders or let AI categorize them automatically.
Advanced document processors extract text, metadata, and meaning. Content is chunked, embedded, and indexed for semantic search in real-time.
Ask questions in natural language. AI retrieves relevant content and generates accurate answers with citations to source documents.
Leveraging the latest technologies for performance, scalability, and developer experience
Optional Stripe integration lets you charge users for your deployment. Subscription management, usage limits, and billing are built-in and ready to go.
POST /api/v1/admin/pricing-plans
pricing_plans table via Prisma
Optional auto-sync with Stripe
{
planType: "STARTER",
displayName: "Starter Plan",
description: "Perfect for individuals",
monthlyPrice: 2900, // $29 in cents
yearlyPrice: 29000, // $290 yearly (2 months free)
currency: "usd",
features: {
list: [
"3 user seats",
"500 AI credits/month",
"100 documents/month",
"Priority support"
]
},
limits: {
seats: 3,
documentsPerMonth: 100,
aiCreditsPerMonth: 500,
storageGB: 10
},
isActive: true,
isPopular: true,
displayOrder: 1,
createStripeProducts: true
}
Fully customizable limits including: seats
, documentsPerMonth
, aiCreditsPerMonth
, storageGB
, and more
These are examples - fully customizable to your needs. Disable billing entirely if you just want to self-host for free.
Document Chat System is MIT licensed. Use it for personal projects, commercial products, or build your own SaaS business. No restrictions, no vendor lock-in.
Permissive license allowing commercial use, modification, and distribution
Active development, regular updates, and welcoming community contributions
Self-host anywhere, use your own infrastructure, keep full control of your data
Supported File Formats
AI Models Available
Uptime SLA
Open Source
You can use any model from OpenRouter (100+ models including GPT-4, Claude, Llama, Mistral, and more),OpenAI directly (GPT-4 Turbo, GPT-3.5), or ImageRouter for image generation. The system supports switching between providers seamlessly.
The platform is free and open source. Configure your AI provider API keys to enable chat features. Supports multiple AI providers including OpenRouter, OpenAI, Anthropic, and more.
Yes! The optional Stripe integration lets you create subscription plans, set usage limits, and charge users for your deployment. It's completely optional - you can also run it for free without any billing features.
Deploy to Vercel with our automated setup script that syncs all environment variables in one command. Or use the included production-ready Dockerfile for any platform that supports Docker (AWS, GCP, Azure, DigitalOcean, Railway, Render). Full step-by-step deployment guide with automated scripts available in the README.