SQLite DB for Obsidian

  • personal
  • 2025 – now
  • role: author and maintainer
  • solo
  • ongoing

An official Obsidian community plugin that runs SQL against SQLite databases from inside your notes and renders the results as lists, charts, counters and switches: 3,800+ downloads.

Inside an Obsidian note: an "Evening Reflection" form whose fields read and write a SQLite database, and a pie chart rendered from a SQL query

results

  • Listed in Obsidian's official community plugin directory: 3,800+ downloads, 44 GitHub stars
  • SQL code blocks render results as lists, pie/line/bar charts, habit counters and switches
  • Works on a local .db file through sql.js (WebAssembly) or a remote API behind Cloudflare Access

the story

If you've read about LoS, you know my life lives in a database, and that Obsidian is where I think. This plugin connects the two: write SQL in a code block inside any note, and the results show up right there, as natural lists, charts, or habit counters and switches you can click.

It's an official Obsidian community plugin, reviewed by the Obsidian team before being listed, and people actually use it: more than 3,800 downloads so far.

It works with a local .db file through sql.js (SQLite compiled to WebAssembly) or with a remote API, optionally behind Cloudflare Access. There are filters and date ranges for queries, commands to inspect table structures and export rows as notes, and a journal sync that moves entries between the database and the vault in both directions.

Useful to strangers

Making something built around my own schema useful to strangers. A plugin that only works with your own tables is a script; one other people can use needs configurable code blocks, sensible defaults, and documentation for people whose databases look nothing like mine.

built with