#wasm #frontend #webdev #ssg #ssr


A lightning-fast frontend web dev platform with full support for SSR and SSG

62 releases

0.4.0-beta.22 Mar 12, 2023
0.4.0-beta.20 Feb 26, 2023
0.4.0-beta.11 Nov 6, 2022
0.4.0-beta.5 Jul 18, 2022
0.3.0-beta.18 Nov 28, 2021

#25 in WebAssembly

Download history 189/week @ 2022-12-08 210/week @ 2022-12-15 102/week @ 2022-12-22 252/week @ 2022-12-29 125/week @ 2023-01-05 192/week @ 2023-01-12 145/week @ 2023-01-19 123/week @ 2023-01-26 249/week @ 2023-02-02 190/week @ 2023-02-09 298/week @ 2023-02-16 359/week @ 2023-02-23 117/week @ 2023-03-02 173/week @ 2023-03-09 222/week @ 2023-03-16 89/week @ 2023-03-23

654 downloads per month
Used in 7 crates

MIT license

11K SLoC


Book API Docs Crate Page Top Language Discord Chat

Perseus is a blazingly fast frontend web development framework built in Rust with support for generating page state at build-time, request-time, incrementally, or whatever you'd like! It supports reactivity using Sycamore, and builds on it to provide a fully-fledged framework for developing modern apps.

  • 📕 Supports static generation (serving only static resources)
  • 🗼 Supports server-side rendering (serving dynamic resources)
  • 🔧 Supports revalidation after time and/or with custom logic (updating rendered pages)
  • 🛠️ Supports incremental regeneration (build on demand)
  • 🏭 Open build matrix (use any rendering strategy with anything else)
  • 🖥️ CLI harness that lets you build apps with ease and confidence
  • 🌐 Full i18n support out-of-the-box with Fluent
  • 🏎 Lighthouse scores of 100 on desktop and over 95 on mobile
  • ⚡ Support for hot state reloading (reload your entire app's state after you make any code changes in development, Perseus is the only framework in the world that can do this, to our knowledge)

What's it like?

Here's a taste of Perseus (see the tiny example for more):

use perseus::prelude::*;
use sycamore::prelude::*;

pub fn main<G: Html>() -> PerseusApp<G> {
                .view(|cx| {
                    view! { cx,
                        p { "Hello World!" }

Check out the book to learn how to turn that into your next app!

Quick start

If you want to start working with Perseus right away, run the following commands and you'll have a basic app ready in no time! (Or, more accurately, after Cargo compiles everything...)

cargo install perseus-cli --version 0.4.0-beta.22
perseus new my-app
cd my-app/
perseus serve -w

Then, hop over to http://localhost:8080 and see a placeholder app, in all its glory! If you change some code, that'll automatically update, reloading the browser all by itself. (This rebuilding might take a while though, see here for how to speed things up.)

Note that these instructions use the latest beta version of Perseus, which is cutting-edge, and still hs a few bugs to be ironed out. We recommend using v0.3.x if you want a more stable experience with better documentation, as the v0.4.0x documentation is still under heavy construction.


Support every major rendering strategy and provide developers the ability to efficiently create super-fast apps with Rust and a fantastic developer experience!


There is a sore lack of Rust frameworks for frontend development that support more than just SPAs and client-side rendering, and so Perseus was born. We need something like NextJS for Wasm. But why stop there?


We appreciate all kinds of contributions, check out our contributing guidelines for more information! Also, please be sure to follow our code of conduct.

You can also chat about Perseus on our channel on Sycamore's Discord server.

Perseus wouldn't be posible without the hard work of all these wonderful people!




~399K SLoC