← Back to Leaderboard
Phuggingface

huggingface/paperswithcode

A FastAPI/PostgreSQL catalog linking AI papers, code, datasets, and benchmarks

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 83/100
Maintenance Activity
● Updated today
Latest Release
pwc-cli-0.1.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence14/20
License Clarity20/20
Self-HostedAPI
Total Stars
★ 363
24h Growth
+0
7d Growth
+9
Forks
45

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

huggingface/paperswithcode Star History (2026-10-25 - 2026-12-01) DAILY STAR HISTORY (33-DAY D1 TELEMETRY) +362 in 37d · avg +10/day 383 192 0 2026-10-25: ★ 12026-10-31: ★ 2902026-11-03: ★ 3032026-11-06: ★ 3112026-11-09: ★ 3172026-11-12: ★ 3192026-11-15: ★ 3232026-11-18: ★ 3322026-11-21: ★ 3392026-11-24: ★ 3542026-11-27: ★ 3592026-12-01: ★ 363 ★ 363 10-25 11-12 12-01

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Retrieval: PostgreSQL combines pg_trgm lexical search with pgvector semantic search.
Research records: Papers link to official code, project pages, Hugging Face models, datasets, and Spaces, with lineage and a Markdown reader.
Benchmark data: The catalog records paper-native evaluation results and synchronizes external leaderboards on a schedule.
Integration: The FastAPI service exposes a legacy-client-compatible REST API at /api/v1/ and OpenAPI at /docs.
Curation: GitHub Actions scheduled jobs and a Hugging Face Jobs runner support ingestion and enrichment; the pwc CLI indexes or refreshes individual papers.
Release operations: The hosted service uses immutable releases behind nginx, with rollback tooling and separate Hugging Face buckets for durable artifacts.
Best For

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.

Skip If

You need a ready-populated offline archive, a generic private-document RAG stack, or a system that runs evaluations rather than catalogs the results.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

Self-HostedAPI
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 →
RepositoryStars7d TrendStackLicenseCore Positioning
paperswithcode ★363+9PythonApache-2.0A FastAPI/PostgreSQL catalog linking AI papers, code, datasets, and benchmarks
ragflow95k+338GoApache-2.0Go-based RAG platform for parsing complex documents and grounding answers in sou
deepwiki-open18.5k+43PythonMITSelf-hosted Python and Next.js app for turning code repositories into interactiv
open-notebook42.4k+188TypeScriptMITSelf-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.

Raw .md ↗
curl -sL https://repoforai.com/repo/huggingface/paperswithcode.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

huggingface/paperswithcode Star History on RepoForAI

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?

Use /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?

The documented web and API setup does not require a GPU. Start by sizing PostgreSQL storage and memory for catalog records, trigram indexes, and vector data, then account for concurrent API traffic and ingestion. Optional chat, embedding-related processing, and thumbnail generation should be measured separately based on the services used and the job volume. No fixed CPU, RAM, or VRAM requirement is specified.

Can an organization self-host it commercially and redistribute imported content?

The application code is Apache-2.0, which permits commercial use and self-hosting subject to its conditions, including applicable notice requirements when redistributing. Treat imported papers, repositories, models, and datasets separately: the application license does not grant redistribution rights to those artifacts. Check upstream licenses and service terms before mirroring or republishing them.

When is this a better choice than arXiv, Hugging Face, or a general RAG stack?

Use arXiv or Hugging Face directly if your workflow only needs records from one source. Choose Papers with Code when users need to move from a paper to its implementation and artifacts, browse by task or method, or compare recorded benchmark results. If the actual requirement is to run evaluations or retrieve answers from arbitrary internal documents, use an evaluation runner or a general-purpose RAG system instead.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining huggingface/paperswithcode? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature huggingface/paperswithcode on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare