BLOK
New: The payments block is live · see what's new →
Documentation

Build on BLOK.

Everything you need to snap a backend together in blocks.

Introduction

BLOK is a composable backend platform. You snap together prebuilt blocks — auth, database, storage, queues, payments — then deploy with one command.

Everything runs over https://api.blok.dev. The CLI is the single source of truth: blok init, blok add, blok up.

Quickstart

terminal
$ npm i -g blok
$ blok init
$ blok add auth database
$ blok up
✓ 2 blocks running · api.blok.dev

CLI reference

The core commands, in the order you'll use them.

CommandWhat it does
blok initCreate a new project
blok add <block>Snap a block into the project
blok upDeploy the project
blok logsTail live logs

Blocks

BLOK ships 40+ blocks. The core six — auth, database, storage, queue, payments and edge — cover most backends. Blocks are versioned, typed and wire together automatically.

Wiring

Blocks connect with typed config, not YAML. Permissions, secrets and environment variables are injected at deploy time, and the CLI catches misconfigurations before anything ships.

Deploy

Deploy to BLOK's edge in 300+ regions, or pin any block to your own cloud. Migrations, backups and autoscaling run themselves.

Security & compliance

We are SOC 2 Type II audited. Encryption everywhere, secrets injected as environment variables, and field-level access controls.

Guides