Installation
bext ships as a single statically-linked Rust binary (bext-server,
typically aliased as bext). There is no Node runtime requirement on
the server — the binary embeds V8 and the Turbopack bundler. (Bun, used
for the default on-demand compile pipeline, is an optional external
binary that bext auto-detects on PATH; see Build Flags.)
Install script (recommended)
The fastest way:
curl -fsSL https://bext.dev/install | sh
The script detects your platform, downloads the latest binary from the
bext release host (get.bext.dev), verifies its SHA256 checksum, and
installs it as bext to /usr/local/bin (or ~/.local/bin if you
don't have sudo).
Environment variables:
| Variable | Default | Purpose |
|---|---|---|
BEXT_INSTALL_DIR |
/usr/local/bin (or ~/.local/bin) |
Override the install directory |
BEXT_RELEASE_URL |
https://get.bext.dev |
Override the release download host (mirror or a pinned release) |
BEXT_SHARED_FRAMEWORK_DIR |
auto | Where the shared @bext-stack/framework is installed (required by PRISM sites) |
To upgrade an already-running server with zero downtime (socket hand-off, no dropped connections):
curl -fsSL https://bext.dev/install | sh && bext upgrade
See Zero-downtime upgrades for details.
From source (Cargo)
If you need a custom feature combination, build from source:
# Clone and build with default features
git clone https://github.com/bext-stack/bext
cd bext
cargo build --release -p bext-server
# Or directly via cargo install
cargo install --git https://github.com/bext-stack/bext bext-server
The default-features build links V8, Turbopack, the Tailwind v4 engine, and the React Compiler — enough to run PRISM and Next.js sites out of the box. See Architecture overview → Feature flags for the full feature matrix and minimal-build commands.
Docker
docker pull ghcr.io/bext-dev/bext:latest
docker run -p 3000:3000 -v ./my-site:/app ghcr.io/bext-dev/bext:latest
The image is ~25 MB (statically linked, stripped). Mount your site
directory at /app and bext will serve it.
Verify
bext --version
# bext 0.x.y
Scaffold a project
To scaffold a new project from a starter template, use bext new:
bext new my-site --template @bext/starter-blog
PRISM is also small enough that the
Quickstart walks you through the three
files needed (page.tsx, bext.config.toml, tsconfig.json) by
hand. Once you've done it once, copy that directory as the template
for new sites.
For an existing project (Next.js, Hono, etc.), run bext init from
inside the project directory — it scaffolds a sensible
bext.config.toml based on the framework it detects:
cd my-existing-app
bext init # interactive
bext init --yes # use defaults
Then start the server:
bext run .
Bun is optional and only needed for the on-demand compile pipeline. If Bun is not on PATH, bext falls back to its embedded Turbopack bundler — you can still run PRISM sites without installing Bun.
Next steps
- Quickstart — build your first PRISM site in under 5 minutes
- Frameworks → PRISM — full reference for bext's native framework
- Frameworks overview — pick the right path for your stack
- Licensing Overview — unlock Pro and Enterprise features with a key
- Operations → Upgrades — zero-downtime upgrade details