About stare.pub
stare.pub resolves U.S. case citations to the full text of the decision and to the original scanned pages of the reporter it was printed in. Type 31 A.2d 647 and you get the opinion. It's a Codex Publicus project, built by lokkju.
Everything runs in your browser. The site, the citation index and the case data are all static files: there's no server doing work on your behalf, no database, and no API to go down. There's no account to create and nothing to sign up for.
Published case law is the law. Reading it shouldn't depend on a subscription, or on any one institution's continued goodwill and funding.
The data
The cases come from the Caselaw Access Project (CAP). Between 2013 and 2018 the Harvard Law School Library scanned its collection of American case reporters: 40,622 volumes holding 6.9 million cases, decided between 1658 and 2020. The case data is public domain.
Ravel Law paid for the scanning in exchange for a period of exclusive commercial use, which passed to LexisNexis when it bought Ravel in 2017 and ran until March 2024. When it ended, Harvard published the whole corpus as bulk files at static.case.law, and on September 1, 2024 it retired the CAP website and its API. The bulk files are still up. Nobody has said for how long.
Codex Publicus holds a complete copy of that release, all 10.4 TB of it: the case text, the page scans, the OCR and the metadata. stare.pub reads its case text from that copy.
How it works
When you look up a citation, your browser:
- fetches the volume's citation index, about 7 KB, which says which case starts on which page;
- fetches the volume's case data, a zip of typically 1.5 MB, from the Codex Publicus copy at data.stare.pub;
- unpacks and renders the case itself, using a WebAssembly build of the same Rust code the
stare command line tool runs; - caches both files, so later lookups in that volume don't download them again.
The page viewer shows the original scans. Each page is a color JPEG of about 180 KB inside the volume's tar archive, which typically runs around 200 MB. The viewer reads the archive's table of contents and fetches only the bytes of the page you're looking at.
Where it stands
Done:
- The mirror. All 40,622 volumes of the CAP release are copied, counted and held read-only.
- The index. 40,487 volumes are indexed and resolve today.
- Citation detection. citare, a Rust citation parser I wrote, finds the citations in every case you read and in anything you paste into the brief checker, including plain forms like 31 A.2d 647.
- Our own case text. Case data is served from the Codex Publicus copy, not from static.case.law.
In progress:
- Archival PDFs. One PDF/A per volume, built from the original bitonal scans with lossless compression, with the OCR as an invisible, searchable text layer and a bookmark for every case. Every page is checked against its source scan, pixel for pixel. They come out about a quarter smaller than CAP's own PDFs of the same volumes, which have no text layer at all.
- Structured case text. Every decision in Akoma Ntoso, the OASIS standard for legal documents, with a stable identifier for each opinion.
Planned:
- Full-text search, served as static files like everything else.
- Statutes and regulations: the U.S. Code, the Statutes at Large and the state codes, from the public sources that publish them.
- IPFS and torrents, for anyone to pin and seed.
- The site itself on IPFS, where the whole system can outlive any single host, this one included.
What's new
v2026.10.11.1 · 2026-10-11
Features
- web: render CourtListener records on a CAP miss
v2026.10.08.1 · 2026-10-08
Features
- web: link pin cites to the cited page
- web: show statutes, bump citare to 0.5.3
v2026.10.06.2 · 2026-10-06
Fixes
- release: keep every release in the changelog
All updates · Atom feed
Help preserve case law
Harvard has kept the bulk files online so far. One host is still one point of failure, and every independent copy of the full release is one more place it survives if static.case.law goes away.
- Mirror it. The whole release is at static.case.law. If you have 10.4 TB to spare, take a copy, and keep it to a request or two a second.
- Pin it on IPFS, once we publish the CIDs.
- Seed it, once the per-reporter torrents exist.
Built on
- Caselaw Access Project: every case on this site, scanned and transcribed by the Harvard Law School Library and its Library Innovation Lab. The case law is public domain (CC0).
- citare: the citation parser behind the reader and the brief checker, written in Rust and compiled to WebAssembly. It's a Codex Publicus project, inspired by the Free Law Project's eyecite, and it uses their reporters-db for its reporter data.
- Akoma Ntoso: the OASIS standard for legal documents, which the structured case text will follow.
- PDF/A: the ISO archival PDF standard the per-volume PDFs are built to.
- Rust: the core lookup code, compiled to the
stare command line tool and to WebAssembly for the browser. The index is one binary file per volume, 8 bytes per page, so the case on any page is one offset lookup away. - Astro: the site, as plain HTML, JavaScript and CSS.
- Cloudflare: Workers serve the site and R2 holds the index and the case text. Any static host would do, whether S3, IPFS or a directory on your own machine.
stare.pub is one of the Codex Publicus projects.
← Back to stare.pub