local-full-stack-deep-research icon indicating copy to clipboard operation
local-full-stack-deep-research copied to clipboard

A full-stack local deep research application built with LangGraph, supporting multiple LLM providers and search APIs. Powered by FastAPI + LangGraph backend and Next.js 15 + React 19 frontend, deliver...

Local Full Stack Deep Research

English | δΈ­ζ–‡

A powerful full-stack application for local deep research powered by LangGraph, supporting multiple LLM providers and search APIs. The graph implementation is referenced from open_deep_research.

APIs

UI

Features

  • πŸ€– Multiple LLM Provider Support:
    • OpenAI
    • Anthropic
    • Ollama
    • And more...
  • πŸ” Multiple Search API Integration:
    • Tavily
    • DuckDuckGo
    • And more...
  • πŸš€ Built with modern technologies:
    • Backend: FastAPI + LangGraph
    • Frontend: Next.js 15 + React 19
    • TypeScript support
    • Modern UI with Radix UI and Tailwind CSS

Project Structure

.
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ backend/         # FastAPI backend
β”‚   β”‚   β”œβ”€β”€ open_deep_research/  # Core backend logic
β”‚   β”‚   └── notebooks/   # Jupyter notebooks
β”‚   └── frontend/        # Next.js frontend
β”‚       β”œβ”€β”€ app/         # Next.js app directory
β”‚       β”œβ”€β”€ components/  # React components
β”‚       └── lib/         # Utility functions

Prerequisites

  • Python 3.11+
  • Node.js (Latest LTS version)
  • pnpm 10.12.1+

Getting Started

Local Development

Backend Setup

  1. Navigate to the backend directory:

    cd apps/backend
    
  2. Create and activate a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install dependencies:

    pip install -e .
    

    Note: It's recommended to use uv for dependency management. See uv documentation for more details.

    # Install uv
    brew install uv  # On Linux/macOS
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # On Windows
    
    # Sync dependencies
    uv sync
    
    # activate the virtual environment
    source .venv/bin/activate  # On Linux/macOS
    .venv\Scripts\activate     # Windows
    
    # run the backend
    uvicorn main:app --host 0.0.0.0 --port 8000 --reload
    
  4. Set up your environment variables in .env:

    OPENAI_API_KEY=your_key_here
    ANTHROPIC_API_KEY=your_key_here
    TAVILY_API_KEY=your_key_here
    
  5. Start the backend server:

    uvicorn main:app --host 0.0.0.0 --port 8000 --reload
    

Frontend Setup

  1. Navigate to the frontend directory:

    cd apps/frontend
    
  2. Install dependencies:

    pnpm install
    
  3. Start the development server:

    pnpm dev
    

Development URLs

  • Backend API: http://localhost:8000
  • Frontend: http://localhost:3000

Docker Deployment

To run the entire application using Docker:

docker compose up

License

MIT