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.
Prerequisites
Section titled “Prerequisites”- 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
wranglerif you want to deploy to Cloudflare Workers).
Build and install the compiler
Section titled “Build and install the compiler”Clone the repository and install the bynkc binary with cargo:
git clone https://github.com/accuser/bynk.gitcd bynkcargo install --path bynkcThis puts bynkc on your PATH (under ~/.cargo/bin by default). Verify it:
bynkc --helpCheck your environment with bynk doctor
Section titled “Check your environment with bynk doctor”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:
cargo install --path bynkbynk doctorbynk 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:
| Command | Purpose |
|---|---|
bynkc compile | Compile Bynk source to TypeScript. |
bynkc check | Type-check without emitting. |
bynkc fmt | Format Bynk source. |
bynkc test | Compile and run test blocks. |
See the CLI reference for every flag and exit code.
Optional: the language server
Section titled “Optional: the language server”For editor integration (diagnostics, hover, go-to-definition), install the language server:
cargo install --path bynk-lspThis provides the bynkc-lsp binary. Most users consume it through the VS Code
extension rather than invoking it directly — see
Set up editor support.
Create your first project
Section titled “Create your first project”With the driver installed, scaffold a complete, runnable project and serve it — no manifest to write, no layout to memorise:
bynk new hellocd hellobynk dev # serving on http://localhost:8787bynk new only writes files (it needs no toolchain), and the project it writes
is served by bynk dev unmodified. See Start a new
project.
Next steps
Section titled “Next steps”- Start a new project
with
bynk new. - Compile your first program — what a single Bynk file compiles to, by hand.