WebDAV bridge to Obsidian.
BOOX uploads a PDF to inkflow over WebDAV. Inkflow stores the PDF in your vault and creates or updates a Markdown note from a template.
- On BOOX, you create the note and fill date/tags with the built-in shortcuts.
- BOOX sends the PDF to inkflow.
- Inkflow writes the PDF into the vault and renders the note.
- Obsidian sees the file in place.
BOOX note creation with date and tag shortcuts on the built-in keyboard.
The note on BOOX before upload.
The resulting file as it appears in Obsidian.
vault_dir is required. Add one or more [[route]] blocks to match incoming BOOX paths.
listen_addr defaults to 127.0.0.1:8080.
webdav_user and webdav_pass can be set in TOML or through WEBDAV_USER and WEBDAV_PASS env vars.
state_file defaults to XDG_STATE_HOME/inkflow/state.db, then ~/.local/state/inkflow/state.db.
template_dir, if set, overrides the built-in templates in internal/plan/templates.
When a route has ai = true, inkflow sends the whole PDF to the Gemini 2.5 Flash API in a single call (inline; no client-side rasterization). The result is a note with two sections:
## Summary— short action-item bullets.## OCR— faithful transcription of the handwritten content.
API key. Provide the key via the GEMINI_API_KEY environment variable, or set api_key_file in the [gemini] block to a path inkflow reads at startup. The env var takes precedence.
Cost. Gemini 2.5 Flash costs roughly $0.005 per note (a few pages, mixed text/drawing). Costs vary with page count and content density.
Privacy. The paid Gemini API tier does not use your data for model training.
Example config with AI enabled on one route:
vault_dir = "/home/anton/Obsidian"
[gemini]
# Reads $GEMINI_API_KEY; falls back to api_key_file if the env var is empty.
api_key_file = "/run/secrets/gemini-api-key"
model = "gemini-3.5-flash"
timeout = "60s"
ocr_prompt = "Transcribe the handwritten page as clean readable Markdown. The goal is a document that reads well, not a pixel-accurate copy of paper layout. Join visually wrapped lines that belong to one sentence into a single flowing line. Do not preserve every line break from the paper. When the writer puts a single name or short phrase above a related cluster of items, render that header as a Markdown heading: `### Name`. Render dash, bullet, or arrow markers on the page as `-` list items. Use a blank line only between structural sections, not after every visual line wrap. Preserve visual markup: wrap text highlighted with a marker pen in `==text==`; wrap text inside a hand-drawn frame or box in `**text**` as a single bold span even if it wrapped across multiple lines; render hand-drawn checkboxes as `- [ ]` (empty) or `- [x]` (ticked). Keep the source language. Faithful transcription only — no translation, no summarization."
summary_prompt = "Summarize as 3-5 short bullets covering action items, decisions, deadlines, people. Use the source language. Plain bullets only — do not produce `[ ]` or `[x]` checkboxes. The reader maintains a separate TODO section elsewhere in the note."
[[route]]
from = "Syncs/"
pdf_dir = "_files/Attachments/Boox/Syncs"
note_dir = "02. Areas/Wallet/Syncs"
note_name = "{stem}.md"
pdf_name = "{stem}.pdf"
template = "sync"
ai = trueRoutes without ai = true skip the Gemini call entirely.
note_dir, pdf_dir, note_name and pdf_name accept placeholders: {date} (2006-01-02), {year}, {month}, {day} (taken from the date at the start of the BOOX file name, or the import time), {stem} (title with [tags] removed), {slug} and {ext}. For example note_dir = "Notes/Syncs/{year}/{month}" files notes into per-month folders.
The BOOX only accepts one WebDAV account. If you also want it to browse another WebDAV server (e.g. Nextcloud Books/), set [upstream] and inkflow becomes a gateway in front of it:
[upstream]
url = "https://nextcloud.example"
prefix = "/remote.php/dav/files/anton" # upstream path inkflow's own root maps to
user = "anton"
password_file = "/run/secrets/nextcloud-password"A request for inkflow path P is served from upstream path prefix + P. A PUT that matches a [[route]] is imported into the vault as usual and then also written to upstream at prefix + P, MKCOL'ing missing parent collections on a 409 and retrying once. Everything else — GET, PROPFIND, MOVE, DELETE, an unmatched PUT, etc. — is reverse-proxied to upstream untouched, with hrefs, Location, and Destination rewritten back to inkflow-relative paths so the BOOX never sees the upstream prefix.
password_file is read once at startup, like gemini.api_key_file.
The BOOX keeps pointing at inkflow's root URL with inkflow's own webdav_user/webdav_pass; switching [upstream] on needs no change on the device. Its cloud view then shows the upstream folders, and routed note exports keep landing in the vault — plus a copy upstream.
On NixOS:
services.inkflow.upstream = {
url = "https://nextcloud.example";
prefix = "/remote.php/dav/files/anton";
user = "anton";
passwordFile = "/run/secrets/nextcloud-app-password"; # a Nextcloud app password
};go run ./cmd/inkflow --config inkflow.toml servego build ./cmd/inkflowSee nix/example.nix and the services.inkflow module in nix/inkflow.nix.


