YAMLiteGitHub★ 2
Open source · MIT · No native deps

Your YAML files, queryable with SQL.

Your SQLite database, reviewable in git. YAMLite keeps YAML files, and Markdown or MDX front matter, in sync with SQLite in both directions, continuously.

$ npm i -g yamlite
View on GitHub →

Requires Node.js 24.16+ · or try it with npx yamlite

Editing as a team? See YAMLite Cloud →

YAMLite demo: editing the YAML file updates the SQLite row, and an SQL UPDATE rewrites the file with its comment intact
Why

Keep YAML and SQLite without choosing one.

YAML is great for data humans write — readable, diffable, git-native. It is terrible to query. SQLite is the opposite.

  • your editor
  • YAML
  • SQL

Hand-written data, SQL queries

Tasks, notes, contacts, configs, fixtures. Keep editing YAML; ask questions with SQL, Datasette, or any SQLite tool.

  • your app
  • SQLite
  • git diff

App-written data, git history

Let a script or app write to SQLite and get every change as a reviewable YAML diff in a pull request.

Markdown & MDX

Markdown too: front matter becomes columns.

Point a table at **/*.md or *.mdx. The YAML front matter becomes columns and the text below it a body column. Editing one leaves the other's bytes alone.

  • An Obsidian vault, with notes at any depth
  • Blog posts in src/content/blog
  • MDX components and imports are kept as text, never run
yamlite.yaml
tables:
  posts:
    files: "src/content/blog/**/*.mdx"
src/content/blog/hello.mdx
---
title: Hello, YAMLite
date: 2026-10-01
tags: [release]
draft: false
---

Our first post. <Callout>Hi!</Callout>
posts · One row per file
idtitledraftbody
helloHello, YAMLite0Our first post. <Callout>…
Features

Small tool, careful about your files.

Two-way, continuous

yamlite watch reacts to file saves and to commits from any process writing the database.

Comments survive

Only changed fields are rewritten. Comments, key order and flow style stay put.

Typed columns

Booleans, integers, reals and JSON inferred from your data, pinned in one yamlite.yaml.

Safe by default

Broken YAML is never overwritten, mass deletions are refused, and the losing side of a conflict is backed up.

Rebuildable

The database is a cache. Delete it, run sync, and it comes back from YAML.

CLI and library

No native dependencies: built on Node's node:sqlite. Use the command or import { open }.

Rules and references

Declare required fields, allowed values, formats, bounds and references in yamlite.yaml; the UI and check warn about what breaks them.

Lists as rows

Lists inside records, like a project's milestones, become read-only SQL views you can join.

Query to CSV or JSON

yamlite query runs a SELECT without sqlite3 and prints a table, JSON or CSV.

Web UI

yamlite serve — a whole admin for your folder.

yamlite serve: the web UI with a table of tasks and a record open in a form
  • Forms, ERD and SQLEdit records with forms that fit each column type, and see every table on one diagram.
  • History per recordEvery git commit that changed a record, with a way to restore an older version.
  • Send for reviewCommit, push and open a draft pull request from the sidebar.
  • Ask AIClaude or GPT proposes changes with your own API key; nothing is written until you apply them.
  • PagesAdd your own kanban board or dashboard as one HTML file.
Beyond your machine

Check it in CI, publish it, hand it to an agent.

Check every pull request

yamlite check fails on wrong values, missing fields, broken references or mismatched types. Run it in GitHub Actions or a pre-commit hook.

- run: npx yamlite check .

Publish a read-only site

yamlite export writes the web UI as a static site to browse, filter, see the ERD and run SELECT. Every URL is relative, so it works on GitHub Pages.

npx yamlite export .

Hand it to an AI agent

yamlite guide explains how to write yamlite.yaml for the installed version. Point a coding agent at it, or install it as an Agent Skill.

npx skills add yamlite-hq/yamlite
Quick start

From a folder of YAML to SQL in a minute.

  1. 01

    Infer a schema

    yamlite init notes
  2. 02

    Preview

    yamlite status notes
  3. 03

    Sync

    yamlite sync notes
  4. 04

    Query

    yamlite query "select …"
YAMLite Cloud

Your team, in the browser.

Open a GitHub repository and edit its YAML and Markdown with YAMLite's UI — nothing to install. Changes go to a draft pull request.

  • Sign in with GitHub and pick a repository
  • No yamlite.yaml yet? One is generated from your data and sent with your first pull request
  • Your data goes only between your browser, GitHub and the AI provider you choose
  • In preview and open by invitation; once invited, a 14-day free trial per GitHub account