stare.pub

Run your own copy

stare.pub is static files, and the reader runs in each visitor's browser, so a copy of it is a directory and a web server that hands out files. Copies are published as signed releases on data.stare.pub. A copy reads its index and data from its own disk and never fetches them from stare.pub, so it keeps working if stare.pub goes away. A Raspberry Pi with a USB SSD is plenty.

mirror.stare.pub is an example: a tier 1 copy of the current release, with the "A mirror of stare.pub" line every copy shows at the top of the page.

What a copy holds

TierWhat it addsDiskPublished
1The site, the citation index, the key ledger and the PDF list: citation lookup, the brief checker, and the /k/ and /c/ addressesabout 0.5 GB, one tarYes
2Case text from CAP and CourtListener, and full-text searcha 128 GB SSDNot yet
3The archival page PDFsa 2 TB SSDNot yet
4CAP's raw archive, with the color scansabout 12 TBNot yet

Tier 1 is the one published today. On a tier 1 copy a citation resolves to its case, and where the copy doesn't have something, such as the case text or the page scans, the reader says so in place and links to the same page on stare.pub.

Download and verify

You need curl, jq, minisign and sha256sum (on Debian or Raspberry Pi OS, apt install curl jq minisign). data.stare.pub/releases/latest.json names the newest release, and each release's files are under releases/<release>/. These commands check the signatures on both files with stare.pub's release key, then check the tar against the SHA-256 that the signed release.json gives for it:

mkdir -p /srv/stare && cd /srv/stare
curl -fsSLO https://data.stare.pub/releases/latest.json
curl -fsSLO https://data.stare.pub/releases/latest.json.minisig
minisign -Vm latest.json -P RWTR1z+lb96CaCdVkipBJO+O6KJyVIZkYQz2syiFItetSW+S74fWeKrF
release=$(jq -r .release latest.json)
curl -fsSLO https://data.stare.pub/releases/$release/release.json
curl -fsSLO https://data.stare.pub/releases/$release/release.json.minisig
minisign -Vm release.json -P RWTR1z+lb96CaCdVkipBJO+O6KJyVIZkYQz2syiFItetSW+S74fWeKrF
curl -fsSLO https://data.stare.pub/releases/$release/stare-tier1-$release.tar
echo "$(jq -r '.tiers["1"].tar.sha256' release.json)  stare-tier1-$release.tar" | sha256sum -c

The release key, ID 6882DE6FA53FD7D1, signs every release:

RWTR1z+lb96CaCdVkipBJO+O6KJyVIZkYQz2syiFItetSW+S74fWeKrF

The kit's README on GitHub gives the same key, and the recovery key that signs a change of release key. If the two ever differ, trust neither until you know why. The current release's release.json also names a torrent of the tier 1 tar, with data.stare.pub as its web seed.

Serve it

The tar unpacks into the copy's root, with the site, the data under mirror/, and the kit under kit/. With Docker and its compose plugin:

tar -xf stare-tier1-$release.tar -C /srv/stare
cd /srv/stare/kit && docker compose up -d

The copy is then at http://<your machine>:8080/. The kit has configurations for Caddy, nginx and Apache 2.4 too, if you already run one of them. Its README covers each of them, checking every file against its release's checksums, and the mirror.json file that tells the reader what the copy holds.

To upgrade, run the same steps when latest.json names a newer release and extract the new tar over the root; the server needs no restart. Nothing updates a copy automatically.

If you run a copy others can reach, write to info@codexpublicus.org.

← Back to stare.pub