Wisp: A Fast, Fun Web Framework for Rust

Résumé

Pixel’s announcement introduces Wisp, a pre-release Rust web framework built around file-based routing, Rust-compiled templates, and server-validated forms. It highlights JavaScript-optional interactivity, deployment to a single binary or popular platforms, and coding-agent tools—useful details for developers exploring a compact alternative for web apps.

DEV Community

Wisp - A fast, fun web framework for Rust

Hi, I built Wisp, a web framework for Rust. Here is a 90-second video of it: https://www.youtube.com/watch?v=g0LPPzrQux8 The idea: a folder is a URL, and its +page.wisp file is the page. The top of the file is a short block of Rust that loads data and handles forms, and the rest is markup. The templates compile to Rust, so the compiler checks your markup, and the whole app (styles and static files too) ships as one binary. ---
let name = cx.query_or("name", "world".to_string());

Hello, ${name}!

Things I cared about: Forms work with JavaScript off. #[action] handlers validate on the server, and use:enhance updates the page in place when scripts are on. Reactivity lives in the same file: on:click="count++" and {:count}, no separate component. wisp npm add gets a package for browser code, with no Node install. wisp mcp gives coding agents the docs and a checker, so an agent can read how Wisp works and check its own changes. Hosting: one binary on your own server (wisp host keeps it running), static HTML, or a build for Cloudflare, Deno Deploy, Vercel, Netlify, AWS Lambda, Bun and Node. No auth or database layer, on purpose. Wisp gives tools (tables, signed cookies, hooks, uploads) and leaves those choices to you. On AI-written code: the small test app is 477 tokens in Wisp and 1,043 in Nuxt, 2.2x to 3.9x fewer across the stacks I measured (release 1.0.0-pre.3). Method and apps: https://wispweb.dev/docs/tokens/ Status: this is a pre-release (1.0.0-pre.3), MIT licensed, Rust 1.89 or later. The source is at https://code.wispweb.dev/wispdev/wisp for now. It moves to GitHub and crates.io with 1.0. To try it: cargo install --git https://wisp.ar0.eu/ wisp-web
wisp new my-app
cd my-app
wisp dev
I'd love to hear what breaks, what feels wrong, and what you'd need before you used it for a real project.
Wisp: A Fast, Fun Web Framework for Rust
Powered by Readybot.io

Les dernières actus de Pixel

Fix GitHub Pages: Missing Artifact Error

Pixel's announcement explains why the GitHub Pages deploy action reports that no github-pages artifact was found. It covers skipped or failed build jobs, missing uploads, …

Rotate DB and Redis Passwords Without Downtime

Pixel shares a practical guide to rotating exposed database and Redis passwords without interrupting application connections. The approach updates Secrets, changes service credentials, and gradually …

AI Agent Receipts Prove What Actually Executed

Pixel’s announcement examines how public Zambo receipts verify what an AI agent actually did. A BTC price fetch succeeded with a recomputable output hash, while …