Push diagrams to reMarkable, fetch annotated drawings, render handwritten notes — built for AI-human collaboration.
Project description
remarkable-ai
A CLI that bridges Claude Code and a reMarkable tablet. Push diagrams, draw on them with a pen, pull the annotations back as a PDF.
┌─────────┐ push ┌───────────┐ draw ┌─────────┐
│ SVG/PDF ├────────▶│ reMarkable├────────▶│ .rmdoc │
└─────────┘ └───────────┘ └────┬────┘
│ fetch
┌────▼────┐
│annotated│
│ PDF │
└─────────┘
Install
uv tool install remarkable-ai
You also need the remark CLI
(Go binary) authenticated with your reMarkable cloud account:
go install github.com/ddvk/rmapi@latest
rmapi # follow the auth prompt once
Commands
# Push a PDF or SVG to the tablet (SVGs auto-convert to PDF)
remarkable-ai push architecture.pdf
remarkable-ai push diagram.svg
# Fetch an annotated document — renders handwriting onto the original PDF
remarkable-ai fetch architecture --output annotated.pdf
# Create a blank titled page for freehand drawing
remarkable-ai blank "Neural Networks"
# Convert SVG to PNG (for review) or PDF
remarkable-ai render diagram.svg
remarkable-ai render diagram.svg --pdf --push-to-tablet
# Push a 9-point crosshair grid, then solve the coordinate transform
remarkable-ai calibrate
# List files on the tablet
remarkable-ai list
Everything lands in /AI Brainstorm/ by default. Pass --folder to change it.
How the fetch pipeline works
When you fetch, three things happen:
- Download —
remark getpulls the.rmdocarchive from the cloud - Extract — the archive is a ZIP with the original PDF and
.rmbinary annotation files; we parse the pen strokes out of the.rmwith rmscene - Render — each stroke is drawn onto a transparent PDF overlay (reportlab), then merged onto page 1 of the original (pypdf)
The coordinate mapping comes from a calibrated affine transform. Run
remarkable-ai calibrate once — circle each crosshair on the tablet, fetch
it back, and the least-squares solver fits the transform.
Architecture
src/remarkable_ai/
├── core/ # Domain types and the transport port. No deps.
│ ├── types.py # PenColor, Point, Stroke, CalibrationTransform
│ ├── transport.py # CloudTransport ABC
│ ├── errors.py # CLIError → RemarkableError, SvgConversionError
│ └── constants.py # Page dimensions (1152×936)
├── adapters/ # Talks to external tools. Depends on core only.
│ ├── remark_cli.py # RemarkCLIAdapter — shells out to remark
│ ├── in_memory.py # InMemoryAdapter — fake transport for tests
│ ├── renderer.py # .rm parsing + PDF overlay compositing
│ ├── svg.py # SVG→PNG/PDF (rsvg → cairosvg → Inkscape)
│ └── templates.py # Blank page + calibration grid PDFs
└── cli/ # The remarkable-ai command. Depends on both.
├── __init__.py # App, console, error handling, entry point
└── commands.py # push, fetch, list, blank, render, calibrate
Boundaries are enforced by tach —
core never imports from adapters or cli.
Claude Code skills
Three skills use this CLI to turn a conversation into a whiteboard session.
Copy the skills/ directory into your project's .claude/skills/ to use them.
/explain-me — Claude draws, you read
Claude generates an SVG diagram explaining a concept, self-reviews it by rendering to PNG and checking for overlaps/alignment, then pushes the final version to your tablet.
/explain — you draw, Claude reads
Creates a blank page on the tablet. You sketch your idea with the pen. Claude fetches it back and interprets the drawing — identifies shapes, arrows, labels, and maps them to technical concepts.
/architect — collaborative architecture design
Given a plan, Claude proposes a hexagonal architecture with an ASCII tree, a detail table, and a draw.io diagram pushed to the tablet. You annotate with the pen. Claude fetches your notes and argues back from architecture principles. Iterate until you agree.
Development
git clone https://github.com/yassineim/remarkable-ai
cd remarkable-ai
uv sync --all-extras
# Quality gates
uv run ruff check src/ # lint
uv run ruff format --check src/ # format
uv run tach check # boundary enforcement
uv run complexipy src/ # complexity (max 15)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remarkable_ai-0.1.0.tar.gz.
File metadata
- Download URL: remarkable_ai-0.1.0.tar.gz
- Upload date:
- Size: 55.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b3cccbdf3c15f85401cea997000468ad8c268141c393c0123f45a47c73d36b
|
|
| MD5 |
000f7bdcfd35726d81d72a780ae38011
|
|
| BLAKE2b-256 |
6251ea1b0226a2034ed74cb11e1d2050e053441e597af5bf60f421a2a40123ac
|
Provenance
The following attestation bundles were made for remarkable_ai-0.1.0.tar.gz:
Publisher:
publish.yml on Yassimba/remarkable-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remarkable_ai-0.1.0.tar.gz -
Subject digest:
f4b3cccbdf3c15f85401cea997000468ad8c268141c393c0123f45a47c73d36b - Sigstore transparency entry: 1200716317
- Sigstore integration time:
-
Permalink:
Yassimba/remarkable-ai@4168386b4f2c06e45664b80d4ba891b9fa36680f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Yassimba
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4168386b4f2c06e45664b80d4ba891b9fa36680f -
Trigger Event:
release
-
Statement type:
File details
Details for the file remarkable_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: remarkable_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3549810f4f5df2ab8a7b7051409b49aad5136e104ea7e6744758061d1e8c097d
|
|
| MD5 |
8a9d98d34a1f46499f98655f3bbc3e48
|
|
| BLAKE2b-256 |
657279e282b302df854aa1fc921b25fdbd6e13345dfb709dfafe89b9e30bb3aa
|
Provenance
The following attestation bundles were made for remarkable_ai-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Yassimba/remarkable-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
remarkable_ai-0.1.0-py3-none-any.whl -
Subject digest:
3549810f4f5df2ab8a7b7051409b49aad5136e104ea7e6744758061d1e8c097d - Sigstore transparency entry: 1200716324
- Sigstore integration time:
-
Permalink:
Yassimba/remarkable-ai@4168386b4f2c06e45664b80d4ba891b9fa36680f -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Yassimba
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4168386b4f2c06e45664b80d4ba891b9fa36680f -
Trigger Event:
release
-
Statement type: