Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor(db): drop better-sqlite3, commit to Bun-only CLI runtime

3 months ago

3b86ccc
Authored
asta-nguyen8/8/2026, 5:46:28 AM
The CLI now requires Bun (>=1.1.0) instead of Node >=20. This
simplifies the SQLite layer: bun:sqlite is the only driver, no
runtime detection or adapter needed.

Removed:
- drizzle-driver.ts (runtime driver selection)
- adaptBetterSqlite3() in database-loader.ts (60-line Proxy adapter)
- better-sqlite3 from CLI dependencies
- better-sqlite3 from tsup external list

Changed:
- workspace-db.ts + registry-db.ts: direct drizzle-orm/bun-sqlite import
- tsup shebang: #!/usr/bin/env bun
- package.json engines: bun >=1.1.0 (was node >=20)
- AGENTS.md release workflow: bun instead of node

npm users need Bun installed. This is acceptable — Bun is a single
binary install and the project already uses Bun for development.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parent6974ea6

9 files changed
  • AGENTS.md+2−2
  • apps/cli/package.json+1−2
  • apps/cli/tsup.config.ts+1−2
  • packages/db/src/sqlite/database-loader.ts+3−85
  • packages/db/src/sqlite/drizzle-driver.ts+0−50
  • packages/db/src/sqlite/registry-db.ts+3−2
  • packages/db/src/sqlite/registry-repository.ts+1−2
  • packages/db/src/sqlite/workspace-db.ts+4
−3
  • pnpm-lock.yaml+44−18