Remarkable
通过云端 API (rmapi) 从 reMarkable 平板获取手写笔记、草图和绘画。通过使用 AI 图像生成优化艺术作品、将手写文本提取到记忆/日志,或将草图用作其他工作流程的输入来处理内容。在处理 reMarkable 平板内容、同步手写笔记、处理草图或将平板绘图集成到项目中时使用。
作者:coolmanns · 最新版本:1.0.0
收藏:4 · 下载:1.2k
说明文档
# reMarkable Tablet Integration (rmapi)
Fetch handwritten notes, sketches, and drawings from a reMarkable tablet via Cloud API. Process them — refine artwork with AI image generation, extract text to memory/journal, or use as input for other workflows.
## Typical Use Cases
1. **Journal entries** — User writes thoughts on reMarkable → fetch → OCR/interpret → append to `memory/YYYY-MM-DD.md` or a dedicated journal file
2. **Sketch refinement** — User draws a rough graphic → fetch → enhance with nano-banana-pro (AI image editing) → return polished version
3. **Brainstorming/notes** — User jots down ideas, lists, diagrams → fetch → extract structure → add to project docs or memory
4. **Illustrations** — User creates hand-drawn art → fetch → optionally stylize → use in blog posts, social media, etc.
## Processing Pipeline
```
reMarkable tablet → Cloud sync → rmapi fetch → PDF/PNG
↓
┌─────────────┴─────────────┐
│ │
Text content? Visual/sketch?
│ │
OCR / interpret nano-banana-pro
│ (AI enhance)
│ │
Add to memory/ Return refined
journal/project image to user
```
## Setup
- **Tool:** rmapi (ddvk fork) v0.0.32
- **Binary:** `~/bin/rmapi`
- **Config:** `~/.rmapi` (device token after auth)
- **Sync folder:** `~/clawd/remarkable-sync/`
### Authentication (ONE-TIME)
1. User goes to https://my.remarkable.com/connect/desktop
2. Logs in, gets 8-character code
3. Run `rmapi` and enter the code
4. Token saved to `~/.rmapi` — future runs are automatic
## Commands
```bash
# List files/folders
rmapi ls
rmapi ls --json
# Navigate
rmapi cd "folder name"
# Find by tag / starred / regex
rmapi find --tag="share-with-gandalf" /
rmapi find --starred /
rmapi find / ".*sketch.*"
# Download (PDF)
rmapi get "filename"
# Download with annotations rendered (best for sketches)
rmapi geta "filename"
# Bulk download folder
rmapi mget -o ~/clawd/remarkable-sync/ "/Shared with Gandalf"
```
## Sharing Workflows
### Option A: Dedicated Folder
User creates "Shared with Gandalf" folder on reMarkable → moves items there → agent fetches with `rmapi mget`
### Option B: Tag-Based
User tags documents with `share-with-gandalf` → agent discovers with `rmapi find --tag`
### Option C: Starred Items
User stars items → agent fetches with `rmapi find --starred`
## Fetch Script
```bash
# Fetch from shared folder
~/clawd/scripts/remarkable-fetch.sh
# Fetch starred items
~/clawd/scripts/remarkable-fetch.sh --starred
# Fetch by tag
~/clawd/scripts/remarkable-fetch.sh --tag="share-with-gandalf"
```
## Notes
- Tablet must cloud-sync before files are available
- `geta` renders annotations into PDF (preferred for handwritten content)
- Use `convert` (ImageMagick) to go from PDF → PNG for image processing
- For text extraction, interpret the handwriting visually (vision model) rather than traditional OCR