DEV Community

Imam Ali Mustofa
Imam Ali Mustofa

Posted on

The MylibSQLAdmin Research Journal: 488 Commits, One Blank Page, and the Road to v1.6.3

A research journal, written between releases.

Every project is a research question you didn't know you were asking. MylibSQLAdmin started as a question I asked myself in March 2025: if libSQL is the database I keep choosing, why does managing it still feel like reading tea leaves in a terminal?

This is the logbook of what happened next — the builds, the regressions, the white screens, the fix that shipped a new bug, and the version that finally earned the word stable. I'm writing it in the order the evidence arrived, because cleaning up the timeline would make the findings less true.

Abstract

Subject: MylibSQLAdmin — a self-hosted management platform for libSQL, with a web GUI and a PHP CLI (libsql3).

Question: can a solo maintainer build an admin layer for libSQL that a real team can trust with real databases?

Method: ship, break, verify, write it down. Repeat until the failure rate drops below the embarrassment threshold.

Current state: v1.6.3, 488 commits, green CI, a fresh-install gate, and a changelog that lists its own mistakes.

March 2025 — the question

The first commit landed on March 5, 2025. The motivation was embarrassingly practical: I run libSQL-server (sqld) instances for projects, and managing them meant remembering which sqld endpoint did what, where the tokens lived, and which database belonged to which team. I wanted the thing Turso's cloud console gives you, but self-hosted, on my own box, under my own keys.

So I built a Laravel app around the sqld admin API: databases, tokens, groups, teams, users, activity logs. v1.3.x and v1.4.x shipped through June 2025, and then I did what every solo maintainer does when a paid project gets loud — I put it down.

August 2025 – November 2026 — the dormancy

Between July 27, 2025 and November 14, 2026 there are exactly thirty commits, most of them in the first weeks. Then silence. The repository sat, public, with a working release and a quiet issue tracker.

I'm noting this in the log because maintenance isn't linear, and pretending otherwise is how maintainers burn out. The project didn't die. It waited. Meanwhile I kept shipping in the Turso PHP ecosystem — the extension, the drivers, the installers — and learned things there that this codebase would eventually need.

November 14, 2026 — re-entry, and the audit that started everything

I came back with one intention: upgrade the stack and see what breaks.

Laravel 13, PHP ^8.4, Inertia 3, React 19, Vite 8, Tailwind 4. The upgrade commit was the easy part. What it exposed was not.

Within the same day I found six security-shaped problems that had been sitting there the whole time: an open data plane, tokens stored as plaintext, CLI authorization trusting headers instead of identity, missing authorization on token mint/delete, default super-admin credentials baked into the production image, and tenant isolation that was more suggestion than policy.

The fix list from that day reads like a confession:

  • close the open data plane (SEC-01);
  • hash database tokens at rest (SEC-02);
  • bind CLI authorization to Sanctum identity, never to headers;
  • enforce authorization on token mint and delete;
  • stop baking default super-admin credentials into the image;
  • scope authorization policies per tenant (SEC-06).

None of this was a feature. All of it was the research finding its control group.

November 15 — the beta storm, and honest release markers

I tagged v1.5.0-beta.1 at 01:21. It was broken: the bootstrap seeder didn't create the super-admin, so fresh installs had nobody to log in as. Beta.2 fixed that and shipped a token-mint 500 instead. Beta.3 fixed both.

Then the stable line went out the same day — v1.5.0 through v1.5.4, all on November 15. Five releases in one day is not velocity. It's a confession that the release gate was too thin.

The important part is what stayed on the GitHub releases page afterwards: DO NOT DEPLOY markers on beta.1, beta.2, and later on the entire v1.5.0–v1.5.5 range. A release log that hides its bad releases isn't a log. It's marketing.

November 16 — the white page

Here is the finding I keep coming back to.

Every release from v1.5.0 to v1.5.5 rendered a blank white page. React never mounted. Not a 500, not an exception in the logs — a 200 with nothing inside. Two root causes, both from the Laravel 13 / Inertia v3 upgrade:

  1. resources/js/app.tsx had lost its resolve prop — the resolvePageComponent import was deleted, so the client had nothing to mount.
  2. Inertia v3 changed page delivery to a <script data-page="app" type="application/json"> block. Installations with a stale compiled Blade cache from v2 still rendered the old <div id="app" data-page="..."> format, so getInitialPageFromDOM() returned null and the client crashed with "Cannot read properties of null (reading 'component')".

The fix shipped in v1.5.6, and the lesson is now written into the release process in capital letters: curl smoke checks verify HTTP 200 only and cannot catch a client mount failure. UI releases require a browser check.

That is the day the "fresh-install smoke gate" stopped being a suggestion and became a mandatory instrument: boot logs, migrations, seeded credentials, login, create group, create database, verify the namespace physically on disk, token reveal, create member, archive member, zero console errors — on the exact images about to ship.

The dashboard after the honesty pass — 24-hour metrics that refuse to flatter, storage that says 8 KB when it's 8 KB, and an activity rail that logs the login you just did

November 16–19 — the honesty pass

Once the white page was fixed, I did something I should have done months earlier: I clicked every page of my own app and wrote down everything that lied to me.

Forty to fifty small dishonesties, in one form or another. Metrics that looked heroic while the database was idle. A token "reveal" that was documented but never actually existed. A member count that was always three. A tooltip that was interactive and said nothing. Destructive actions that confirmed through a five-second toast instead of a dialog. A user table with no Last Active column, so every account looked equally alive.

The fix campaign ran as PRs #40 through #53 and it all shared one theme: make the interface tell the truth, even when the truth is boring.

  • Dashboard: real 24-hour baselines, a scope selector, an activity rail (#42).
  • Archive copy: stop claiming things that aren't true (#41).
  • Tokens: a one-time reveal that actually exists, rotation that doesn't pretend, dates that stop gaslighting (#43).
  • Groups: honest reveal, team-scoped attach, working rename, accessible list (#44).
  • Teams: honest confirm flows, manageable invitations, pagination and search (#45).
  • Users: working search, Last Active, password-confirmed force delete (#48).
  • Accessibility: accessible names for icon-only buttons; deactivate through a dialog (#49).
  • DX: Mailpit documented as the local email trap (#50), Pest forced to the same testing env as CI (#52).

The one-time reveal — two tokens, one dialog, no second chance; the only moment plaintext exists

Teams — members, groups, databases, and an archive you can restore from

User Management — a Last Active column, working search, and destructive actions that ask for your password

Then came the one-way door: v1.6.0 moved all stored timestamps to UTC, always, with the display timezone demoted to a setting. The migration has no down(). Every naive datetime written in the old default timezone is re-based in one fail-closed transaction. The release notes say take a backup before upgrading in plain language, and I mean it literally.

November 19–20 — the fresh-install defect, and the fix that fixed the fix

v1.6.0 went out on November 19. That evening I ran the fresh-install gate on the exact images and found the worst possible kind of bug: a brand-new install could not create a database.

Root cause: every HTTP call from the web worker to the sqld admin API resolved to localhost:8081 — nothing listens there inside the container. Only the artisan CLI path worked, which is exactly why my local smoke runs had passed. The error logs were empty because a generic 500 catch-all swallowed the real exception class, message, file and line.

v1.6.1 shipped that same night, with three lessons baked into the changelog:

  1. environment resolution must be uniform between CLI and HTTP paths;
  2. generic 500 handlers must log the real exception;
  3. the gate runs against the artifact, not the source tree.

The next day, v1.6.2 fixed a security defect I'm still not happy about: the embedded Database Studio iframe accepted postMessage events from any origin, which meant any window that could post into the page could execute arbitrary SQL through the in-memory full-access token. The fix pins the origin, pins the target, and sandboxes the iframe. It also fixed the sqld container writing as the wrong uid, and made the libSQL extension install hermetic in the production build.

November 22–23 — the proxy gate, and v1.6.3

The last release of the run is the least glamorous and the most important: v1.6.3, tagged on November 23.

  • POST /v2/pipeline and location / now share a single Lua auth gate. Missing or none access levels, write statements under read-only tokens, and malformed bodies return an empty 204 instead of executing SQL.
  • The database subdomain is derived from the original Host against LIBSQL_PARENT_DOMAIN, so example.com, example.co.uk and example.id all work — and nested or foreign hosts are rejected. A conflicting Host can no longer make a token for database A authorize a query routed to database B. Mismatches fail closed.
  • Trusted proxies are resolved in one place: Cloudflare edge ranges always trusted, private proxies opt-in, extra IPs/CIDRs appended. No more hardcoded list in bootstrap/app.php.
  • entrypoint.sh fails fast on a malformed APP_KEY and selects WEB_SERVER=octane|artisan.
  • psy/psysh was upgraded to patch CVE-2026-25129 — a .psysh.php planted in the working directory is no longer auto-loaded without project trust.
  • The proxy Lua suite runs 31 assertions across both nginx templates.

Databases with the truth attached — owner, teams, groups, rows read/written, total queries, storage

Findings

  1. Trust is a test suite, not a vibe. The project didn't become stable when it got more features. It became stable when every claim had a check behind it — 160 Pest tests and 605 assertions at the v1.6.1 gate, 31 proxy assertions in the Lua suite, CI green on every push.
  2. HTTP 200 is not a receipt. A blank page returns 200. A database creation that never reaches sqld can return 2xx from the UI. The receipt is the namespace on disk and the browser console at zero errors.
  3. Logs that swallow exceptions turn one bug into two. The localhost:8081 defect was small. The generic 500 catch-all made it invisible, which made it expensive.
  4. Release notes must include the bad releases. The DO-NOT-DEPLOY markers on v1.5.0–v1.5.5 are part of the product now. If the changelog can't say "this one was broken," nothing else it says can be trusted.
  5. Maintenance is a research cycle, not a streak. Dormancy followed by a two-week sprint is not failure. It's how solo maintenance actually samples time.

Remaining unknowns

Stable does not mean finished. The open questions are written into the changelog on purpose:

  • The production image still bundles FrankenPHP 1.4.4 while Octane 2.24 requires >= 1.13.2. WEB_SERVER=artisan is a smoke workaround, not a production serving fix.
  • Hosted LRI deployments remain unverified; the scoped smoke ran against local sqld over the network.
  • The fresh-install gate is documented and mandatory, but it is not yet automated against the published images.

Database Studio — the query editor for the same sqld instance, now origin-pinned and sandboxed

What stable means today

v1.6.3, 488 commits, a clean working tree, and a README that tells you how to install the stack with one command. Two clients — the web GUI and the libsql3 CLI — over the same admin API. A user manual with role-based screenshots. A release page that admits which versions should never have been deployed.

I started this project because managing libSQL felt like reading tea leaves. It still has tea leaves. But now they're labeled, tested, and documented — and the ones that lie are listed in the changelog.

That's what I call stable.

Project: github.com/darkterminal/mylibsqladmin · Release: v1.6.3 · Manual: darkterminal.github.io/mylibsqladmin

Previous posts in this series: Nine Years of Open Source · The Sitting of November 12–13, 2026 · Maintaining the Turso PHP Ecosystem in My Spare Time

Support the work: GitHub Sponsors · Saweria · X/Twitter: @panggilmeiam

License: CC-BY-SA. Code in the linked repositories; errors live here because I wrote them.

Top comments (0)