Docs · Examples · CLI · Discord · GitHub
Requirements: Node.js
npm installStart dev server (http://localhost:8787):
npm run devEvery Ziex CLI command is available as npx zig build zx -- <command>.
npm run deployThe worker entrypoint is app/main.ts. wrangler.jsonc declares KV and D1 (DB) bindings (auto-provisioned on deploy).
Pre-rendering: pages that look the same for every visitor can be served from Cloudflare's CDN. Mark them with pub const options = zx.PageOptions{ .rendering = .prerendered }; and set build.command in wrangler.jsonc to:
zig build zx -- build --target=wasm32-wasi --release=small --prerenderSee Pre-rendering.
Built with
- Ziex: https://ziex.dev
- Zig: https://ziglang.org