Skip to main content

Paperstack

Paperstack is an open-source CLI for maintaining, querying, and publishing an independently authored research corpus. The software and corpus are separate: Paperstack can be public while each corpus and its editorial judgments remain under its maintainer's control.

It can search typed reviews, initialize and validate entries, inspect external paper metadata, read arXiv sources, manage a selected-venue DBLP index, and build a static viewer. A synthetic corpus lives in examples/corpus; no assessment of real work is bundled with the package.

Install

uv tool install paperstack-cli

PDF conversion is optional:

uv tool install 'paperstack-cli[pdf]'

Choose a corpus

Register either a local working tree or a GitHub repository. The first registered corpus becomes active.

paperstack corpus add work --path ~/research/reviews
paperstack corpus add private --repo OWNER/private-reviews
paperstack corpus list
paperstack corpus use private
paperstack corpus remove work

Private GitHub repositories use the existing gh login without storing its token:

gh auth login
paperstack review sync

PAPERSTACK_DIR and PAPERSTACK_REPO remain available for automation. Explicit environment variables take priority, then a surrounding corpus working tree, then the active profile. Profiles are stored in ${XDG_CONFIG_HOME:-~/.config}/paperstack/config.json.

Review corpus

paperstack review show example2026paperstack --brief
paperstack review show arxiv:2410.24164 --json
paperstack review list --quality good --tag vla
paperstack review search "flow matching"
paperstack review init <key> --id arxiv:NNNN.NNNNN --title "Verbatim title" --editor <name>
paperstack review check --style
paperstack review audit
paperstack review citations --fetch

Paper entries, talks, and posts use separate contracts under entries/{papers,talks,posts}/. The complete schemas, writing guide, and source-reading workflow are in Entry authoring.

Inspect papers

These commands use external source records and do not select a citation or make an editorial judgment:

paperstack paper search "Attention Is All You Need" --source dblp
paperstack paper metadata arxiv:2106.09685
paperstack paper metadata doi:10.1109/CVPR.2016.90 --source crossref
paperstack paper read arxiv:2604.23073 --outline
paperstack paper read arxiv:2604.23073 --section 6
paperstack paper pdf arxiv:2602.09017

metadata accepts arxiv:, doi:, dblp:, and openreview: references. read and pdf require an arxiv: reference. Structured commands expose scoped --json flags; networked commands expose scoped --offline flags.

Build a viewer

paperstack viewer build
paperstack viewer serve --port 8000

The viewer is generated from the selected corpus. Source Markdown remains available alongside the rendered pages.

DBLP index

The optional selected-venue index accelerates DBLP search and is required by review audit:

paperstack index dblp status
paperstack index dblp install
paperstack index dblp update

Installed snapshots are content-addressed and verified by SHA-256, schema, and embedded metadata before an atomic pointer switch. See DBLP snapshot releases for release maintenance.

Configuration

Variable Purpose
PAPERSTACK_DIR Explicit local corpus working tree
PAPERSTACK_REPO Explicit GitHub corpus in OWNER/REPO form
PAPERSTACK_TTL Remote corpus cache refresh interval; default 3600 seconds
PAPERSTACK_PAPERS_DIR arXiv source and PDF cache
SEMANTIC_SCHOLAR_API_KEY Optional higher-rate Semantic Scholar access
OPENREVIEW_ACCESS_TOKEN Optional OpenReview access cookie value
XDG_CONFIG_HOME Corpus profile configuration root
XDG_CACHE_HOME Remote corpus and paper cache root
XDG_DATA_HOME DBLP index root

The console entry point also loads the nearest .env without overriding exported variables. Review exit codes are 0 for hits, 1 for no match, 2 for ambiguity, and 3 for unavailable data or invalid configuration.

Development

uv run --group lint ruff check .
uv run --group lint ruff format --check .
uv run --group test pytest -q
PAPERSTACK_DIR=examples/corpus uv run paperstack viewer build --output /tmp/paperstack-site

Paperstack is licensed under Apache-2.0. Corpora are separate works and may use their own terms.

Release files for paperstack-cli 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperstack-cli 0.3.0
File Size Uploaded
paperstack_cli-0.3.0.tar.gz 71.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paperstack-cli 0.3.0
File Interpreter ABI Platform
paperstack_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 152.2 kB

Release files / paperstack_cli-0.3.0.tar.gz

Download URL paperstack_cli-0.3.0.tar.gz
Size 71.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eb94673f2526e9d0e189f476aa428f51685b8863b999949e4e0352f462537e71
BLAKE2b-256 checksum
How to use checksums
a58c14b469ff8da6ad519ba098d1bd47b9db268aaa331ac55d3a937f9485b738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / paperstack_cli-0.3.0-py3-none-any.whl

Download URL paperstack_cli-0.3.0-py3-none-any.whl
Size 81.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a1e23411d6ad5be1e0f4f1e47711c588e7460b18b3c8b300c53f442c399816c
BLAKE2b-256 checksum
How to use checksums
db256ec73cb8497595e957d41206eb6567437e4f96fc9af94cfd9b783e6ee191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page