fdarkaou/open-deep-research
Self-hosted Next.js research app for recursive web search and cited reports
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Open Deep Research packages recursive web research as a TypeScript Next.js application. /api/feedback generates clarifying questions whose answers are folded into a research brief. /api/research streams progress over Server-Sent Events (SSE). The Vercel AI SDK and @ai-sdk/openai provide the model interface for query planning, extracting findings and follow-up questions, and writing the report. The Firecrawl SDK handles web search and page retrieval; p-limit bounds concurrent search and extraction work across recursion levels.
Follow-up branches run with depth decremented and breadth set to ceil(breadth / 2). Before synthesis, the workflow deduplicates findings and source URLs. The result is a cited Markdown report, rendered by the React UI. This is query-time retrieval from the live web; the architecture does not establish a persistent corpus, vector index, or plugin framework. Backend customization is through service endpoints and model configuration.
Key Capabilities & Differentiators
Configurable breadth controls how many search queries each planning step can generate, while depth controls whether the workflow can pursue further leads. CONCURRENCY_LIMIT defaults to 2 and caps simultaneous search and extraction work rather than total work per report. The UI shows live progress, renders GitHub Flavored Markdown via react-markdown and remark-gfm, and exports research_report.md.
The default UI model is gpt-5-mini, with gpt-5, gpt-4.1-mini, and o4-mini also listed. OPENAI_BASE_URL supports OpenAI-compatible endpoints such as OpenRouter, Ollama, vLLM, and Azure OpenAI gateways, while OPENAI_MODEL can pin the server to a specific model ID. API compatibility alone is insufficient: the selected model must reliably return structured JSON for query planning and finding extraction.
Trade-offs & Limitations
Compared with managed services such as Perplexity, this application trades operational convenience for control over the model endpoint, Firecrawl endpoint, and search parameters. It is also a different fit from NotebookLM: it discovers sources on the public web rather than starting with a curated document collection. Citations help readers inspect the underlying sources, but URL deduplication does not assess source quality or verify that each statement is supported.
Reducing breadth at each layer limits per-branch expansion, but additional branches and levels can still increase total model and crawl calls, provider spend, and completion time. A concurrency cap controls simultaneous work, not the overall cost of a report. Self-hosting the UI alone does not keep research data local when model or crawl endpoints are hosted. Even with both services self-hosted, live web research still needs access to search services and target pages.
Hardware & Deployment Guide
The application requires Node.js 20 or later; Node.js 22 is recommended. Install with npm install, copy .env.example to .env.local, configure OPENAI_API_KEY and FIRECRAWL_KEY, and use npm run dev to try it locally. For production, use the Next.js npm run build and npm run start scripts; npm run typecheck and npm test are available for validation. The supplied project snapshot includes neither a container manifest nor a tagged release to anchor deployment or upgrades.
The app can call hosted services or point to separate model and Firecrawl deployments using OPENAI_BASE_URL and FIRECRAWL_BASE_URL. The Node.js orchestration tier does not need a GPU when inference is remote; size it for concurrent research jobs and streams, and size self-hosted inference and crawling separately. For shared deployments, NEXT_PUBLIC_ENABLE_API_KEYS=true enables user-supplied keys in HTTP-only cookies, but does not replace authentication or usage controls. Check proxy timeouts and buffering on the SSE route before rollout.
/api/feedback clarifies the brief; /api/research streams progress over SSE.p-limit caps concurrent search and extraction work across recursion levels, defaulting to 2.OPENAI_BASE_URL and OPENAI_MODEL select an OpenAI-compatible backend and model; structured JSON output is required.research_report.md.Teams that want to control the model and crawling backends for multi-step public-web research and export cited Markdown reports for human review.
You need a managed service with no backend operations, a persistent private-document knowledge base, or a fully offline workflow.
Quick Start & Installation
npm run devComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| open-deep-research ★ | 879 | +1 | TypeScript | MIT | Self-hosted Next.js research app for recursive web search and cited reports |
| open-notebook | 42.4k | +164 | TypeScript | MIT | Self-hosted RAG notebooks for source-cited research, with local or cloud models |
| Vane | 38.4k | +73 | TypeScript | MIT | Self-hosted AI search with SearxNG, local or cloud LLMs, and cited answers. |
| LightRAG | 41k | +110 | Python | MIT | Graph-backed RAG for cross-document retrieval and multimodal indexing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/fdarkaou/open-deep-research.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about open-deep-research
Can I integrate the research workflow into another application?
/api/feedback to generate clarifying questions and /api/research to stream research progress over SSE. Before building a separate client, verify request and event schemas, disconnect behavior, and compatibility across revisions; no versioned public contract is established in the available project data.Do I need a GPU, and what should I size for?
Can we deploy it commercially under the MIT license?
When should I choose this over Perplexity or NotebookLM?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy