Hi all. I've been building Coldforge, a web framework for apps that are mostly pages and forms. The app/ folder is the router, every page renders to HTML on the server, and nothing ships to the browser unless you ask for it.

A page is an async function that takes Axum extractors:
use coldforge::prelude::*; #[page] async fn page(Path(id): Path<u32>, State(state): State<AppState>) -> Result<View> { let room = state.room(id).ok_or_else(Error::not_found)?; Ok(view! { <h1>{&room.name}</h1> <a href={Route::Rooms}>"All rooms"</a> }) } What works today
- Folders become routes:
app/rooms/[id]/page.rsis/rooms/:id, with a typedRoute::RoomsId { id: u32 }. A broken link is a compile error. - Layouts and the page of a route run concurrently, so nested layouts don't add up into a waterfall.
- Forms post to
#[action]functions. CSRF protection is always on, field errors come back with the old input,Redirect::toonly accepts aRoute, and all of it works with JavaScript off. - Encrypted cookie sessions with flash messages, file uploads,
error.rsandnot_found.rsboundaries, middleware, hashed stylesheets, optional HTTPS with post-quantum key exchange. coldforge newandcoldforge dev, with rebuild on save, live reload and compiler errors in the browser.- One binary: the docs site, assets included, is a 2.7 MB release build that sends 0 KB of JavaScript.
Not yet: islands (interactive parts in WASM), npm components as islands, streaming, static generation. Islands are the next milestone.
How it's built: it's a two-day-old public repo and I write it with Claude Code. I review every change, CI runs fmt, Clippy with warnings as errors, tests on Linux, Windows and macOS, and the 1.85 MSRV. Happy to answer questions about that too.
Try it
cargo install --git https://github.com/konstantinos193/coldforge coldforge-cli coldforge new my-app cd my-app coldforge dev I'd especially like opinions on the view! syntax (text goes in string literals, <p>"Hello"</p>, so whitespace survives on stable) and on action URLs being a hash of the function name. There are a few good first issues open too.
1 post - 1 participant