Skip to content

kapiyva/refill

Repository files navigation

refill

A browser-native client for note.db SQLite files.

English | 日本語

Overview

refill reads and writes any SQLite file that follows the note.db conventions, entirely in the browser.

  • Fully client-side — WASM SQLite runs in the browser. Nothing leaves the page.
  • Statically hostable — Deployable to GitHub Pages, Cloudflare Pages, or any static host.
  • Format-agnostic — Works with any note.db–conforming format. No format-specific code.
  • A reference implementation — Minimal dependencies and plain code, intended to show how note.db conventions translate into a working tool.

Features

  • Open a local SQLite file (file picker or drag & drop)
  • Apply a format from a GitHub URL pointing to format.sql
  • Auto-detection of note tables, related tables, and views
  • CRUD on note records — Markdown editor + property panel (with NULL representation)
  • Sub-form editor for related tables (per Convention 5: note_id + label)
  • Read-only display of views
  • Save the modified database back to disk (download)

Development

pnpm install
pnpm dev

Open http://localhost:5173/. Drop a SQLite file, or paste a GitHub URL pointing to a format.sql.

A minimal verification fixture can be generated:

sqlite3 fixtures/test.db < fixtures/seed.sql

Stack

License

MIT

See also

  • note.db — the conventions refill targets

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors