feat: SQLite OPFS driver for browser - #10
Draft
brainkim wants to merge 1 commit into
Draft
Conversation
Adds @b9g/zen/sqlite-opfs entrypoint using @sqlite.org/sqlite-wasm with opfs-sahpool VFS for persistent browser storage. - No COOP/COEP headers required - Must run in Web Worker - Fastest OPFS performance (3-4x faster than alternatives) Note: Untested pending libuild multiplatform test runner. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Member
Author
|
Blocked by bikeshaving/libuild#3 |
brainkim
added a commit
that referenced
this pull request
Aug 12, 2026
We were pinned at ^0.1.21, so the whole 0.2 line never came in — including `libuild test`, the multiplatform runner (`--platform bun node chromium firefox webkit`) that PR #10 has been waiting on since December. Verified on 0.2.17: - `libuild build` — unchanged, same 5 entries, same ESM output, no config - `libuild test test --platform bun` — 594 passed, 0 failed 0.2.16 was not usable for browser tests here, and its failure mode was the dangerous one: in an ESM package it reported `0 passed, 0 failed` and exited 0. The dispatcher's top-level await deferred every test file's body past the runner's start, so it ran with nothing registered and called that success. Wiring browser tests into CI on 0.2.16 would have merged a suite that silently ran nothing. 0.2.17 fixes it. Browser platforms additionally need `playwright` (an optional peer dep); adding it belongs with the work that uses it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sxss5Fa7yjQr3on4VArnuk
brainkim
added a commit
that referenced
this pull request
Aug 12, 2026
We were pinned at ^0.1.21, so the whole 0.2 line never came in — including `libuild test`, the multiplatform runner (`--platform bun node chromium firefox webkit`) that PR #10 has been waiting on since December. Verified on 0.2.17: - `libuild build` — unchanged, same 5 entries, same ESM output, no config - `libuild test test --platform bun` — 594 passed, 0 failed 0.2.16 was not usable for browser tests here, and its failure mode was the dangerous one: in an ESM package it reported `0 passed, 0 failed` and exited 0. The dispatcher's top-level await deferred every test file's body past the runner's start, so it ran with nothing registered and called that success. Wiring browser tests into CI on 0.2.16 would have merged a suite that silently ran nothing. 0.2.17 fixes it. Browser platforms additionally need `playwright` (an optional peer dep); adding it belongs with the work that uses it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sxss5Fa7yjQr3on4VArnuk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
@b9g/zen/sqlite-opfsentrypoint - a SQLite driver for browsers using OPFS persistence.Usage
Technical Details
@sqlite.org/sqlite-wasmwith opfs-sahpool VFSStatus
Draft - Pending browser tests via libuild multiplatform test runner.
The driver code mirrors the tested
sqlite.tsdriver, but the WASM integration needs real browser testing before merging.Test plan
🤖 Generated with Claude Code