The Bynk Book
Bynk is pre-1.0 (currently v0.652) and under active development. The language changes in small, spec-first increments. This book documents what compiles today on the development line,
main; planned features are marked as planned rather than described as if they exist. See Versioning & roadmap.This version can be ahead of the latest release, which is what an install gives you. Releases lists each release, and Unreleased what has changed since the latest one.
Welcome to the official guide and reference for Bynk — a statically typed, architecture-first language that compiles to typed TypeScript for Cloudflare Workers.
The book has four parts to read:
- Start — what Bynk is, why it exists, and how to install it.
- Learn Bynk — a tutorial that builds one service, chapter by chapter. Read it in order.
- Concepts — the ideas behind each part of the language: why it works the way it does.
- Guides — how to do a particular task, grouped by what you are building.
And three to look things up in:
- Reference — the exact rules of the language and its tooling.
- Specification — the normative definition of the language.
- Diagnostic index — every error the compiler reports, with a page for each saying what it means and how to fix it.
Each page does one of those jobs, following Diátaxis: a tutorial teaches, a concept explains, a guide gets a task done, and the reference states the rules.
If you are not sure where to start:
- New to Bynk? Read What is Bynk?, then work through Learn Bynk in order.
- Coming from TypeScript? Read Coming from TypeScript.
- Evaluating Bynk? Read Why Bynk exists, then Bynk compared to TypeScript.
- Have a specific task? Go to the Guides.