Skip to content

Install

Bynk is pre-1.0 and is not yet published to a package registry. You install it by building from source with a recent Rust toolchain.

  • Rust (stable, 2024 edition). Install via rustup.
  • Git, to clone the repository.
  • A Node.js / TypeScript toolchain if you want to type-check or run the emitted TypeScript (and wrangler if you want to deploy to Cloudflare Workers).

Clone the repository and install the bynkc binary with cargo:

Terminal window
git clone https://github.com/accuser/bynk.git
cd bynk
cargo install --path bynkc

This puts bynkc on your PATH (under ~/.cargo/bin by default). Verify it:

Terminal window
bynkc --help

Rather than hunting down node, tsc, and wrangler one broken command at a time, install the bynk driver and let it tell you exactly what your machine is ready for:

Terminal window
cargo install --path bynk
bynk doctor

bynk doctor groups its checks by capability — compile/check/fmt, bynk test, dev/deploy, editor support — and prints the exact remedy for anything missing. It is the recommended first step: the prerequisites below are checked, not just listed. See Check your environment with bynk doctor for the capability groups, exit codes, and --format outputs.

bynkc exposes four commands:

CommandPurpose
bynkc compileCompile Bynk source to TypeScript.
bynkc checkType-check without emitting.
bynkc fmtFormat Bynk source.
bynkc testCompile and run test blocks.

See the CLI reference for every flag and exit code.

For editor integration (diagnostics, hover, go-to-definition), install the language server:

Terminal window
cargo install --path bynk-lsp

This provides the bynkc-lsp binary. Most users consume it through the VS Code extension rather than invoking it directly — see Set up editor support.

With the driver installed, scaffold a complete, runnable project and serve it — no manifest to write, no layout to memorise:

Terminal window
bynk new hello
cd hello
bynk dev # serving on http://localhost:8787

bynk new only writes files (it needs no toolchain), and the project it writes is served by bynk dev unmodified. See Start a new project.