Crates.io | perseus |
lib.rs | perseus |
version | 0.4.2 |
source | src |
created_at | 2021-09-02 21:55:05.273528 |
updated_at | 2023-05-18 20:54:49.361549 |
description | A lightning-fast frontend web dev platform with full support for SSR and SSG. |
homepage | https://framesurge.sh/perseus |
repository | https://github.com/framesurge/perseus |
max_upload_size | |
id | 446206 |
size | 786,231 |
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.
Here's a taste of Perseus (see the tiny example for more):
use perseus::prelude::*;
use sycamore::prelude::*;
#[perseus::main(perseus_axum::dflt_server)]
pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(
Template::build("index")
.view(|cx| {
view! { cx,
p { "Hello World!" }
}
})
.build()
)
}
Check out the book to learn how to turn that into your next app!
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
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.)
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!
See LICENSE
.