huggingface/paperswithcode
A FastAPI/PostgreSQL catalog linking AI papers, code, datasets, and benchmarks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Papers with Code is a research catalog with a React 18, TypeScript, and Vite single-page frontend. TanStack Query handles frontend data fetching. The Python 3.12 service starts from backend/main.py; FastAPI routes sit under backend/routers/, domain logic under backend/services/, and Pydantic API models alongside SQLAlchemy 2 database models. SQL migrations live in backend/database/migrations/.
PostgreSQL 16 serves both the catalog and the hybrid retrieval path: pg_trgm handles lexical matching and pgvector supports semantic search, so the documented stack does not require a separate vector database. Scheduled workflows and the curation runner in jobs/ handle data updates separately from web requests. REST is the public integration surface; optional chat grounds its answers through Papers with Code MCP tools.
Key Capabilities & Differentiators
The catalog connects arXiv and externally sourced papers to official implementations, project pages, and Hugging Face models, datasets, and Spaces. A paper can have a thumbnail, TL;DR, lineage, and a Markdown reading view. The taxonomy supports browsing and trending views across tasks, methods, datasets, frameworks, conferences, organizations, and authors.
Leaderboards bring together evaluations reported by papers and scheduled imports from external boards. Curation workflows import daily papers, link tasks and methods, refresh stars and citations, and propose evaluations. This is a discovery and curation workflow, not a general-purpose benchmark execution service. The REST API at /api/v1/ preserves compatibility with the original Papers with Code API client and exposes OpenAPI documentation at /docs.
Trade-offs & Limitations
Compared with querying arXiv and Hugging Face separately, the main benefit is being able to follow structured links from a paper to its implementation, task, artifacts, and benchmark results. Compared with a generic RAG stack, the schema and curation jobs provide a research-specific data model out of the box, but are not a turnkey ingestion path for arbitrary document collections. Compatibility with the old API client should not be read as a guarantee of historical data parity.
Keeping lexical and vector search in PostgreSQL avoids running another search service, but puts catalog queries, index maintenance, and ingestion load on the same database. Self-hosting the application also does not make imports offline: freshness depends on scheduled jobs and upstream sources, while chat, curation, and hosted integrations require additional credentials. Apache-2.0 covers the application code, not the redistribution rights of cataloged material.
Hardware & Deployment Guide
For local self-hosting, use uv with Python 3.12, Node.js 18+ and npm, and PostgreSQL 16 with the vector and pg_trgm extensions. Put PWC_ settings in backend/keys.env, initialize the schema with python -m backend.database.connection init, and start the API through backend/run_server.py. The Vite app on port 8080 proxies /api to the backend on port 8000. The initialized schema is empty: use the maintenance CLI to index papers and plan recurring imports if freshness matters.
The production pattern uses immutable production and staging releases behind nginx, with systemd and rollback templates in deploy/. The hosted site uses private Hugging Face buckets for Markdown, thumbnails, embedding exports, and database backups; budget separately for credentials and storage if reproducing that setup. The latest listed release is pwc-cli-0.1.0 (2026-07-24), a CLI-labeled milestone. For read-only public catalog access, use the API or standalone pwc-cli instead of deploying the stack.
Research teams, labs, and community maintainers that need a browsable, API-accessible catalog connecting papers to implementations, datasets, and benchmark results. Start with the public API for read-only use; self-host when you need control over curation and refresh schedules.
You need a ready-populated offline archive, a generic private-document RAG stack, or a system that runs evaluations rather than catalogs the results.
Quick Start & Installation
git clone https://github.com/huggingface/paperswithcode.git cd paperswithcode uv sync cd frontend && npm install && cd ..
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| paperswithcode ★ | 363 | +9 | Python | Apache-2.0 | A FastAPI/PostgreSQL catalog linking AI papers, code, datasets, and benchmarks |
| ragflow | 95k | +338 | Go | Apache-2.0 | Go-based RAG platform for parsing complex documents and grounding answers in sou |
| deepwiki-open | 18.5k | +43 | Python | MIT | Self-hosted Python and Next.js app for turning code repositories into interactiv |
| open-notebook | 42.4k | +188 | TypeScript | MIT | Self-hosted RAG notebooks for source-cited research, with local or cloud models |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/huggingface/paperswithcode.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about paperswithcode
How should an existing client or research script integrate with the catalog?
/api/v1/ for programmatic catalog access and /docs to inspect its OpenAPI surface. Compatibility is with the original Papers with Code API client; do not assume that every record from the former site is present. For terminal access to the public catalog, use the standalone read-only pwc-cli. The pwc command installed with this repository is for maintaining and populating a catalog instance.Does self-hosting require a GPU, and what should we size first?
Can an organization self-host it commercially and redistribute imported content?
When is this a better choice than arXiv, Hugging Face, or a general RAG stack?
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