Reading up on SQLite
53 deep · digging since dec 05, 25
- Actually Queryable Executables
Farid Zakaria shows an executable as a SQLite database, letting a web server store code, routes, and state in one file, queryable via SQL.
- Actually Queryable Executables
The SELF format turns executables into SQLite databases, letting programs store and modify their own state and code via SQL, demonstrated by a self‑hosting web server.
- Tracking down the 16-year-old WAL-reset SQLite bug
Researchers uncovered a 16‑year‑old bug in SQLite’s WAL‑reset handling that could cause database corruption during routine checkpoint sequences and affect performance.
- The 44-Minute CI Job (and the One Query Behind It) — Recall Blog
An unindexed CTE made a fuzzy-search query balloon CI benchmark time from ~9 minutes to 44 minutes; switching to a temp table cut it to ~1 second.
- Three ways to smuggle SQLite into Nix
The author demonstrates four methods—exec, importNative, giant Nix file, and WASM—to embed SQLite queries in Nix, comparing their speed and resource usage.
- SQLite for Everything
SQLite can replace many specialized systems—search, document store, queue, cache, vector DB, etc.—by serving as a single-file, zero‑maintenance database for applications.
- How Tailscale helped find the SQLite WAL-Reset bug
Tailscale engineers and SQLite developers collaborated to identify and fix a rare data race bug in SQLite's WAL checkpointing that caused months of database corruption in Tailscale's control plane.
- Choose DuckDB rather than SQLite
The article argues DuckDB outperforms SQLite for analytical queries due to its columnar storage and vectorized execution, recommending it for data analysis tasks over SQLite's transactional strengths.
- Agent swarms and the new model economics
Cursor’s new agent swarm design builds SQLite in Rust with far higher success and far lower code size and cost than its earlier swarm.
- lobste.rs is now running on SQLite
Lobsters successfully moved from MariaDB to SQLite, cutting CPU and memory use, halving VPS costs, and keeping the site responsive after migration.
- Prefer strict tables in SQLite
SQLite's strict tables enforce column affinities and reject invalid data, making schemas safer and more predictable for applications.
- birdclaw — Local Twitter memory in SQLite
Birdclaw is a local-first Twitter workspace that imports archives and caches live reads into a single SQLite database, accessible via CLI and web app.
- Datasette Apps: Host custom HTML applications inside Datasette
Simon Willison introduces a new plugin hosting sandboxed HTML+JavaScript apps inside Datasette, enabling custom read/write SQL interfaces within tight iframe constraints.
- Open Source vs the Invisible Hand
Open source software production defies standard economic theory by producing stable, valuable, and widely-used goods despite lacking price signals, contracts, or incentives that textbooks predict are necessary.
- never waste a token
Putting a durable buffer between AI agents and LLM providers prevents token waste and re-billing when a process crashes mid-stream, with resumable streaming and crash recovery using the same mechanism.
- Arthur Cornil
Many SaaS apps don't need servers; shipping the full backend to the browser via WASM, SQLite, and OPFS enables local-first single-user apps.
- SQLite Is a Library of Congress Recommended Storage Format
The US Library of Congress recommends SQLite as a preferred storage format for datasets, alongside XML, JSON, and CSV, prioritizing long-term readability and low patent risk.
- CLI Printing Press – create go CLI tool from any API
CLI Printing Press automates generating token-efficient Go CLIs, MCP servers, and Claude Code skills from any API by studying official docs, community tools, and sniffed web traffic.
- Honker | Honker
Honker is a SQLite extension that provides durable queues, pub/sub, and task scheduling within the same database file, enabling atomic transactional enqueue without a separate broker like Redis.
- Most Widely Deployed SQL Database Engine
SQLite is the most widely deployed database engine, with billions of copies in smartphones, computers, and other devices, possibly outnumbering all other databases combined.
- GitHub - vincentkoc/slacrawl: cli terminal app for slack with sqlite backend
Slacrawl is a Go CLI tool that mirrors Slack workspace data into local SQLite for offline search, querying, inspection, and git-backed archive sharing.
- Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite
Honker brings Postgres NOTIFY/LISTEN semantics to SQLite by polling the WAL file, enabling cross-process push-style event delivery with single-digit millisecond latency without a broker.
- GitHub - posit-dev/ggsql: A SQL extension for declarative data visualisation based on the Grammar of Graphics.
ggsql is a SQL extension that enables declarative data visualization within SQL queries using the Grammar of Graphics, currently supporting DuckDB and SQLite.
- Do you even need a database?
The article argues that for many small-scale, read-heavy, or single-user applications, flat files like JSON can outperform a full DBMS, but warns that scaling or adding write concurrency will force you to rebuild a database.
- I run multiple $10K MRR companies on a $20/month tech stack
Running multiple $10K MRR businesses on a $20/month stack with SQLite, a VPS, and minimal services is possible, but the approach is controversial among developers.
- SQLite in Production: Lessons from Running a Store on a Single File
Running an e-commerce store on SQLite reduces infrastructure complexity but requires care with concurrent writes, JSON types, and backups.
- Show HN: Turbolite – a SQLite VFS serving sub-250ms cold JOIN queries from S3
Turbolite is a SQLite VFS serving sub-250ms cold JOIN queries from S3 using B-tree-aware page grouping and compression.
- What's in a codebase?
Coding agents lower the cost of rewriting codebases, but codebases encode tacit knowledge and coevolve with people, preserving value that specs alone cannot capture.
- How Do You Want to Remember? | Zak El Fassi | Systems Engineering for the Agentic AI Age
An AI agent diagnosed and redesigned its own memory system, improving recall from 60% to 93% by adding 'why' fields to decisions, costing $2 in API calls.
- LLMs work best when the user defines their acceptance criteria first
Defining clear, testable acceptance criteria upfront dramatically improves LLM-generated code quality, shifting their output from plausible to actually correct.
- Tests Are The New Moat
As AI clones open source work easily, tests, API contracts, and surface area become the new commercial moat, clashing with open documentation incentives.
- Show HN: Micasa – track your house from the terminal
Micasa is a terminal-based home maintenance tracker that stores all data in SQLite, offering schedules, project tracking, and contractor management.
- Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory
LocalGPT is a Rust-based local-first AI assistant with persistent memory, but relies on remote LLM API keys, sparking debate on what 'local' truly means.
- Deep dive into Turso, the “SQLite rewrite in Rust”
Turso rewrites SQLite in Rust to enable a new database engine compatible with SQLite's file format while addressing C's memory safety issues and adding support for concurrent writes.
- It's 2026, Just Use Postgres
The Hacker News commenters debate whether Postgres can truly replace specialized databases like Redis or Elasticsearch, with pushback on performance claims for caching and search.
- Introducing the Codex app
OpenAI released a macOS app for its Codex coding agent, adding a UI, skills, and automations, and reporting over a million developers have used it.
- The challenges of soft delete
HN commenters debate soft delete tradeoffs, noting schema drift, compliance conflicts, and performance issues, with many preferring archival tables or CDC over flags.
- Ask HN: How are you doing RAG locally?
Hacker News commenters share diverse local RAG setups including vector databases, SQLite FTS5, BM25, and lightweight tools like Chroma, Qdrant, and AnythingLLM.
- Databases in 2025: A Year in Review
Andy Pavlo's 2025 database review covers PostgreSQL's continued dominance, emerging trends like vibe coding, and commentary on SQLite, DuckDB, and MCP security risks.
- Show HN: 22 GB of Hacker News in SQLite
A tool serves 22 GB of Hacker News history via SQLite compiled to WASM, fetching only needed database shards in the browser.
- How SQLite is tested
SQLite uses four independent test harnesses, 100% branch coverage, and millions of test cases for reliability.
- SQLite JSON at full index speed using generated columns
SQLite can index JSON fields at full B-tree speed by creating virtual generated columns with json_extract and indexing them.
- Will Turso Be The Better SQLite? (with Glauber Costa) - YouTube
Turso, a serverless SQLite-compatible database, aims to improve concurrency and distributed performance over standard SQLite while maintaining compatibility.
- 100k TPS over a billion rows: the unreasonable effectiveness of SQLite
SQLite achieves over 100k transactions per second on a billion-row dataset by avoiding network overhead, though durability and HA remain trade-offs.
- PGlite – Embeddable Postgres
PGlite is an embeddable Postgres database that runs in browsers and Node.js, enabling local-first and testing use cases.
- Pocketbase – open-source realtime back end in 1 file
PocketBase is an open-source backend combining SQLite, realtime subscriptions, authentication, file storage, and an admin dashboard in a single Go binary.
Takes
We had a team of agents rebuild SQLite from its 835-page manual. It created a replica in Rust which passed 100% of a held-out test suite. Interestingly, cost varied 15x depending on which model mix we used.
@cursor_ai
we did something similar on cloudflare we have these internal apps that use cf primitives like workers, sqlite, r2 and they're all fronted by cloudflare access which requires SSO 100% vibed by opencode
@thdxr
Introducing: @meetgranola CLI/Claude Code Skill/OpenClaw and Hermes skill from the @ppressdev printed by @damienstevens . - Cross-meeting SQLite search - MEMO pipeline runner - Attendee timelines - Stop the MCP logged-out pain Really excited about this one. I can't live without @meetgranola I may have told @damienstevens I loved him when he submitted the PR to the Printing Press.
@mvanhorn
So @loaibassam asked me my stack recently, I replied: FREE: Nginx web server on Ubuntu (free) Auto upgrade with unattended-upgrade (free) Scheduled workers with Cron (free) Vanilla PHP for site backend (free) Vanilla CSS (free) Vanilla JS for code (free) Game servers I do in vanilla Node JS (free) SQLite for DB (free) Python for tool scripts (free) Cloudflare with Cloudflare tunnel for DNS/SSL (free) Tailscale for security (free) OpenFreeMap for maps (free) CHEAP: xAI for AI API (cheap) Stripe for payments (cheap) Cloudflare R2 for image storage (cheap) Hetzner VPS ($4/mo) Cloudflare domain reg (~$10/year) So about ~$5/mo total costs with about ~5M unique visitors per month per site (these are site averages)
@levelsio
pi + ghostty running entirely in a cloudflare workers durable object. sqlite based file system + js code exec + cron support. The best part is it can deploy worker sites using Dynamic Worker Loaders.
@Vercantez
The original plan for Fizzy was to ship the SaaS version with one sqlite database per customer. That didn't end up happening, but we built all the Rails infrastructure needed to make it possible. Mike goes through it all here: https://t.co/f285jYyYcc
@dhh
I successfully ran a Claude Code instance for 24-hours without any action from me.I gave it long(qdrant) and short(sqlite) -term memory, and access to a browser.The run generated:- 500 projects- ~450k LOC- 20 long-term records- 1500+ screenshotshttps://t.co/2LmXnQpUJC
@kuberdenis