Rust needs a web framework for lazy developers

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. dominator-workers-fluent-auth

    yet another starter boilerplate

    This article makes several different points that would ideally each be tackled on their own.

    You don't need a router when you have pattern matching (just split the url and match on static and dynamic vars however you need)

    Auth is typically DIY in any language, or SaaS like Firebase/Auth0. It's not a language or framework problem, necessarily

    CSS/JS tooling makes no sense for many frontend Rust frameworks like Dominator, which is in Rust (not JS) and has its own approach to styling that works for it (e.g. attaching styles to signals, so they change on the fly)

    I get what the author is saying - in fact I've been around the block a couple times solving all the different points in the article and it is painful. For example, see https://github.com/dakom/dominator-workers-fluent-auth which does a lot of the stuff here on the Cloudflare workers framework (also adds another wishlist item - localization with Fluent)

    A "batteries included" full framework that does _everything_ is nice to have, but many real-world projects will want to replace those opinionated decisions and go the DIY route anyway. Rust is more than mature enough, even on the frontend web, to tackle all of that - if you know where to look (wasm-bindgen, etc.)

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. Rocket

    A web framework for Rust.

    I was surprised not to see Rocket (https://rocket.rs/) mentioned among the frameworks the author listed; I haven’t used it myself because I _like_ the more unopinionated axum/actix-web, but as I understand it its goals are much more in the vein of what the author wants in a batteries-included framework.

  4. shuttle

    Build & ship backends without writing any infrastructure files.

    There is https://shuttle.rs. Not only a framework but a tool that can generate all the web boilerplate around it, sounds lazy enough for me!

  5. poem

    A full-featured and easy-to-use web framework with the Rust programming language.

    There is one: Poem[1]

    The author mentions flask but looking at the "What we need section", I don't think flask covers those. I hate Djago with a passion but if those are the requirements, I think Django is the one that closely resembles what the author is describing. So Poem is not a good candidate either in that regard. Poem is all in all, something that closely resembles FastAPI, which is actually a complement. I've tried half a dozen rust web frameworks and they all come with a ton of boilerplate fiddling with the initial setup. Which is a problem if you want to get things done fast. In that regard, poem nails it. Yes, actix has a considerably better performance but unless you are aiming for sub-30 millisecond responses, then actix is not what you should be looking at to begin with. Also if you crave a Pydantic, there is a crate that sort of does that for you: https://crates.io/crates/poem-openapi

    [1] https://github.com/poem-web/poem

  6. hn-search-RAG

    Hacker News Search and RAG built using Rust actix-web, minijinja, SolidJS, Vite, and Redis queue's

  7. trieve

    All-in-one platform for search, recommendations, RAG, and analytics offered via API

  8. aho-corasick

    A fast implementation of Aho-Corasick in Rust.

    https://github.com/BurntSushi/aho-corasick

    I've had a lot of fun playing with it, it was very nice & simple to use. It's also foundational in the Rust ecosystem, so it's well maintained.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. tauri

    Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

  11. TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    > When did threading get added to JavaScript?

    Shared mutable state is a problem even in single threaded code (for example, modifying a collection you're iterating over)

    > And does Rust have type unions and intersections, interfaces, and mapped and conditional types?

    You can usually accomplish the same thing with enums/proc macros/traits of course—with the additional benefit that the type system is designed to be sound. Soundness is a non-goal of TypeScript[1], so once you start layering on those kinds of overly-clever types, you're generally just lulling yourself into a false sense of security.

    [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...

  12. spring-rs

    🍃spring-rs is a application framework written in rust inspired by java's spring-boot

    in case someone really need it like in the article https://github.com/spring-rs/spring-rs

  13. deno

    A modern runtime for JavaScript and TypeScript.

  14. Flutter

    Flutter makes it easy and fast to build beautiful apps for mobile and beyond

  15. graal-languages-demos

    Graal Languages - Demos and Guides

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Build & Deploy AI-Powered Web Services from a Single Prompt

    1 project | dev.to | 16 Jul 2024
  • A guide to getting started with Axum - 0.7 changes included

    1 project | /r/rust | 6 Dec 2023
  • Show HN: Shuttle – Build and ship backends without writing infrastructure files

    1 project | /r/patient_hackernews | 7 Oct 2023
  • Show HN: Shuttle – Build Back Ends Fast

    2 projects | news.ycombinator.com | 4 Oct 2023
  • Get your project featured at EuroRust

    1 project | /r/rust | 27 Sep 2023