A native notebook and handwriting studio built in pure Rust — pressure-aware ink, PDF annotation, WebAssembly support, and optional self-hos
A native notebook and handwriting studio built in pure Rust — pressure-aware ink, PDF annotation, WebAssembly support, and optional self-hosted sync.
READMEGitHub 上的 Alyx-Labs/papercraft
Important Initial Alpha — Concept Validation & Community Release
PaperCraft is currently in an initial alpha phase focused on validating the core concept, handwriting feel, and local-first architecture together with the community. Development is intentionally unhurried and focused on staying extremely lightweight—prioritizing responsiveness, stability, and clean pure-Rust foundations over feature bloat.
- Future mobile ports: Because the drawing, document, format, and sync engine (
L0–L5) is strictly decoupled from the UI shell (L6), the long-term goal after validating the desktop/web alpha is to bring lightweight native ports to Android, iOS, and tablets without rewriting the core.- AI-assisted contributions are strongly encouraged: Community contributors are warmly encouraged to use AI coding assistants to explore, fix bugs, and build improvements—provided every change strictly follows
AGENTS.mdand passescargo xtask ciso the app stays fast and crash-free.- Alpha data tip: While the format and sync engine mature, keep periodic backups of your
library/folder or export important notebooks as.pcraft/.pcraftpkg.
PaperCraft is built around three simple principles:
papercraft-server system-tray app quietly in the background—letting you create multiple isolated local accounts (for example, personal, study, or work) and sync seamlessly across devices. Pair it with any private encrypted mesh VPN to access and sync your self-hosted notebooks securely from anywhere, without relying on third-party cloud services.Tip Try PaperCraft right now — no installation required: open web.papercraft.ink and start writing in your browser. It runs 100% client-side via WebAssembly.
Pre-built binaries are published on GitHub Releases (v0.9.0-alpha) for Windows, Linux, and macOS. PaperCraft ships as two separate standalone apps—install the Desktop App on its own for offline note-taking, and add the Server only if you want self-hosted multi-device sync:
Important Portable setup & where to place the files (
papercraftandpapercraft-server):Both PaperCraft App and PaperCraft Server ship as self-contained portable applications with no separate installer. Before launching them for the first time, move each executable (
.exe/.AppImage) or.appbundle into the permanent, writable folder where you want to keep and run it (for exampleC:\Users\<you>\Apps\PaperCraft\on Windows,~/Applications/PaperCraft/on Linux, or/Applicationson macOS — avoid running from a temporaryDownloadsfolder or read-only system directories likeC:\Program Files):
- Portable data & updates live right next to the executable: On Windows and Linux, the Desktop app creates
library/and the Server createsserver_control_config.jsonandserver-data/beside the executable (and on all platforms, in-app updates replace that file in place).- Automatic Desktop shortcut: Both apps have a Create Desktop shortcut automatically switch enabled by default (Settings -> System -> App Updates in the Desktop app, and App Updates in
papercraft-server). It creates a native launcher (PaperCraft.lnk/PaperCraft Server.lnkon Windows, a.desktoplauncher + icon inXDG_DESKTOP_DIRon Linux, or a.applink on macOS) pointing to that permanent folder, and automatically refreshes the shortcut whenever the app updates so you never have to search for the executable.
papercraft-server-cli): For Linux/server hosts without a desktop tray, build from source with cargo build --release -p papercraft-server-cli..dmg builds are compiled and packaged in GitHub Actions, but remain experimental (not yet tested on physical Mac hardware).PaperCraft brings notebooks, paper, and a pressure-aware drawing engine together in one focused desktop workspace.
| Format | Use |
|---|---|
.pcraft | Native PaperCraft notebook file for saving and reopening editable notebooks (also reads legacy .ncraft files) |
.pcraftpkg | Complete workspace backup package containing notebooks and studio preferences (also reads legacy .ncraftpkg) |
.pdf | Import existing PDFs for annotation or export a notebook as a multi-page document |
.png | Share or print a page as a raster image |
.svg | Export a page as scalable vector artwork |
Every document and tool change goes through the papercraft-engine command registry. The desktop UI, web app, and headless CLI use the same engine, so notebook operations can be scripted without driving the UI.
# List all registered engine commands
cargo run -p papercraft-cli -- commands
# Render the built-in handwriting and stabilization showcase to PNG
cargo run -p papercraft-cli -- demo --output target/demo_showcase.png
# Execute a JSON array of {"id": "...", "params": {...}} commands and render to PNG
cargo run -p papercraft-cli -- run path/to/script.json --output target/page.png
Arc.Session owns document state and validates mutations before they are applied.apps/papercraft) and WebAssembly (apps/papercraft-web) apps share the same egui/eframe interface.apps/papercraft-server system-tray control app or apps/papercraft-server-cli headless CLI).Install the Rust toolchain (1.95+, via rustup), clone this repository, and run all commands below from the workspace root.
Need the full step-by-step guide? See the Command Reference.
| Platform | Status | What works today | Notes |
|---|---|---|---|
Windows (x86_64) | Supported & tested | Native Desktop (papercraft), Server Tray App (papercraft-server), CLI server, full Windows Ink hardware stylus (pressure, tilt, barrel buttons, eraser end), clipboard text/image paste | Primary tested alpha platform |
Linux (x86_64, Wayland & X11) | Supported (CI-verified) | Native Desktop (papercraft), Server Tray App (papercraft-server via ksni), CLI server, zenity/kdialog file dialogs, wl-clipboard/xclip/xsel text & image clipboard paste, /sys/class/input stylus detection | Native XInput2 / Wayland zwp_tablet_v2 barrel/tilt monitor is planned; full stylus barrel/tilt works today in Linux browsers via WebAssembly PointerEvent |
macOS (aarch64) | Experimental — needs community testing | Compiles in GitHub Actions release builds with osascript file dialogs and pbpaste/pbcopy text & image clipboard support | Not yet tested on physical Mac hardware — bug reports and test feedback from macOS users are very welcome; native AppKit stylus hook is planned |
| Web (WebAssembly) | Supported & tested | Runs 100% client-side in modern browsers on Windows, Linux, macOS, and tablets (web.papercraft.ink); W3C PointerEvent stylus pressure, tilt, rotation, barrel buttons, and inverted eraser end | Local cache in localStorage, optional sync via self-hosted server |
| Target | Run in development mode | Generate production / release build | Output |
|---|---|---|---|
| Desktop (Windows, Linux, macOS) | cargo run -p papercraft | cargo build --release -p papercraft | target/release/papercraft (or target\release\papercraft.exe) |
| Server Tray App (optional, GUI) | cargo run -p papercraft-server | cargo build --release -p papercraft-server | target/release/papercraft-server (or .exe) |
| Web (WebAssembly) | cargo xtask web (opens on :8080) | cargo xtask web-build | dist/ static bundle |
| Sync Server (CLI) (optional) | cargo run -p papercraft-server-cli -- serve --data-dir target/dev-server-data --bind 127.0.0.1:8787 | cargo build --release -p papercraft-server-cli | target/release/papercraft-server-cli (or .exe) |
Want to build all desktop & server release binaries at once (Desktop + Server Tray App + Sync Server CLI + CLI)?
cargo build --release -p papercraft -p papercraft-server -p papercraft-server-cli -p papercraft-cli
papercraft)cargo run -p papercraft
target\release\papercraft.exe on Windows, with embedded app icon and no console window; target/release/papercraft on Linux and macOS):
cargo build --release -p papercraft
.exe / .AppImage / .app) to the permanent folder where you want to keep it—your library/ folder and in-place updates stay right beside it, and Create Desktop shortcut automatically (Settings -> System -> App Updates) keeps an OS Desktop launcher pointed there and refreshes it automatically after every update.zenity or kdialog for native file open/save dialogs, and wl-clipboard (Wayland) or xclip/xsel (X11) for clipboard text/image paste.aarch64-apple-darwin, but macOS has not yet been tested on real Mac hardware—if you run PaperCraft on macOS, please share test feedback or issues!papercraft-web, WebAssembly)Try the hosted live demo at https://web.papercraft.ink/, or run and build it locally from source.
Install the WebAssembly target and Trunk once before running or building Web locally:
rustup target add wasm32-unknown-unknown
cargo install --locked trunk
http://127.0.0.1:8080):
cargo xtask web
cargo xtask web --release --no-autoreload
dist/ (ready for GitHub Pages or any static web server):
cargo xtask web-build
# Open http://127.0.0.1:8080 automatically after the initial build
cargo xtask web --open
# Listen on all interfaces (to test from a tablet or phone on the same network)
cargo xtask web --address 0.0.0.0
# Serve on a custom port
cargo xtask web --port 3000
# Equivalent command if running Trunk directly inside apps/papercraft-web
cd apps/papercraft-web && trunk serve
Tip In the browser, notebooks and studio preferences are persisted locally in
localStorage(papercraft_workspace_v1).
papercraft-server tray app or papercraft-server-cli)PaperCraft works 100% locally and offline without running any server—just launch the Desktop or Web app and start writing.
However, the recommended everyday setup is to keep the lightweight papercraft-server system-tray app running quietly in the background:
Display Name, @username, email, password updates, and workspace switching).0.0.0.0:8787) and connect over your own encrypted mesh VPN so you can sync your notebooks from any of your devices anywhere—without exposing public ports or paying for third-party cloud storage. (Note: if connecting from an https://-hosted Web client to a remote address, place the server behind a TLS reverse proxy to satisfy browser mixed-content rules.)papercraft-server, recommended for everyday use)papercraft-server bundles the sync engine into a single standalone GUI app (papercraft-server-windows-x86_64-portable.exe on Windows, papercraft-server-linux-x86_64.AppImage on Linux, and papercraft-server-macos-arm64.dmg on macOS from GitHub Releases) that runs in your OS system tray with a minimalist control window—no terminal flags required:
papercraft.redb is stored (defaults to <executable_dir>/server-data).127.0.0.1), Local network / VPN (0.0.0.0), or Custom IP, plus port (default 8787), with 1-click Copy buttons for client URLs.papercraft-server in the permanent folder where you want to store its config (server_control_config.json) and default database (server-data/). Closing the window hides it to the system tray while keeping the server running (use Quit to flush and stop cleanly). Under App Updates, Create Desktop shortcut automatically creates a Desktop launcher pointing to that folder and refreshes it automatically on every update.# Run in development mode
cargo run -p papercraft-server
# Generate the standalone release binary (target\release\papercraft-server.exe on Windows, no console window)
cargo build --release -p papercraft-server
papercraft-server-cli, for terminals, Linux servers & admin commands)target/dev-server-data, listens on http://127.0.0.1:8787):
cargo run -p papercraft-server-cli -- serve --data-dir target/dev-server-data --bind 127.0.0.1:8787
target\release\papercraft-server-cli.exe on Windows):
cargo build --release -p papercraft-server-cli
Both the Desktop app and the Web dev server (http://127.0.0.1:8080) connect to http://127.0.0.1:8787 by default. To test Server + Web + Desktop together in development, run each in its own terminal:
cargo run -p papercraft-server (or cargo run -p papercraft-server-cli -- serve --data-dir target/dev-server-data --bind 127.0.0.1:8787)cargo xtask web (open http://127.0.0.1:8080)cargo run -p papercraftSee the Self-hosted account and sync guide for settings mapping, environment variables, Windows Firewall setup, backup steps, and admin commands.
# Full workspace CI suite (architecture layers, formatting, clippy, and tests)
cargo xtask ci
# Check only architecture layer boundaries (L0 -> L6)
cargo xtask layers
# Check and lint the WebAssembly app target
cargo check --target wasm32-unknown-unknown -p papercraft-web --all-targets
cargo clippy --target wasm32-unknown-unknown -p papercraft-web --all-targets --no-deps -- -D warnings
See the Command Reference for CLI automation (papercraft-cli), branding regeneration (cargo xtask branding), and all output paths.
Community participation is at the heart of this initial alpha—bug reports, usability feedback, documentation improvements, and pull requests are all welcome.
Join the community on Discord to ask questions, share handwriting feedback, report issues, and follow development.
Important AI coding assistants are highly recommended—with strict adherence to
AGENTS.md.PaperCraft actively embraces AI-assisted workflows so contributors can prototype, fix issues, and refine features efficiently while keeping the project lightweight. To protect the stability and architecture of the app, every contributor and AI assistant must strictly follow the rules in
AGENTS.mdbefore opening a pull request:
- Respect architecture layer boundaries (
L0 -> L6): No UI crates belowL6, no reverse dependencies—verified bycargo xtask layers.- Never introduce crash paths or unsafe code: Zero
unwrap(),expect(),panic!(),todo!(),unimplemented!(), orunreachable!()in non-test code, and#![forbid(unsafe_code)]everywhere outside localized OS hooks inpapercraft-tablet.- Sanitize hostile inputs & route mutations through commands: Guard
NaN/Infinity, avoid unbounded allocations, and dispatch user-visible mutations throughpapercraft-enginecommands.- Keep the app lightweight, 100% English in UI, and free of third-party app names: Avoid unnecessary dependencies, keep Lucide icons vendored through
crates/ui-egui/src/icons.rs, and follow the existing UI/theme conventions.- Verify every change before submitting: Run the full workspace check suite (
cargo xtask ci) plus the WebAssembly checks (cargo check/clippy --target wasm32-unknown-unknown -p papercraft-web --all-targets) and review AI-generated diffs carefully so nothing breaks the app.
.exe builds (Desktop & Server Tray App), Web builds, and server commands.papercraft-server) or headless CLI (papercraft-server-cli).The optional sync server hashes account passwords with Argon2id, stores token hashes, and rate-limits authentication endpoints. Keep the server on a trusted local network, or place a TLS reverse proxy in front of it when connecting over an untrusted network. See the sync guide for deployment details.
PaperCraft's source code is available under either the MIT License or the Apache License, Version 2.0, at your option.
The Alyx Labs, PaperCraft, Paper Craft, and PaperCraft Server names, wordmarks, official domains (papercraft.ink, web.papercraft.ink), bundle identifiers (com.alyxlabs.*), brand artwork in apps/papercraft/assets/branding/, and brand illustrations in crates/ui-egui/assets/illustrations/ are proprietary trademarks and brand assets of Alyx Labs. They are not open source and are governed separately by LICENSE-brand.txt. If you distribute a fork or modified build, you must remove or replace these brand assets and use your own name and logo.
Vendored icons, embedded fonts, and other third-party materials retain their separate licenses, summarized in NOTICE and detailed in ATTRIBUTION.md.
最近一次从 GitHub 更新:10小时前
GitHub 数据每天更新数次。
每天收集星标数后,图表会逐步填充。
本站收录的所有 Goodnotes 和 Notion 和 OneNote 开源替代品一览。点击列标题即可排序。
AppFlowy | 8万 | +345 | AGPL-3.0 | 16天前 | – |
|---|---|---|---|---|---|
Memos一键托管 | 6.5万 | +137 | MIT | 8小时前 | – |
Joplin Server一键托管 | 5.7万 | +88 | Other | 5小时前 | – |
TriliumNext一键托管 | 3.9万 | +135 | AGPL-3.0 | 5小时前 | – |
Wiki.js一键托管 | 2.9万 | +35 | AGPL-3.0 | 前天 | – |
Docmost一键托管 | 2.2万 | +52 | AGPL-3.0 | 8小时前 | – |
BookStack一键托管 | 1.9万 | +12 | MIT | 8小时前 | – |
Blinko一键托管 | 1.1万 | +19 | GPL-3.0 | 5天前 | – |
HedgeDoc一键托管 | 7532 | +2 | AGPL-3.0 | 昨天 | – |
SilverBullet一键托管 | 6696 | +68 | MIT | 6小时前 | – |
OpenKnowledge | 4949 | +13 | GPL-3.0 | 4小时前 | – |
DokuWiki一键托管 | 4752 | +5 | GPL-2.0 | 前天 | – |
还没有评论,来做第一个吧。
展示一下:一张实时卡片,显示你的排名和评分,会自动更新。
想要小号徽章?添加 ?style=flat