npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yamlite

v0.45.1

Published

Sync YAML files and SQLite in both directions

Readme


YAMLite keeps a folder of YAML files and a local SQLite database in sync, in both directions, continuously. Edit a file in your editor and the row changes. Run an UPDATE and the file changes — with your comments still in place.

Why

YAML is great for data humans write: readable, diffable, comment-friendly, git-native. It is terrible to query. SQLite is the opposite. YAMLite lets you keep both without choosing:

  • Hand-written data, SQL queries — tasks, notes, contacts, configs, fixtures. Keep editing YAML; ask questions with SQL, Datasette, or any SQLite tool.
  • App-written data, git history — let a script or app write to SQLite and get every change as a reviewable YAML diff.
flowchart LR
  ED["✏️ your editor"] --> Y["📄 YAML files"]
  Y <-->|"yamlite sync / watch"| D[("🗄️ SQLite")]
  Y --> G["git diff · pull requests"]
  D --> Q["SQL · Datasette · your app"]
  Q --> D

Features

  • Two-way, continuous sync — yamlite watch reacts to file saves and to commits from any process writing the database.
  • One schema file — yamlite init writes yamlite.yaml from your data. Commit it next to your YAML: it pins every column's type, and YAMLite keeps the database matching it.
  • Comment-preserving writes — only changed fields are rewritten; comments, key order and flow style ([a, b]) survive.
  • Typed columns — true → BOOLEAN, 1 → INTEGER, 1.5 → REAL, maps/lists → JSON, inferred from your data.
  • Safe by default — broken YAML is never overwritten or treated as deleted, mass deletions are refused, and the losing side of a conflict is always backed up.
  • Rebuildable — the database is a cache. Delete it, run sync, and it comes back from YAML.
  • CLI and library — use the yamlite command or import { open } from "yamlite".
  • No native dependencies — built on Node's built-in node:sqlite.

Installation

Requires Node.js 24.16 or later.

npm install -g yamlite
# or
pnpm add -g yamlite

Or run it without installing:

npx yamlite status ./notes

Quick Start

Each entry directly under the root becomes a table:

notes/
├── tasks/              # directory → one record per file, key = path (subfolders too)
│   ├── buy-milk.yaml
│   └── write-blog.yaml
└── people.yaml         # file → a list of records, key = `id`
# tasks/buy-milk.yaml
title: 牛乳を買う
done: false
yamlite init notes # infer yamlite.yaml from your files
yamlite sync notes
yamlite query "select title from tasks where done = 0" notes

Documentation

Full documentation: https://yamlite.com/docs/

License

MIT