r/sqlite 1d ago

I built an active reading workbench that generates inline, interactive HTML visualizers for technical docs (Demo: SQLite internals)

Enable HLS to view with audio, or disable this notification

2 Upvotes

When reading dense technical documentation or systems architecture specs, static text and flat diagrams often fall short for concepts that involve dynamic state transitions, memory offsets, or execution pipelines.

I’ve been building Noesis, a technical reading workbench that generates interactive HTML artifacts and simulators directly inside any document—either via one-click inline actions or through conversation with the sidebar companion. All generated dynamic media stays permanently embedded with your reading notes.

What's in this 1:25 demo on SQLite's architecture (sqlite.org/arch.html):

  1. Asking the companion to visualize how logical B-Tree nodes map to physical 4096-byte disk blocks.
  2. Inlining an interactive dual-view artifact directly beneath the chapter to step through the seek offset: (PageNumber - 1) * 4096.
  3. Storing the interactive widget permanently with the document for future review.

You can use this workflow across any technical doc to generate interactive pipeline traces, memory layout models, token visualizers, or state machines.

🔗 Try the live interactive SQLite doc: https://noesis-ai.app/article/p/25312 (You can interact with the dynamic widgets and explore the doc directly in the browser).

Would love to hear feedback from anyone studying database engines, systems architecture, or SQLite internals!


r/sqlite 3d ago

Self-hosted browser GUI for SQLite, Postgres, Mongo, Redis, ClickHouse, Druid... now on their official tool lists

10 Upvotes

Affiliation: I’m the maintainer of LibreDB Studio.

Most of the GUI conversation here is Postgres which is fair, but a lot of us also keep Redis, ClickHouse, or Druid in the same week.

I was tired of bouncing between desktop clients and per-engine admin UIs, so I built a self-hosted browser editor that talks to all of them from one place (plus MySQL, Oracle, SQL Server, MongoDB, Cassandra, Elasticsearch and more...).

Not claiming to replace DBeaver/DataGrip. Different access model: it deploys next to the data(kubernetes), not onto every laptop.

Third-party listing, for context:

• PostgreSQL project news + clients catalogue

https://www.postgresql.org/about/news/libredb-studio-an-open-source-self-hosted-sql-ide-for-postgresql-in-the-browser-3368/

• Also in official Redis, ClickHouse, and Apache Druid tool docs

MIT, Docker/Helm/ `npx "@libredb/studio"`. Quick path: `docker run -p 3000:3000 libredb/libredb-studio`

Source: https://github.com/libredb/libredb-studio


r/sqlite 3d ago

Coding a database proxy for fun

Thumbnail packagemain.tech
11 Upvotes

r/sqlite 4d ago

LuaDB: A pure Lua embeddable SQL database for game save files, state tracking, and cloud sync

2 Upvotes

r/sqlite 5d ago

yet another opensource offline-browser / wasm sqlite-editor (used internally for stock trading)

Thumbnail gallery
14 Upvotes
  • completely offline, but feel free to git-clone / host it locally as a quick-and-dirty sqlite table-explorer - https://sqlmath.github.io/sqlmath/index.html
    • import / export / attach - databases
    • import / export - csv, json, tsv
    • export - tables as sql-insert-scripts for mssql / mysql / postgres etc...
  • built originally as dev-oriented frontend dashboard for a tradebot
    • includes some custom / esoteric sql-functions for OLS and sine-fitting (look in file sqlmath_base.c)
    • custom datetime functions manipulating 64-bit integers as YYYYMMDDhhmmss
      • string-based YYYY-MM-DD hh:mm:ss timestamps consumes too much space for intraday stock-data I deal w/ ^^;;;
    • node.js variant also has integrated c-bindings to LightGBM to directly train from, and make predictions from sql-tables.

r/sqlite 5d ago

Renamed my SQL detective game to SQL Shadow — wanted to close the loop from my last post

Thumbnail gallery
0 Upvotes

Hey everyone — following up on the post I made a little while back about the SQL detective game I'm building.

A few people pointed out that the original name was too close to an existing project with a similar concept.

Even though the game itself is built very differently, I get the criticism. If the name creates confusion, there's no real point arguing about it.

So I changed it.

It's now called SQL Shadow.

For anyone seeing this for the first time:

SQL Shadow is a mobile noir detective game where you learn SQL by actually writing SQL.

Not multiple-choice answers pretending to be queries.
Not simulated query execution.

Your queries actually run against real SQLite databases on the device, and the results become the evidence you use to solve the case.

The detective theme is only one part of the project. I've been building the actual learning system around it as well.

The current WIP includes:

  • 🔎 10 structured detective cases — each focused on specific SQL concepts
  • 📚 Standalone SQL lessons — explanations, examples, deep-dives, and practice exercises
  • 🧩 Progressive schema discovery — tables are introduced as you investigate
  • 🧳 Evidence system — clues come from dialogue, quizzes, and SQL results
  • 💻 Real SQLite execution — queries actually execute locally against the case database
  • 🎮 Practice modes — 3 mini-game types with hundreds of SQL questions
  • 🧠 Coaching feedback — wrong answers explain what your query actually returned
  • 🏆 XP and detective ranks — progression as you learn and solve cases
  • 📰 The Daily Detective — an in-game newspaper with new content
  • 👤 Guest-first — you can start playing without creating an account and link your progress later

The basic learning loop is:

Learn the concept → investigate → write the SQL → inspect the result → collect evidence → solve the mystery → practice.

And just to be clear, I don't claim to have invented the idea of combining SQL with detective mysteries. There are already projects in that space, and that's completely fine.

What I'm building is my own implementation of the idea, with a different UI, game structure, learning flow, progression system, lessons, practice modes, and mobile-first experience.

The project is still WIP and currently in internal testing, so a lot of things are still being polished and may change before release.

I'm sharing these screenshots mainly because I'd genuinely like feedback on the UI/UX and learning experience rather than another debate about the name 😅

If you've learned SQL before, I'd especially love to know:

Would a learning flow like this actually make you want to practice SQL, or is there anything you'd change?

Built with Flutter, Riverpod, and sqlite3.


r/sqlite 5d ago

I ran integrity_check on 3 deliberately-corrupted SQLite DBs — here's what it can't catch

0 Upvotes

I corrupted three copies of a 1000-row SQLite DB three different ways (bit-rot in row payloads, truncation, zeroed page) and tested recovery.

The result that surprised me: **bit-rot inside row payloads returns `ok` from integrity_check.** Structure check passes, content is wrong. So my backup discipline now assumes integrity_check validates structure only, not data.

- Truncation / zeroed page → `malformed (11)`, VACUUM INTO fails, need backup or `.recover`
- Garbled payload bytes → integrity_check says ok, VACUUM INTO "succeeds" with corrupted content

Full walkthrough with the raw output here (no signup, no tracking): https://devprofit.net/post/sqlite-corruption-recovery/

**Verdict:** test your restores. A backup you never restored is a folder of bytes.


r/sqlite 5d ago

I built an extension for SQL and I call it BeatSQL

Thumbnail
1 Upvotes

r/sqlite 6d ago

SQLite in Production with Built-In Litestream Replication

Thumbnail openrun.dev
10 Upvotes

I’ve been working on making SQLite a first-class production option in OpenRun. OpenRun is a deployment platform for web apps and internal tools which I have been building as a side project for last three years. Built-in Litestream replication and automatic restore is a new feature I added, so apps can use SQLite while OpenRun handles backup/recovery on Docker, Podman, or Kubernetes.


r/sqlite 7d ago

I built a SQL Workbench-like SQLite Playground

Post image
14 Upvotes

There are many SQL playgrounds out there, but I wanted something closer to a workbench experience in the browser. The Dataslope SQLite Playground lets you work with SQLite in a more workbench-like environment. It's completely free and doesn't require a sign-in.

Features:

  • Query tools (query history, code formatter, ER diagram viewer)
  • Query plan viewer ("explain")
  • Comprehensive I/O (import from .sql, .db, .sqlite, CSV/JSON/Parquet, SQL dump)
  • Flexible result set export formats (CSV, JSON, SQL, Parquet, Excel)
  • Persistence via OPFS or cloud
  • Infinite scroll with dynamic loading instead of loading all rows at once (for 200+ rows)
  • Editable grid for tables (i.e., double-click to edit)
  • Modal cell editor
  • Copy row as JSON/SQL
  • Duplicate row
  • DDL Viewer
  • Visual table structure editor
  • Visual view/index creator
  • Intellisense

I'd love any feedback or feature requests!


r/sqlite 9d ago

Your executable is a SQLite database

Thumbnail fzakaria.com
65 Upvotes

r/sqlite 8d ago

SQLite advanced search engine

Thumbnail
0 Upvotes

SQLite .db search engine ready with us for amazing anchoring and latest search features (Hybrid: Lexical & Semantic) for voluminous documents (100 MB to 2 GB) under milliseconds deterministic responses. We can have a single file (.db) built from 1,000s of documents in diverse formats (PDFs, Excels, Words, Access, PPTs etc). We will show millisecond deterministic responses in our demo.


r/sqlite 10d ago

Used Antigravity to Decrypt iPhone local backup of SMS.DB into SQLite DB and built a tiny analysis web app - took 6 hours lol MACOS only

Thumbnail gallery
0 Upvotes

r/sqlite 11d ago

Building a noir detective game where you learn SQL by writing real database queries instead of doing boring tutorials

7 Upvotes
Home Screen Peek

Hey everyone!

I got super tired of dry, textbook-style SQL tutorials, so I decided to build my own indie game for mobile. It's a noir detective game called SQL Case File where you actually solve crimes by writing real SQL queries.

Instead of multiple-choice quizzes, queries run directly against an actual on-device SQLite database for each case.

I just finished putting together the main case selection screen and the core game loop. Here’s a quick look at where it's at:

  • The Case Board: Built a moody, dim-lit UI with a custom noir palette to handle case progression and unlocks.
  • Real Execution: Queries aren't just text-matched; they actually execute on-device against custom case databases.
  • Progression & Economy: Added a dual-currency system (coins and diamonds), daily login bonuses, and extra mini-game modes for practice.

It's built with Flutterusing Riverpod and the sqlite3 package.

Would love to hear what you guys think of the UI vibe or the concept overall!


r/sqlite 11d ago

3 months into learning programming. reactoredmy database from raw SQL to SQLAlchemy and struggled with autoflush. Did I structure this correctly?

0 Upvotes

I’m 16 and started learning Python about 3 months ago. My first project was a simple CRUD app with raw SQL. For my second project (ashflow tracker with auth and budgeting), I wanted to push myself further, so I switched to Flask, SQLAlchemy, and Flask-Login.

I’m looking for feedback from experienced developers on a few specific architectural decisions and hurdles I ran into:

1. Database Schema Refactoring (Categories & Budgets) Initially, categories were just free-text strings on every transaction. Once I added budgets, case mismatches and typos completely broke my budget tracking. I refactored categories into their own table with foreign keys on the transaction and budget models.

  • Question: Is moving away from free-text strings to dedicated category models always the standard approach here, or are there cleaner ways to handle user-defined categories at scale without making the schema too rigid (fixed categories list) ?

2. SQLAlchemy Autoflush Confusion Coming from raw SQL, SQLAlchemy's session management took a while to wrap my head around. During my refactoring, I hit several bugs where autoflush triggered database writes mid-transaction before I was ready to commit, causing unexpected constraints errors.

  • Question: How do experienced Python devs typically manage session state when doing complex multi-model updates? Do you explicitly disable autoflush, or is that a code smell that points to poor transaction design?

3. Auth Implementation I built authentication from scratch using Flask-Login and password hashing instead of a third-party service just to understand the mechanics. Moving from "auth is a black box" to "it's just checking session state on each request" was a huge lightbulb moment for me.

I’d love any feedback on how I structured my models or handled sessions. You can see how I implemented the SQLAlchemy relationships and routes in my repository here:https://github.com/E-Ecstacy/wise-wealth

Thanks in advance for any insights!


r/sqlite 11d ago

Will the new Rust-based Turso engine get a standalone server like sqld?

5 Upvotes

I’ve been looking into the new Turso engine written in Rust, and I’m really interested in using it for a self-hosted BaaS.

From what I understand, the new engine is primarily an embedded database, while the old libSQL sqld provided a proper standalone server with HTTP access, authentication, replication, and standalone/primary/replica modes.

The new Turso CLI does have a --sync-server, but that seems to be a local server for the Turso sync protocol rather than a full database server comparable to sqld.

So I’m wondering:

Is there a plan to build a standalone server for the new Turso engine?


r/sqlite 13d ago

Reliability Lessons From SQLite - Richard Hipp | SSW 2026

Thumbnail youtube.com
35 Upvotes

All about testing


r/sqlite 13d ago

DBCLS - a terminal DB client

0 Upvotes

I've made a terminal database client that combines a SQL editor with interactive data visualization (via VisiData) in a single TUI tool. It supports MySQL, PostgreSQL, ClickHouse, SQLite, and Cassandra/ScyllaDB, offering syntax highlighting, schema-aware autocomplete ranked by SQL context, query execution, schema browsing, table editing that shows you the generated SQL before committing, and export (including to SQL INSERTs). With no connection arguments it starts on an in-memory SQLite, so dbcls scratch.sql is enough to try it.

The editor isn't limited to single statements — steps chained with | turn a .sql file into a small script: SQL, Python, regex filters, loops, variables, and prompts mid-run:

`.RUN "SHOW TABLES" | .PY "sselect('select tables to use')" |`
`.FOR_RUN "SELECT id FROM {{_0}} WHERE failed = 1"`

All results merge into one sheet. There's also an optional LLM chat (Ctrl+L, any OpenAI-compatible endpoint) that reads your schema through read-only tools and writes queries it can never execute itself, and a plugin API for your own commands.

VisiData brings exceptional data presentation capabilities — sorting, filtering, aggregating and pivoting on the fly, frequency tables and histograms, expression-based columns, and millions of rows navigated at lightning speed — all without leaving the terminal.

GitHub: https://github.com/Sets88/dbcls


r/sqlite 14d ago

BufferOverride — where humans and agents debug together

Thumbnail bufferoverride.com
0 Upvotes

r/sqlite 14d ago

What SQLite GUI features should never be behind a paywall?

0 Upvotes

There are a lot of SQLite clients out there, from very simple viewers to full database tools, but I’m curious where people here draw the line between “basic functionality” and something worth paying for.

Things like editing data, multiple databases/connections, import/export, backups, schema tools, autocomplete, query history, etc.

Which features do you think should just be included for free in a good SQLite client?

And what would you actually be happy to pay for?


r/sqlite 15d ago

how do i convert a sqlite file into something readable

1 Upvotes

i have a whatsapp sqlite file but what do i do with it i cant convert it, can view it in a mess

i just want to convert it into something readable.


r/sqlite 18d ago

How to best optimizing querying within our system that uses many SQLite databases?

11 Upvotes

I have a bit of a specific situation with how my workplace structures SQLite databases that I'm hoping to find a better solution for, mainly related to efficient querying across many database files.

Where I work, we handle a lot of trail camera data (images) that have associated data for what's in the image stored in SQLite databases—all of this is manually filled out as someone goes through image by image. Right now, we're nearing 100 total database files, each storing records for between 300k and 1 million images. We use the program Timelapse from UC Calgary to tag all the images and continually go back in to update things or add new data, so our individual database files have to basically stay as is for this to remain functional.

In the past, we've had people export CSV files from the databases then someone merged them all together with a bunch of really annoying, fragile code. This is, of course, annoying but also doesn't reflect any new changes that happen after that export. I've come in with more expertise in general on programming than they usually get and showed that you can pull things directly from each database with R (we're biologists, that's just the language we're used to). Because of this, we want to come up with a solution that lets us do this across all the databases as needed and stop doing that CSVs.

Right now, running a simple query that results in ~3k rows across most (not all, ~70%) of the individual databases takes about 3 minutes which is fine if you just need a big export, but we'd like to have some interactive visualization tools where a 3 minute wait for something you might decide to change to look at something else right after wouldn't be good for.

Originally I hoped for a way to establish a single connection in a "master" database that would remove some of this latency, but ATTACH which would be the solution isn't going to work for us in about 1-2 years when we exceed the maximum on the number of attachable databases at once. The other potential solution is to have a master database that contains copies of everything in the other database files that updates each night, but we already have issues keeping enough storage available with how much space images take up (and this kinda feels like the lazy solution). For any solution, something we can feasibly manage ourselves after some the initial setup would be preferential because IT can be quite slow to act and we are the ones who will be accessing and editing this data 99% of the time.

Talking to a family member (former IT worker) led me to possibly Microsoft SQL server or some sort of local Oracle database, but unsure if any of this would fit our needs and the suggestions were based on their experience from like 15+ years ago. Whatever we use needs to be able to connect with R since that's what existing pipelines use and many of the ecology-related tools we use aren't in any other language. Really in the end we just want some way to make things run faster and ideally combine things into a single connection point to simplify how we get to the data. Even if it's too complex for us, we still need to give IT a plan with enough details to get them going... or we'll be forever in CSV land.

Really just looking for any guidance since googling didn't get me very far, most people seem to have big issues with write speeds but it actually seems quicker to overwrite a whole column in each of our databases via R than it would be to do a simple query from them all?

One final note: these are currently on a network drive which is probably adding to the latency, but solutions like a local NAS in our office are dubious on if they'd work as a solution or even be in the budget with storage media prices right now.


r/sqlite 19d ago

How we tracked down a 16-year-old SQLite bug

Thumbnail tailscale.com
71 Upvotes

Interesting article


r/sqlite 20d ago

SQLite integration for Android/iOS/WebGL?

Thumbnail
1 Upvotes

r/sqlite 20d ago

🪄

Post image
0 Upvotes