-- @libsql/client has no FreeBSD binary and its wasm build does not -- survive the bundler; better-sqlite3 builds from source. @next/swc-wasm-nodejs -- comes along for the same reason, see patch-next.config.mjs. --- package.json.orig 2026-11-19 12:43:56 UTC +++ package.json @@ -17,7 +17,6 @@ "url": "https://varunraj.in" }, "dependencies": { - "@libsql/client": "^0.17.4", "@radix-ui/react-accordion": "^1.3.1", "@radix-ui/react-alert-dialog": "^1.2.1", "@radix-ui/react-avatar": "^1.3.1", @@ -44,6 +43,7 @@ "@types/react-window": "^1.8.8", "@xyflow/react": "^12.12.0", "axios": "^1.21.0", + "better-sqlite3": "13.0.3", "bs58": "^6.0.0", "chrono-node": "^2.10.3", "class-variance-authority": "^0.7.1", @@ -82,6 +82,8 @@ "zod": "^4.6.7" }, "devDependencies": { + "@next/swc-wasm-nodejs": "15.5.28", + "@types/better-sqlite3": "9.6.0", "@types/jsonwebtoken": "^9.0.10", "@types/leaflet": "^1.9.22", "@types/leaflet.heat": "^0.2.5", @@ -95,6 +97,7 @@ "drizzle-kit": "^0.31.11", "eslint": "^9.39.5", "eslint-config-next": "15.5.23", + "node-gyp": "13.1.0", "postcss": "^8.5.32", "tailwindcss": "^3.4.19", "typescript": "^5.9.3"