An AI-powered research agent that autonomously researches topics, gathers relevant information from multiple sources, synthesizes findings using AI, and produces structured reports.
- Multi-Source Research: Searches web, Wikipedia, and news sources simultaneously
- AI-Powered Synthesis: Uses OpenRouter (Claude, GPT-4, Llama) for intelligent analysis
- Structured Reports: Generates executive summaries, key findings, and detailed sections
- Real-Time Progress: Live progress tracking during research
- Source Citations: All claims backed by clickable source links
- Export Functionality: Download reports as Markdown
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β RESEARCHAI β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββββββ β
β β FRONTEND βββββΊβ BACKEND βββββΊβ AI MODEL LAYER β β
β β (React) β β (Node.js) β β (OpenRouter) β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββββββ β
β β β β β
β β βΌ β β
β β ββββββββββββββββ β β
β β β DATA LAYER β β β
β β β - Source β β β
β β β Aggregator β β β
β β β - Cache ββββββββββββββββββββ β
β β ββββββββββββββββ β
β β β β
β β βΌ β
β β ββββββββββββββββ β
β β β EXTERNAL β β
β β β APIs β β
β β β - DuckDuckGo β β
β β β - Wikipedia β β
β β β - News APIs β β
β β ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Node.js 18+ and npm
- OpenRouter API key (Get one here)
- Clone the repository
git clone <repository-url>
cd intelligent-research-assistant- Install dependencies
npm install- Configure environment
cp .env.example .env
# Edit .env and add your OpenRouter API key- Start development servers
npm run dev- Open your browser
Navigate to
http://localhost:5173
| Variable | Description | Default |
|---|---|---|
OPENROUTER_API_KEY |
Your OpenRouter API key | Required |
AI_MODEL |
AI model to use | anthropic/claude-sonnet-4 |
PORT |
Backend server port | 3000 |
NODE_ENV |
Environment mode | development |
anthropic/claude-sonnet-4(Recommended)anthropic/claude-3.5-sonnetopenai/gpt-4oopenai/gpt-4o-minimeta-llama/llama-3.1-70b-instruct
intelligent-research-assistant/
βββ client/ # Frontend (React + TypeScript)
β βββ src/
β β βββ components/
β β β βββ QueryInput.tsx # Research query form
β β β βββ ProgressIndicator.tsx # Real-time progress
β β β βββ ReportView.tsx # Generated report display
β β βββ api/
β β β βββ client.ts # Backend API client
β β βββ App.tsx # Main application
β β βββ main.tsx # Entry point
β βββ package.json
βββ server/ # Backend (Node.js + Express)
β βββ src/
β β βββ routes/
β β β βββ research.ts # Research API endpoints
β β βββ services/
β β β βββ searchService.ts # Multi-source search
β β β βββ contentService.ts # Content extraction
β β β βββ aiService.ts # OpenRouter integration
β β β βββ reportService.ts # Report generation
β β βββ index.ts # Server entry point
β βββ package.json
βββ shared/ # Shared types
β βββ src/
β β βββ index.ts # Shared type definitions
β βββ package.json
βββ package.json # Root package.json
βββ .env.example # Environment variables template
βββ README.md # This file
Start a new research query.
Request Body:
{
"query": "What are the latest developments in quantum computing?",
"sources": ["web", "wikipedia"],
"maxResults": 10
}Response:
{
"researchId": "uuid-here"
}Get current research progress.
Response:
{
"stage": "synthesizing",
"message": "Synthesizing findings with AI...",
"progress": 60,
"sources": [...]
}Get the completed research report.
npm run devnpm run buildnpm run typecheck| Layer | Technology | Purpose |
|---|---|---|
| Frontend | React 18 + TypeScript + TailwindCSS | Modern UI |
| Backend | Node.js + Express | API server |
| AI | OpenRouter API | Claude/GPT-4/Llama |
| Search | DuckDuckGo + Wikipedia API | Information retrieval |
| Build | Vite | Fast development |
The system searches multiple sources in parallel:
- Web Search: DuckDuckGo for general web results
- Wikipedia: Encyclopedia content for factual information
- News: Current events and recent developments
Using OpenRouter, the system:
- Analyzes query intent
- Summarizes content from each source
- Identifies key themes and findings
- Generates coherent narrative with citations
Reports include:
- Executive summary
- Key findings with evidence
- Detailed analysis sections
- Source citations with links
MIT License - feel free to use for your own projects!
- OpenRouter for unified AI model access
- DuckDuckGo for privacy-friendly search
- Wikipedia for open knowledge
Built for the Inteledge Advisory & Labs Internship Evaluation