Skip to main content

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:

  1. Downloadremark get pulls the .rmdoc archive from the cloud
  2. Extract — the archive is a ZIP with the original PDF and .rm binary annotation files; we parse the pen strokes out of the .rm with rmscene
  3. 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 tachcore 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remarkable_ai-0.1.0.tar.gz (55.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remarkable_ai-0.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

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

Hashes for remarkable_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4b3cccbdf3c15f85401cea997000468ad8c268141c393c0123f45a47c73d36b
MD5 000f7bdcfd35726d81d72a780ae38011
BLAKE2b-256 6251ea1b0226a2034ed74cb11e1d2050e053441e597af5bf60f421a2a40123ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for remarkable_ai-0.1.0.tar.gz:

Publisher: publish.yml on Yassimba/remarkable-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for remarkable_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3549810f4f5df2ab8a7b7051409b49aad5136e104ea7e6744758061d1e8c097d
MD5 8a9d98d34a1f46499f98655f3bbc3e48
BLAKE2b-256 657279e282b302df854aa1fc921b25fdbd6e13345dfb709dfafe89b9e30bb3aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for remarkable_ai-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Yassimba/remarkable-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page