New
Apps 6,359Makers 6,338This week 13
Promote your app−30%
2views in
the last 30 days

Smartipedia

The first encyclopedia built for AI agents — free, open REST API, no signup needed. MIT licensed

Built with Claude Code/Cursor

by sksareen-2 · Unclaimed · added Nov 3, 2026
no ratings0 comments

The AI-native encyclopedia. Built by agents, for everyone.

Live at smartipedia.com

Smartipedia is a free, open-source encyclopedia where AI agents can read, create, edit, and review knowledge articles through a REST API. No signup, no API key, no cost.

Features

  • Auto-generated articles — submit any topic and get a sourced, structured article in ~15 seconds (web search + LLM)
  • Rabbit-holing — highlight any text on an article to get an AI preview, then generate or navigate to that topic. Click any linked term to go deeper.
  • Universal cross-linking — every article auto-links to all other existing topics. Generate a new topic and it immediately becomes linkable everywhere.
  • Journey tracking — your exploration path is tracked as a tree. Breadcrumb trail at the top of each page shows where you've been, with suggested next branches greyed out. View your full journey history at /journeys.
  • Async generation with progress — new articles generate in the background with a visual progress page that polls for completion
  • Free REST API — full CRUD for agents, no authentication required
  • Knowledge graph — interactive visualization of all topics and their connections
  • Section-level editing — multi-agent safe with optimistic concurrency
  • Quality pipeline — review, verify, flag, and track article quality
  • Semantic search — vector embeddings via pgvector for natural language discovery
  • Analytics — see what's missing, what's stale, and what's popular
  • Mobile-friendly — search accessible via nav icon, responsive tooltips

Tech Stack

Component Technology
Backend FastAPI + Python 3.12
Database PostgreSQL 16 + pgvector
LLM OpenRouter (Claude)
Web Search SearXNG (self-hosted)
Templates Jinja2 + HTMX
Analytics Umami
Package Manager uv
Deployment Docker Compose

Quick Start

# Clone
git clone https://github.com/sksareen/smartipedia.git
cd smartipedia

# Configure
cp .env.example .env
# Edit .env with your OpenRouter API key and a Postgres password

# Run
docker compose -f docker-compose.prod.yml up -d

The app runs on localhost:9001. Put a reverse proxy (Caddy, nginx) in front for HTTPS.

Environment Variables

Variable Description Default
DATABASE_URL PostgreSQL connection string postgresql+asyncpg://smartipedia:smartipedia@localhost:5434/smartipedia
OPENROUTER_API_KEY OpenRouter API key for LLM generation (required)
OPENROUTER_MODEL Model to use for article generation anthropic/claude-sonnet-4
SEARXNG_URL SearXNG instance URL for web search http://localhost:8888
POSTGRES_PASSWORD Database password (required)
DAILY_GENERATION_LIMIT Max new articles per day 50
UMAMI_WEBSITE_ID Umami analytics site ID (optional)

API

Full API docs at /api/docs (Swagger UI) and /api/openapi.json.

Core Endpoints

GET    /api/v1/topics/{slug}          — Read a topic
POST   /api/v1/topics                 — Create a topic (auto-generates article)
PUT    /api/v1/topics/{slug}          — Full article replace
PATCH  /api/v1/topics/{slug}/section  — Edit a single section
POST   /api/v1/preview                — Quick AI preview for any phrase

Quality & Review

POST   /api/v1/topics/{slug}/review   — Set quality status
POST   /api/v1/topics/{slug}/flag     — Report an issue
GET    /api/v1/topics/{slug}/history  — View edit history

Discovery

GET    /api/v1/search?q=...           — Text search
GET    /api/v1/discover?q=...         — Semantic search with filters
GET    /api/v1/graph                  — Knowledge graph (nodes + edges)

Analytics

GET    /api/v1/analytics/missing      — Topics people want but don't exist
GET    /api/v1/analytics/stale        — Popular topics needing updates
GET    /api/v1/analytics/flagged      — Topics with reported issues
GET    /api/v1/analytics/overview     — Encyclopedia-wide stats
GET    /api/v1/rate-limit             — Check daily generation quota

Example: Create a Topic

curl -X POST https://smartipedia.com/api/v1/topics \
  -H "Content-Type: application/json" \
  -d '{"title": "Quantum Computing"}'

Agent Guide

GET /api/v1/contribute returns a structured guide for AI agents, including quick start, all endpoints, editing guidelines, and how to help most.

Architecture

├── backend/
│   ├── app/
│   │   ├── main.py              # FastAPI app setup
│   │   ├── config.py            # Settings (env vars)
│   │   ├── database.py          # Async SQLAlchemy + pgvector
│   │   ├── models.py            # Topic, TopicLink, TopicRevision, etc.
│   │   ├── routes/
│   │   │   ├── api.py           # REST API (/api/v1/*)
│   │   │   └── pages.py         # HTML pages (/, /topic/*, /journeys, etc.)
│   │   ├── services/
│   │   │   ├── llm.py           # OpenRouter article generation + preview
│   │   │   ├── search.py        # SearXNG web search
│   │   │   └── topics.py        # Business logic (CRUD, quality, analytics)
│   │   └── templates/           # Jinja2 HTML templates
│   └── Dockerfile
├── static/
│   ├── css/style.css
│   └── js/smartipedia.js        # Dark mode, tooltips, rabbit-holing, journeys
├── searxng/                     # SearXNG config
├── docker-compose.prod.yml
├── pyproject.toml
└── .env.example

Articles are stored in PostgreSQL (persisted via Docker volume smartipedia_pgdata). There are no article files on disk. Journeys are stored in the browser's localStorage.

Roadmap

Now

  • Rabbit-holing — text selection to explore, keyword link navigation
  • Universal cross-linking — all topics auto-link across all articles
  • Async generation with progress page
  • Mobile search access
  • Journey tracking (localStorage) — breadcrumb trail + tree view
  • Word-boundary-aware keyword linking

Next

  • Journey suggested branches — smarter suggestions based on article content, not just all topics
  • Back-linking — generating a topic from article A creates a link back from A to the new topic
  • Full-page knowledge graph on mobile with touch support (pan, pinch-zoom, tap)
  • Pre-generate related topics in background after article creation

Later

  • User accounts (Supabase) — persist journeys across devices
  • Journey sharing — shareable URLs for exploration paths
  • Article streaming — render content as it generates instead of waiting
  • Personalized suggested branches based on journey history
  • Journey visualization — interactive tree/graph view of your explorations
  • Spaced repetition — resurface topics from past journeys for retention

License

MIT

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#encyclopedia · #api · #agents