{"_id":"@baz-scm/bdbc","_rev":"6-cef446f3261fa883aa8e642170cd2e6a","name":"@baz-scm/bdbc","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@baz-scm/bdbc","version":"0.1.0","license":"MIT","_id":"@baz-scm/bdbc@0.1.0","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"homepage":"https://github.com/baz-scm/bdbc#readme","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"bin":{"bdbc":"bin/bdbc.js"},"dist":{"shasum":"368944b50b229ef4b05b9b3b1e30719d960fc837","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.0.tgz","fileCount":4,"integrity":"sha512-1kgvJroYKZAvTv9cF8glb07t1Nm+wyUne7/zPHR80IvDwR6glAVpr4sFs+kZTQ2acJOJg4rokWE5+4tbrfRHAQ==","signatures":[{"sig":"MEUCIQDWmnzIjeCGMcsFyF4HOzQc0Ah+3g/jApNyWLxX/aHWMwIgGBV4aBLH6pSkK2YAHKPclmn2wu6WOV88jboSa5IfoIM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7971},"type":"module","engines":{"node":">=18"},"gitHead":"ea75cd735c188431e10aecaa293ee1de301b355d","scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"_npmUser":{"name":"nimrodkor-baz","email":"nimrod@baz.co"},"repository":{"url":"git+https://github.com/baz-scm/bdbc.git","type":"git"},"_npmVersion":"11.3.0","description":"A super lightweight Postgres client for the browser","directories":{},"_nodeVersion":"24.2.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bdbc_0.1.0_1784639159377_0.7503479631853436","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@baz-scm/bdbc","version":"0.1.1","license":"MIT","_id":"@baz-scm/bdbc@0.1.1","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"homepage":"https://github.com/baz-scm/bdbc#readme","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"bin":{"bdbc":"bin/bdbc.js"},"dist":{"shasum":"8ebdd9a121e0914319bd987708f3a7d239128f52","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.1.tgz","fileCount":4,"integrity":"sha512-VZMkXiwdR+lMl14UDQPV8AUkZFzuUPo5PVIgtszw79hfZqTRt2Eu6MvGBn4OxF/8xJFv2ID1eqgkR/OmNCBenQ==","signatures":[{"sig":"MEQCIBrPfk8ZOU/+qJ5ti1CiwEnf+toLdM6TLLV7Ancd4uNRAiAyy9Ptd5guAtJpK5Qu92HAx0wN0BGlTdey1/c8tXOGjQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@baz-scm%2fbdbc@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7466},"type":"module","engines":{"node":">=18"},"gitHead":"12f952c31a623668e72d36e033164ab0d9ca6445","scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:645864fc-3f20-49bd-9c06-76c214344c03"}},"repository":{"url":"git+https://github.com/baz-scm/bdbc.git","type":"git"},"_npmVersion":"12.0.1","description":"A super lightweight Postgres client for the browser","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bdbc_0.1.1_1784639608863_0.051778283360658595","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@baz-scm/bdbc","version":"0.1.2","license":"MIT","_id":"@baz-scm/bdbc@0.1.2","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"homepage":"https://github.com/baz-scm/bdbc#readme","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"bin":{"bdbc":"bin/bdbc.js"},"dist":{"shasum":"dd3548970e6e325dda68cb54c5a7eefbf755a0a3","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.2.tgz","fileCount":4,"integrity":"sha512-8GRIxmHCUbPVsr2k6w01zjU3UbX8uNHhAM5WR9yUIcDVVP+PmJTUw9K8ZvKtGGfszypUyg7KLppTqLsgQlEovw==","signatures":[{"sig":"MEUCIHnG0zX6up2egt/XySn4ozoZYKoRJ4AU7M0fD0gFUGuJAiEApONdMepDGZ98xEUhV1kJpnTuE3ZiXYBg9klgrQO3YCE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@baz-scm%2fbdbc@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8259},"type":"module","engines":{"node":">=22"},"gitHead":"98ea88f35eb9a4cc0de9c23d5db7d980f35119ef","scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:645864fc-3f20-49bd-9c06-76c214344c03"}},"repository":{"url":"git+https://github.com/baz-scm/bdbc.git","type":"git"},"_npmVersion":"12.0.1","description":"A super lightweight Postgres client for the browser","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bdbc_0.1.2_1784640102147_0.5658420645422342","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@baz-scm/bdbc","version":"0.1.3","license":"MIT","_id":"@baz-scm/bdbc@0.1.3","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"homepage":"https://github.com/baz-scm/bdbc#readme","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"bin":{"bdbc":"bin/bdbc.js"},"dist":{"shasum":"a06ada1bd64f189f3d91942b9ec2bbe75a3f3936","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.3.tgz","fileCount":4,"integrity":"sha512-hIFrh0eUdPD5WEMVPhqzVhLPfvkohq7O8fTsn4jdnIyKyPQ1gER21/qNn36wx7rCP4eC5GIqxHG8dxyhHwlUFQ==","signatures":[{"sig":"MEUCIQDKQTfykltIbGGS6aFnhmLFrOMRJIhm+dbxvSV+6x7aGQIgeHslxy0pKcUaIrFY21+iHA71ixN7eF3n8Gg4L1p9TLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@baz-scm%2fbdbc@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8259},"type":"module","engines":{"node":">=22"},"gitHead":"053264ea6c562c1a20f5c7e87234a02eb9faec6c","scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:645864fc-3f20-49bd-9c06-76c214344c03"}},"repository":{"url":"git+https://github.com/baz-scm/bdbc.git","type":"git"},"_npmVersion":"12.0.1","description":"A super lightweight Postgres client for the browser","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bdbc_0.1.3_1784641245612_0.7730012848587067","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@baz-scm/bdbc","version":"0.1.4","license":"MIT","_id":"@baz-scm/bdbc@0.1.4","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"homepage":"https://github.com/baz-scm/bdbc#readme","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"bin":{"bdbc":"bin/bdbc.js"},"dist":{"shasum":"8ff4cd20d527a1a2e4cbc8a1e13e36f626f296fb","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.4.tgz","fileCount":4,"integrity":"sha512-um7PhJ8WJ4asLFLqIVoWCM5fDX2TMgfQuA60Gh50TcXXu+8vCtEpgXyT2Hd8taJt5mw5mpDQW1/ettMy78OPBg==","signatures":[{"sig":"MEUCIBOuejOjsY6f6Ruef2EKyCdScx7Ym6xnE8u/x0qfhL7VAiEAkLGqDJoijouSQM5cG5s/vsWpNoiR+iwvJ19REk3z3zY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@baz-scm%2fbdbc@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8259},"type":"module","engines":{"node":">=22"},"gitHead":"34d50c3908ca6f78623a17c24b0aa4ed7c423e52","scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:645864fc-3f20-49bd-9c06-76c214344c03"}},"repository":{"url":"git+https://github.com/baz-scm/bdbc.git","type":"git"},"_npmVersion":"12.0.1","description":"A super lightweight Postgres client for the browser","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bdbc_0.1.4_1784645033994_0.8232142720111153","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@baz-scm/bdbc","version":"0.1.5","license":"MIT","description":"A super lightweight Postgres client for the browser","repository":{"type":"git","url":"git+https://github.com/baz-scm/bdbc.git"},"type":"module","bin":{"bdbc":"bin/bdbc.js"},"engines":{"node":">=22"},"scripts":{"dev":"bun --hot src/server.ts","build":"bun build --compile --minify src/server.ts --outfile bdbc"},"gitHead":"bdb37fb8ae155825f92aba240e03b33f14fc6153","_id":"@baz-scm/bdbc@0.1.5","bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"homepage":"https://github.com/baz-scm/bdbc#readme","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-n23Gnwkb4PcgoaB9HVb/TS5RoIo6d+MBJuJWqlNvIGvhePROGQmxBqiHMFo2Yr7SyJ+LaGAE2yrINKb9Ib4VbA==","shasum":"2f05936cfe5aeeda69886435f0f30006baaf3663","tarball":"https://registry.npmjs.org/@baz-scm/bdbc/-/bdbc-0.1.5.tgz","fileCount":4,"unpackedSize":8259,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@baz-scm%2fbdbc@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCmbsTlt3brqU7Ohdw7VOfd1B59e2nS0Y3SFi2TYmz6zgIhAPB3y3X8XDJy1oCS/lqS0hNR+kTD7WW3rLq/96iXgXOV"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:645864fc-3f20-49bd-9c06-76c214344c03"}},"directories":{},"maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bdbc_0.1.5_1784646679859_0.6119609420201344"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-21T13:05:59.133Z","modified":"2026-07-21T15:11:20.393Z","0.1.0":"2026-07-21T13:05:59.525Z","0.1.1":"2026-07-21T13:13:28.996Z","0.1.2":"2026-07-21T13:21:42.269Z","0.1.3":"2026-07-21T13:40:45.766Z","0.1.4":"2026-07-21T14:43:54.123Z","0.1.5":"2026-07-21T15:11:19.986Z"},"bugs":{"url":"https://github.com/baz-scm/bdbc/issues"},"license":"MIT","homepage":"https://github.com/baz-scm/bdbc#readme","repository":{"type":"git","url":"git+https://github.com/baz-scm/bdbc.git"},"description":"A super lightweight Postgres client for the browser","maintainers":[{"name":"nimrodkor-baz","email":"nimrod@baz.co"},{"name":"gruebel","email":"anton.gruebel@gmail.com"},{"name":"omriel1","email":"omri@baz.co"}],"readme":"# bdbc\n\nA super lightweight Postgres client for the browser. Single Bun binary, zero external dependencies: connect, browse tables, run queries, export CSV.\n\n## Features\n\n- Manage multiple Postgres connections, browsable as a collapsible tree per connection → schema → table\n- Paste a full connection string (`postgres://user:pass@host:5432/db?sslmode=require`) and have it parsed into fields\n- SQL editor with table-name autocomplete, `Cmd`/`Ctrl`+`Enter` to run\n- `Explain` button to see the query plan without executing\n- Confirmation prompt before running destructive statements (`DELETE`, `UPDATE`, `DROP`, `TRUNCATE`, `ALTER`, `GRANT`, `REVOKE`, `INSERT`)\n- Export query results to CSV with headers\n- Light/dark theme follows your OS setting\n\n## Install\n\n```sh\nnpx @baz-scm/bdbc\n```\n\nNo install step, no Bun required on your machine. The `npx` wrapper detects your OS/arch, downloads the matching prebuilt binary from the [latest GitHub release](https://github.com/baz-scm/bdbc/releases) into `~/.cache/bdbc/`, and runs it. Prebuilt binaries cover macOS and Linux, x64 and arm64.\n\nAlternatively, download a binary directly from [GitHub Releases](https://github.com/baz-scm/bdbc/releases) and run it, no npm/npx involved.\n\n## Requirements (building from source)\n\n[Bun](https://bun.sh). `bdbc` uses Bun's built-in Postgres driver (`Bun.SQL`), so there are no npm dependencies at all, in source or in the built binary.\n\n## Run from source\n\n```sh\nbun run dev    # starts on http://localhost:4560 with hot reload\n```\n\n## The executable\n\n```sh\nbun run build   # produces ./bdbc, a single native executable (~60MB, bundles the Bun runtime)\n./bdbc          # starts the server on http://localhost:4560; open that URL in a browser\n```\n\n`PORT=4561 ./bdbc` to run on a different port. The binary is self-contained: no Bun install, no runtime, no dependencies needed on the machine that runs it. Copy it anywhere and execute.\n\n## Releasing\n\nBump `version` in `package.json`, commit, then trigger the `Release` workflow manually from the Actions tab (or `gh workflow run release.yml`). It builds binaries for macOS/Linux x64/arm64, publishes the `@baz-scm/bdbc` npm package (the `npx` wrapper) with [provenance](https://docs.npmjs.com/generating-provenance-statements), then tags the commit and creates a GitHub Release with the binaries attached and auto-generated notes.\n\nnpm publishing uses [Trusted Publishing](https://docs.npmjs.com/trusted-publishers) (OIDC), authenticated as `baz-scm/bdbc`'s `release.yml` workflow specifically. No `NPM_TOKEN` secret is needed or used.\n\n### Checking provenance\n\nAfter a publish with provenance, the package page on npmjs.com (`npmjs.com/package/@baz-scm/bdbc`) shows a \"Provenance\" section linking to the exact GitHub Actions run, commit, and workflow file that produced it. You can also verify from the command line:\n\n```sh\nnpm audit signatures   # run from a project that depends on @baz-scm/bdbc\nnpm view @baz-scm/bdbc dist.attestations.url\n```\n\n## Credentials and where things are stored\n\n`bdbc` is a local, single-user tool, not a hosted service. Everything it stores lives on the machine you run it on:\n\n- Connections (host, port, database, user, **password in plaintext**, SSL mode) are saved to `~/.bdbc/connections.json`.\n- That directory is created with `0700` permissions and the file with `0600`, readable only by your own user account, but the password itself is **not encrypted**. Treat that file like an SSH private key: don't commit it, don't sync it to a shared machine, don't back it up somewhere less trusted than your home directory.\n- No credentials are ever sent anywhere except directly to the Postgres server you configure. `bdbc` has no telemetry, no external calls, no server component beyond the one running on your own machine.\n- Queries run directly from the machine running `bdbc` to the target Postgres instance, the same as running `psql` locally.\n\nIf you previously used a build of this tool under the name `dbclient`, its config directory (`~/.dbclient/`) is migrated automatically to `~/.bdbc/` the first time you run the renamed binary.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}