概要
Papr is a fast terminal-based workspace written in Rust. Get daily new papers in your feed from your field of research, search, discover, and download papers directly from arXiv. Organize your library, manage reading queues, take notes, track stats to keep your research organized and create latex/typst projects; all without leaving your terminal.
仕事効率化・自動化計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Papr is an all-in-one terminal workspace engineered for academic researchers. It unifies daily research paper feed, arXiv search, local PDF library management, in-terminal reading, Markdown note-taking, and manuscript editing with LaTeX and Typst into a cohesive, keyboard-driven interface. By bringing discovery, reading, and writing into a single distraction-free environment, Papr eliminates context-switching between browsers, file managers, PDF viewers, and external editors.
Under the hood, Papr is built in Rust which gives researchers sub-millisecond interface responsiveness, low memory overhead, and safe concurrent execution for background downloads, directory indexing, and compilation without freezing the UI. With ACID-compliant local storage, full offline capability, and zero runtime dependencies, your research library remains fast, stable, and completely under your control.
Key Features
Discovery & Research Feed
- Daily Feed & Analytics: Delivers 10 randomized papers daily matching your research keywords while tracking streaks, reading time, and disk usage.
- Integrated arXiv Search: Browse arXiv by title, author, category, abstract, or DOI with paginated results and live in-view filtering (
>). - Clean Naming: Saves downloads with human-readable titles (not raw IDs).
- GitHub Library Sync: Synchronizes your paper catalog, reading states, and metadata to GitHub for seamless cross-device access.
Library & Organization
- Filesystem-Synced Groups: Organize papers into collections that directly mirror folder directories on disk.
- Automatic Author Cataloging: Automatically groups your entire local library by author name.
- Flexible Sorting & Bookmarks: Order papers by newest, oldest, or download date; toggle bookmarks with a single keypress (
B). - Activity History: Inspect a chronological audit log of recent searches, downloads, and compilation events.
Reading & Annotation
- In-Terminal PDF Viewing: Read papers directly in the terminal via Kitty or Sixel graphics protocols, or launch external viewers (Zathura, Okular).
- Reading Progress & Smart Queue: Remembers your exact page to resume where you left off; queued papers auto-complete only upon reaching the final page.
- Markdown Notes: Write per-paper annotations with a Vim-inspired editor and a live styled preview (
Tab). - Productivity Stats: Track active reading streaks, session duration, top authors, and a 12-week activity heatmap.
Writing Studio (LaTeX & Typst)
- Embedded Typst Engine: Zero-setup compiler with bundled fonts, local module imports, and cached Typst Universe (
@preview) packages. - LaTeX Support: Asynchronous background compilation powered by
latexmk. - Split-Pane PDF Preview & Diagnostics: Live preview alongside the editor with inline diagnostics, source line jumps, and build logs.
- BibTeX Citation Importer: Search local papers or arXiv from inside the editor (
Ctrl+F) to insert citation keys directly. - Project File Tree: Navigate, create, rename, and manage multi-file manuscripts using Vim keybindings.
Customization & Extensibility
- 19 Built-in Themes & Transparency: Includes Catppuccin, Tokyo Night, Gruvbox, Nord, and Dracula, with transparent background support.
- Process-Isolated Plugins: Extend functionality via sandboxed JSON plugins (includes an out-of-the-box auto-tagger).
Installation
Pre-compiled binaries are available for Linux, macOS, and Windows. Choose your preferred installation method below.
Quick Installers
Linux & macOS (Shell Script):
curl --proto '=https' --tlsv1.2 -sSfL https://github.com/AfrozSaqlain/Papr/releases/latest/download/papr-tui-installer.sh | sh
Windows (PowerShell):
Set-ExecutionPolicy -Scope Process Bypass
irm https://github.com/AfrozSaqlain/Papr/releases/latest/download/papr-tui-installer.ps1 | iex
Installs papr.exe to %USERPROFILE%\.cargo\bin. Restart PowerShell if the command is not immediately recognized.
Package Managers
Cargo (crates.io)
If you have the Rust toolchain installed:
cargo install papr-tui
(The crate is published as papr-tui and installs the binary papr.)
Arch Linux (AUR)
yay -S papr-bin
# or
paru -S papr-bin
Fedora (COPR)
sudo dnf copr enable afrozsaqlain/Papr
sudo dnf install papr-tui
To update an existing installation: sudo dnf upgrade --refresh papr-tui
macOS (Homebrew Tap)
brew tap AfrozSaqlain/tap
brew trust AfrozSaqlain/tap
brew install papr
Debian, Ubuntu, & RPM Packages
Download pre-built .deb or .rpm packages from the GitHub Releases:
- Debian / Ubuntu / Mint:
sudo apt install ./papr_*.deb - Fedora / RHEL:
sudo dnf install ./papr-*.rpm - openSUSE:
sudo zypper install ./papr-*.rpm
System Dependencies & Extra Setup
Recommended Tools
While Papr runs out of the box, certain features rely on standard system utilities:
| Feature | Dependency | Package Name |
|---|---|---|
| In-terminal PDF Viewer | Kitty or Sixel terminal + Poppler | poppler-utils (pdftoppm) |
| PDF Metadata Extraction | Poppler | poppler-utils (pdfinfo, pdftotext) |
| LaTeX Compilation | TeX Live + Latexmk | texlive, latexmk |
| Typst Compilation | Embedded in Papr | No external dependencies required |
| System Clipboard (Linux) | Wayland or X11 utility | wl-clipboard (Wayland) or xclip (X11) |
| External PDF Viewer | Optional desktop viewer | zathura, okular, or system default |
In-Terminal PDF Viewer Setup (Kitty)
For the best reading experience inside the terminal, use the Kitty terminal emulator:
- Linux:
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/ - macOS:
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
[!NOTE] On macOS, configure Kitty to pass the Option key as Alt so window pane shortcuts work correctly: add
macos_option_as_alt yesto~/.config/kitty/kitty.conf.
Install other system dependencies:
- Ubuntu / Debian:
sudo apt update && sudo apt install -y poppler-utils wl-clipboard texlive latexmk xdg-utils - Fedora:
sudo dnf install -y poppler-utils wl-clipboard texlive-scheme-basic latexmk xdg-utils - Arch Linux:
sudo pacman -S --noconfirm poppler wl-clipboard texlive-basic texlive-latexmk xdg-utils - macOS:
brew install poppler basictex sudo tlmgr update --self && sudo tlmgr install latexmk
Windows Notes
The internal Kitty terminal viewer is unavailable on Windows. By default, Papr launches external PDFs using Microsoft Edge (or your configured viewer). For LaTeX authoring on Windows, install MiKTeX and Strawberry Perl as detailed in docs/windows.md.
Building from Source
Prerequisites
- Rust 1.92+ with Cargo (rustup.rs)
- C compiler and linker (
build-essential,gcc, or Xcode command-line tools) pkg-config(Linux)
Build & Install
git clone https://github.com/AfrozSaqlain/Papr.git
cd Papr
cargo install --path crates/papr
Ensure ~/.cargo/bin is in your shell PATH:
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
User Guide
Launch Papr by running:
papr
Workspaces Overview
Papr organizes your research lifecycle into 14 specialized workspaces, accessible via the left sidebar or the quick navigator (Ctrl+B):
| Workspace | Purpose | Primary Actions |
|---|---|---|
| Dashboard | Daily arXiv feed tailored to your interests, reading streak, and activity stats. | Enter metadata, d download, o browser, c citation |
| Discover | Search arXiv by title, author, category, abstract, or DOI with query filtering. | / search bar, > filter results, d download |
| Library | Catalogs all local PDFs discovered across your configured library directories. | Enter read, s sort, n note, g group, a queue |
| Reading Queue | Prioritized backlog of papers to read next; completes upon reaching the final page. | Shift+↑/↓ reorder, Enter read, a remove |
| Groups | Custom collections mirrored directly into your local filesystem folders. | g create/assign group, Enter explore papers |
| Bookmarks | Quick-access collection of starred papers. | B toggle bookmark, Enter read |
| Authors | Automatically clusters local papers by author name. | s sort, Enter view author catalog |
| Notes | Centralized catalog of all Markdown notes attached to your papers. | Enter edit note, Tab toggle preview |
| Downloads | Real-time queue showing active, completed, and failed background downloads. | r retry failed download |
| Projects | Integrated LaTeX & Typst writing studio with file tree, editor, and PDF preview. | n create project/file, Alt+1..4 switch panes |
| History | Chronological timeline of recent searches, downloads, and compilation events. | Read-only activity audit |
| Statistics | Analytics tracking total reading time, streaks, top authors, and a 12-week heatmap. | Visual research insights |
| Settings | Configuration hub for themes, paths, research keywords, and GitHub sync. | Interactive preference management |
| Credits | License, maintainer attributions, and core dependency information. | Enter open reference links |
Core Workflows
1. Discovering & Downloading Papers
- Daily Feed: Open Dashboard to see today's curated recommendations based on your
dashboard_keywords. PressEnterto read the abstract,dto start a background download,oto view the paper on the web, orcto copy its BibTeX citation. - arXiv Search: Switch to Discover and press
/to open the search bar. Enter search terms, categories (e.g.cs.AI), or authors. Use>to filter loaded results instantly. - Command Line Download: You can also download papers directly from your shell without opening the TUI:
papr download 2401.12345 papr download https://arxiv.org/abs/2401.12345
2. Reading, Queuing & Taking Notes
- Reading Progress: Open any paper from Library or Reading Queue with
Enter. Papr tracks your position so you resume on the exact page you last read. - Managing the Queue: Add papers to your reading backlog by pressing
a. In the Reading Queue workspace, reorder items withShift+↑andShift+↓. A paper is automatically marked finished and cleared from the queue once you reach its final page. - Taking Notes: Press
non any paper row to open the Markdown editor. Jot down annotations, formulas, or summaries. PressTabto toggle a styled preview andEscto save and exit.
3. Writing Manuscripts (LaTeX & Typst)
- Open the Projects workspace and press
nto create a new project. Choose between Typst (default) or LaTeX. - Press
Enterto enter the project workspace:- Pane Navigation: Use
Alt+1(File Tree),Alt+2(Editor),Alt+3(PDF Preview), orAlt+4(Compiler Log). - Editing: Standard Vim motions are supported. Save with
Ctrl+Sto trigger instant background compilation. - Insert Citations: Press
Ctrl+Finside the editor to open the citation importer, search your library, and insert formatted BibTeX citations. - Error Inspection: Compiler errors display inline diagnostic badges; inspect detailed logs in
Alt+4.
- Pane Navigation: Use
4. Syncing Across Computers (GitHub)
You can sync your paper library across devices using a private GitHub repository. Papr keeps a papers.json file in that repo with your paper titles, arXiv IDs, DOIs, and download links.
How it works:
- If the repo doesn't exist yet, Papr creates it as private automatically.
- When you add papers on one computer, Papr pushes them to the repo.
- When you open Papr on another computer, it sees what's missing and downloads the PDFs for you.
How to set up GitHub sync
1. Get a GitHub Personal Access Token (PAT)
- Head over to GitHub: Settings > Developer settings > Personal access tokens.
- Create a token:
- Fine-grained token (recommended):
- Repository access: "All repositories" (or pick your repo if you created it yourself).
- Permissions:
Contents-> Read and write (to savepapers.json).Administration-> Read and write (only needed if you want Papr to create the private repo for you).
- Classic token:
- Check the
reposcope.
- Check the
- Fine-grained token (recommended):
- Copy the token (
ghp_...).
2. Configure Papr
You can set this up inside Papr or in your config file.
Option A: Inside Papr (easiest)
- Open Papr and go to Settings (
Ctrl+b> Settings). - Switch to the Sync tab (
Tabor→). - Press
Spaceon Sync Status to enable it. - Move down (
↓) to GitHub Repository. HitEnterto change the name if you don't want the defaultpapr-library(or typeusername/repo), then hitEnter. - Move down (
↓) to GitHub Personal Access Token. HitEnterand type or paste your token (Ctrl+v), then pressEnter. - Press
Escto save and close. Papr will start syncing right away.
Option B: In config.toml
Open your config.toml (run papr paths to find it) and add:
[sync]
enabled = true
github_repo = "papr-library" # Or "username/custom-repo"
branch = "main"
github_token = "ghp_yourTokenHere"
Option C: Using an environment variable
If you prefer not to keep your token in config.toml, set PAPR_GITHUB_TOKEN in your ~/.bashrc or ~/.zshrc:
export PAPR_GITHUB_TOKEN="ghp_yourTokenHere"
Then in config.toml, you only need:
[sync]
enabled = true
github_repo = "papr-library"
branch = "main"
[!TIP] Setting up a new computer? Just install Papr, put the same token and repo in your settings, and open the app. Papr will pull down all your papers in the background.
Keyboard Reference
View Keyboard Shortcuts Reference
Global Navigation
| Key | Action |
|---|---|
Ctrl+b |
Open workspace navigator |
Ctrl+t |
Open terminal command palette |
? |
Toggle context-sensitive help popup |
/ |
Focus search bar (in Discover/Dashboard) |
Enter / → / l |
Open selected item / drill down |
← / h |
Return to previous view / go up |
Esc |
Clear search / close active modal |
q |
Quit Papr (outside text inputs) |
Paper Actions
Applicable in Library, Reading Queue, Groups, Bookmarks, and Author views:
| Key | Action |
|---|---|
Enter / l |
Open PDF in viewer |
o |
Open paper online in default browser |
a |
Toggle paper in Reading Queue |
B |
Toggle bookmark status |
n |
Open per-paper Markdown note |
g |
Assign paper to a Group |
c |
Copy BibTeX citation to clipboard |
s |
Cycle sort order (newest, oldest, download date) |
> |
Open in-view filter bar |
R |
Rename PDF file |
u |
Mark paper as unread |
x |
Delete PDF from disk and library |
Reading Queue & Downloads
| Key | Action |
|---|---|
Shift+↑ |
Move selected paper up in reading queue |
Shift+↓ |
Move selected paper down in reading queue |
r |
Retry a failed download |
Writing Projects
| Key | Action |
|---|---|
Alt+1 |
Focus project file tree |
Alt+2 |
Focus manuscript editor |
Alt+3 |
Focus PDF preview pane |
Alt+4 |
Focus compilation output logs |
n |
Create new file (append / to create directory) |
Ctrl+s |
Save document and trigger build |
Ctrl+f |
Search library and insert citation |
Ctrl+Shift+v |
Paste clipboard text |
Esc |
Return focus to file tree from editor |
For complete editor keybindings, see the Project Editor Reference.
Configuration
Papr creates a default config.toml on first launch. Inspect your active paths anytime with:
papr paths
Directory Locations
| Platform | Configuration File | Data & Database Directory | Projects Directory |
|---|---|---|---|
| Linux | ~/.config/papr/config.toml |
~/.local/share/papr/ |
~/.local/share/papr/projects/ |
| macOS | ~/Library/Application Support/papr/config.toml |
~/Library/Application Support/papr/ |
~/Library/Application Support/papr/projects/ |
| Windows | %APPDATA%\papr\config.toml |
%APPDATA%\papr\ |
%APPDATA%\papr\projects\ |
Example config.toml
# Appearance
theme = "catppuccin-mocha"
transparent_background = false
startup_page = "dashboard" # dashboard, discover, library, reading_queue, projects
# PDF Viewer: "internal" for terminal graphics, or an external command
pdf_viewer = "zathura {path}"
# Storage & Library Directories
library_folders = [
"/home/user/Documents/papers",
"/home/user/Downloads/research"
]
download_path = "/home/user/Documents/papers"
projects_directory = "/home/user/Documents/projects"
# Research Interests for Daily Dashboard Recommendations
dashboard_keywords = "machine learning, quantum computing, computer vision"
# Writing Projects
default_project_compiler = "typst" # "typst" or "latex"
# GitHub Paper Synchronization
[sync]
enabled = false
github_repo = "papr-library" # Or "username/papr-library"
branch = "main"
# github_token = "ghp_..." # Or export PAPR_GITHUB_TOKEN in your environment
# Plugins
enabled_plugins = []
Themes
Papr ships with 19 built-in themes: catppuccin-mocha (default), catppuccin-macchiato, catppuccin-frappe, catppuccin-latte, tokyo-night, gruvbox, nord, dracula, light, rose-pink-dark, rose-pink-light, everforest, kanagawa, one-dark, cyberpunk, ember, verdant, lavender, and parchment. Themes can be previewed live in the Settings workspace.
Docker Setup
View Docker Instructions (Wayland, X11, macOS)
Papr can be containerized to run in an isolated environment while bind-mounting your local library and projects.
Build Container
docker build \
--build-arg UID="$(id -u)" \
--build-arg GID="$(id -g)" \
--tag papr:latest .
Run Container
First, initialize host directories:
mkdir -p .papr/config .papr/data papers projects
Wayland:
docker run --rm -it \
--name papr \
--env WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
--env XDG_RUNTIME_DIR=/run/user/1000 \
--env DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" \
--env XDG_CURRENT_DESKTOP=GNOME \
--mount "type=bind,src=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY,dst=/run/user/1000/$WAYLAND_DISPLAY,readonly" \
--mount "type=bind,src=/run/user/$(id -u)/bus,dst=/run/user/1000/bus,readonly" \
--mount "type=bind,src=$PWD/.papr/config,dst=/home/papr/.config/papr" \
--mount "type=bind,src=$PWD/.papr/data,dst=/home/papr/.local/share/papr" \
--mount "type=bind,src=$PWD/papers,dst=/papers" \
--mount "type=bind,src=$PWD/projects,dst=/projects" \
papr:latest
X11 (Linux):
docker run --rm -it \
--name papr \
--env DISPLAY=$DISPLAY \
--env DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" \
--env XDG_CURRENT_DESKTOP=GNOME \
--mount "type=bind,src=/tmp/.X11-unix,dst=/tmp/.X11-unix,readonly" \
--mount "type=bind,src=/run/user/$(id -u)/bus,dst=/run/user/1000/bus,readonly" \
--mount "type=bind,src=$PWD/.papr/config,dst=/home/papr/.config/papr" \
--mount "type=bind,src=$PWD/.papr/data,dst=/home/papr/.local/share/papr" \
--mount "type=bind,src=$PWD/papers,dst=/papers" \
--mount "type=bind,src=$PWD/projects,dst=/projects" \
papr:latest
macOS (via XQuartz):
- Install XQuartz:
brew install --cask xquartz - Open XQuartz preferences (Security > check "Allow connections from network clients") and restart XQuartz.
- Allow localhost access:
xhost + 127.0.0.1 - Run:
(Note: Native Homebrew installation is recommended on macOS for seamless browser link handling and clipboard support.)docker run --rm -it \ --name papr \ --env DISPLAY=host.docker.internal:0 \ --mount "type=bind,src=$PWD/.papr/config,dst=/home/papr/.config/papr" \ --mount "type=bind,src=$PWD/.papr/data,dst=/home/papr/.local/share/papr" \ --mount "type=bind,src=$PWD/papers,dst=/papers" \ --mount "type=bind,src=$PWD/projects,dst=/projects" \ papr:latest
Architecture & CLI
Papr is engineered as a modular Cargo workspace:
papr-core: Manages SQLite migrations, database transactions, background download scheduling, recursive library indexing, embedded Typst compilation, and external plugin execution.papr: Manages the terminal user interface lifecycle (Ratatui + Crossterm), event loop dispatch, graphics rendering protocols, and project editor states.
Command-Line Interface
papr # Launch the interactive terminal workspace
papr paths # Display active configuration, database, and library paths
papr download <ARXIV-ID> # Download a paper by arXiv ID, URL, or Markdown link
papr plugin <ID> <EVENT> # Execute a plugin event directly via JSON protocol
Contributing
Contributions, feature requests, and bug reports are welcome! Please ensure all code quality checks pass before opening a pull request:
# Format check
cargo fmt --all -- --check
# Lints
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Test suite
cargo test --workspace
# Documentation
cargo doc --workspace --no-deps
Refer to docs/ARCHITECTURE.md and docs/PLUGINS.md for deeper technical details.
License
Papr is open-source software licensed under the MIT License.
関連プロジェクトを探す
読み込み中…