@zigbase/server
v0.11.0
Published
ZigBase server — official prebuilt binary distribution (typegen-enabled).
Readme
@zigbase/server
The official prebuilt ZigBase server binary, typegen-enabled. Ships as a meta-launcher that
resolves the correct platform-specific binary from the corresponding @zigbase/server-<platform>
optional dependency — the same distribution strategy as esbuild.
Usage
npx @zigbase/server serve --http-port 8090 --data-dir ./zb_dataThe zigbase binary is also available on PATH after npm install:
zigbase serve --http-port 8090 --data-dir ./zb_data
zigbase --helpFrom Node.js, resolve the binary path programmatically:
const { binaryPath } = require("@zigbase/server");
const bin = binaryPath(); // absolute path to the platform binarySupported platforms
| Platform | Package |
| --- | --- |
| Linux x64 | @zigbase/server-linux-x64 |
| Linux arm64 | @zigbase/server-linux-arm64 |
| macOS x64 | @zigbase/server-darwin-x64 |
| macOS arm64 | @zigbase/server-darwin-arm64 |
Windows support is not yet available.
The per-platform packages are installed automatically as optional dependencies — you do not need
to depend on them directly. If no platform package matches the current host, binaryPath() throws
a clear error.
Typegen
@zigbase/server ships a typegen-enabled binary. @zigbase/typegen builds on it to provide
npx @zigbase/typegen — no Zig toolchain required.
Requirements
- Node.js >=18
- One of the supported platforms listed above
