Skip to content

jimseiwert/context-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŠ ContextStream

Your personal AI-powered documentation search engine. Index, search, and chat with your docs using cutting-edge semantic search.

License: MIT Docker Pulls GitHub Stars

ContextStream is an open-source platform that brings the power of AI-driven semantic search to your documentation. Whether you're building an internal knowledge base, indexing your company's docs, or just want to search through your favorite frameworks' documentation faster, ContextStream has you covered.

โœจ Why ContextStream?

Traditional documentation search relies on keyword matching, which often misses the mark. ContextStream uses AI embeddings and semantic search to understand what you're actually asking for - not just matching keywords, but understanding intent and context.

  • ๐Ÿง  Semantic Search: Ask questions naturally, get relevant answers
  • ๐Ÿ”Œ Multiple Sources: GitHub repos, websites, wikis, and more
  • ๐Ÿ’ฌ AI Chat Interface: Ask questions, get answers from your docs
  • ๐Ÿ”„ Auto-Sync: Keep your docs fresh with automatic updates
  • ๐ŸŽฏ MCP Integration: Works with Claude and other AI coding assistants
  • ๐Ÿ” Privacy-First: Self-hosted, your data stays yours
  • ๐Ÿš€ Fast & Efficient: Hybrid BM25 + vector search for optimal results

๐Ÿ’– Support This Project

ContextStream is free and open-source, but hosting, development, and maintenance require time and resources. If you find this project helpful, please consider supporting it!

๐ŸŒŸ Ways to Support

  • Star this repo - It helps with visibility!
  • Sponsor on GitHub - Become a sponsor to help keep this project alive
  • Share - Tell others about ContextStream
  • Contribute - Code, docs, bug reports, and ideas are all welcome!

๐Ÿ’ Current Sponsors

Your logo here! Be the first to support this project and get your name/logo featured here.

Interested in sponsoring? Get in touch

๐Ÿš€ Quick Start

Get up and running in under 5 minutes!

Prerequisites

  • Docker and Docker Compose
  • OpenAI API key (get one here)
  • 2GB RAM minimum (4GB recommended)

One-Command Deploy

# Download docker-compose file
curl -o docker-compose.yml https://raw.githubusercontent.com/jimseiwert/context-stream/main/docker/docker-compose.production.yml

# Create environment file
cat > .env << EOF
OPENAI_API_KEY=your-api-key-here
BETTER_AUTH_SECRET=$(openssl rand -base64 32)
NEXTAUTH_SECRET=$(openssl rand -base64 32)
EOF

# Start ContextStream
docker-compose up -d

# Visit http://localhost:3000 ๐ŸŽ‰

That's it! You now have your own AI-powered documentation search engine running locally.

๐ŸŽฏ Use Cases

  • Developer Teams: Index your internal wikis, API docs, and codebases
  • Content Teams: Search through marketing materials, guides, and knowledge bases
  • Students/Researchers: Build a personal search engine for your research papers and notes
  • Open Source Maintainers: Make your project's docs more discoverable
  • AI Coding Assistants: Use with Claude Code or other AI tools via MCP

๐Ÿณ Deployment Options

Choose the deployment that fits your needs:

Docker Compose (Recommended)

Production-ready setup with separate services for better performance.

๐Ÿ“– Docker Compose Setup Guide

Kubernetes / Helm

Enterprise-ready with auto-scaling and high availability.

๐Ÿ“– Kubernetes Setup Guide

๐Ÿ› ๏ธ Tech Stack

Built with modern, battle-tested technologies:

  • Frontend: Next.js 15, React 19, TailwindCSS, shadcn/ui
  • Backend: Next.js API Routes, Drizzle ORM
  • Database: PostgreSQL 16 with pgvector
  • Search: Hybrid BM25 + Vector similarity
  • Queue: Bull (Redis-based)
  • Auth: Better Auth with OAuth support
  • AI: OpenAI Embeddings & GPT-4
  • Deployment: Docker, Kubernetes

๐Ÿ“š Core Features

Intelligent Search

Uses hybrid search combining traditional BM25 with AI vector embeddings for the best of both worlds.

Multi-Workspace Support

Organize your docs into workspaces - personal, team, or global. Control access and permissions.

MCP Server Integration

Built-in Model Context Protocol server for seamless integration with Claude Code and other AI coding assistants. Search your docs without leaving your editor!

Auto-Sync & Webhooks

Keep your docs fresh with automatic synchronization. Set schedules or use webhooks for instant updates.

Modern UI

Clean, responsive interface built with Next.js and Tailwind. Works great on desktop and mobile.

๐Ÿค Contributing

We โค๏ธ contributions! Whether you're fixing bugs, adding features, improving docs, or just discussing ideas, you're welcome here.

How to Contribute

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Check out our Contributing Guide for more details.

Good First Issues

New to the project? Look for issues tagged with good first issue - these are great starting points!

๐Ÿ”ง Development Setup

Want to contribute or run locally? Here's how:

# Clone the repo
git clone https://github.com/jimseiwert/context-stream.git
cd context-stream

# Install dependencies
npm install

# Start dependencies (PostgreSQL, Redis)
docker-compose up -d postgres redis

# Setup environment
cp .env.example .env
# Edit .env with your values

# Run migrations
npm run db:migrate

# Start dev server
npm run dev

# In another terminal, start the worker
npm run worker

Visit http://localhost:3000 and start hacking! ๐ŸŽ‰

๐Ÿ“– Documentation

๐Ÿ—บ๏ธ Roadmap

Exciting features on the horizon:

  • Multi-modal search (images, diagrams, code screenshots)
  • Local embedding models (no OpenAI dependency)
  • More data sources (Notion, Confluence, Google Docs)
  • Advanced analytics and insights
  • Browser extension for quick searches
  • Mobile app
  • Plugin system for custom integrations
  • Self-hosted LLM support (Ollama, LM Studio)

Have an idea? Open an issue or start a discussion!

๐Ÿ“Š Project Stats

๐Ÿ’ฌ Community & Support

Join our community and get help:

๐Ÿ™ Acknowledgments

ContextStream wouldn't be possible without these amazing open-source projects:

And a huge thanks to all our contributors! ๐ŸŽ‰

๐Ÿ“„ License

ContextStream is open-source software licensed under the MIT License.

You're free to use, modify, and distribute this software. See the LICENSE file for full details.

๐ŸŒŸ Star History

Star History Chart


Made with โค๏ธ by the open-source community

โญ Star this repo โ€ข ๐Ÿฆ Follow updates โ€ข ๐Ÿ’ฌ Join discussions