Press F5 in VS Code to launch an Extension Development Host.
Run command: CBeaver: Open .cblite2
If debugger attach is flaky on your machine
Run Extension Host without debugger:
npm run compile
npm run run:devhost
Then in the new window run CBeaver: Open .cblite2.
run:devhost forces --inspect-extensions=0 to avoid extension-host startup stalls caused by break-on-entry debugging.
On macOS this script works even when code command is not installed in PATH.
Most reliable fallback: install VSIX (no debugger required)
npm run compile
npm run package:vsix
Then in VS Code:
Open Extensions view
... menu → Install from VSIX...
Select generated .vsix from this project folder
Reload window
Run CBeaver: Open .cblite2
Notes and limitations
Backend strategy:
tries native better-sqlite3 first (low-memory, best for very large DBs)
falls back to sql.js when native addon is unavailable
Some Couchbase Lite internals may store body data in non-JSON/binary encoding; this scaffold falls back to text/base64 rendering when JSON parse fails.
Built-in Fleece decode: CBeaver now includes a pure JavaScript Fleece decoder (with shared-keys support), so many Couchbase Lite binary bodies are readable without external tools.
Optional external fallback: when cblite CLI is installed, CBeaver can still call it as a fallback for bodies not decoded by the built-in path. Configure with: