Live data from Hacker News

Rari – Rust-powered React framework

rari.build

11–20 of 97 posts

Re: Rari – Rust-powered React framework

#11

Is this like ReasonML and its React-Reason framework? I don't really understand how it works, what part is Rust powered, is it reimplementing the JS engine in Rust?

Not like ReasonML, you still write normal React/TypeScript.

The Rust part is the server runtime. Instead of Node.js running your React Server Components, rari uses a Rust server with an embedded V8 engine. Same React code, different server underneath.

You write React → Rust server executes it → better performance than Node-based alternatives.

Re: Rari – Rust-powered React framework

#12
ok so I actually like this, but the description and documentation in general are terrible

"rust-powered" meaning it uses rolldown to bundle the javascript, that's fine, but it's a weird thing to highlight, it's confusing for people that aren't super familiar with vite and might think this is a rust framework

from the docs "one of rari's superpowers is seamless NPM package integration" this makes me think the docs are LLM-written... npm package integration, like every other javascript library.

now, the good: there's very few simple frameworks for react (react router and tanstack) and I think the simplicity here on going from an empty project to RSCs is absolutely great, and should be the tagline

I was also happily surprised at how mature the codebase is in comparison to the docs, the vite plugin actually supports a lot of the options I would have expected to see, they're just not documented yet

edit: I realised after digging a bit deeper this actually does have a rust runtime that runs the js, that was not very clear... is this separate from the framework or does the framework only run in the rust runtime? eg can it run on node?

Re: Rari – Rust-powered React framework

#14
post #11

Is this like ReasonML and its React-Reason framework? I don't really understand how it works, what part is Rust powered, is it reimplementing the JS engine in Rust?

Not like ReasonML, you still write normal React/TypeScript. The Rust part is the server runtime. Instead of Node.js running your React Server Components, rari uses a Rust server with an embedded V8 engine. Same React code, different server underneath. You write React → Rust server executes it → better performance than Node-based alternatives.

How is this different than running that same React code in deno whose HTTP server is also written in Rust?

Re: Rari – Rust-powered React framework

#15
post #11

Is this like ReasonML and its React-Reason framework? I don't really understand how it works, what part is Rust powered, is it reimplementing the JS engine in Rust?

Not like ReasonML, you still write normal React/TypeScript. The Rust part is the server runtime. Instead of Node.js running your React Server Components, rari uses a Rust server with an embedded V8 engine. Same React code, different server underneath. You write React → Rust server executes it → better performance than Node-based alternatives.

wait so it actually has a rust runtime? that's not documented in the site so I had assumed the rust part was simply rolldown

it would be interesting to see a performance comparison to node and bun

Re: Rari – Rust-powered React framework

#16
post #12

ok so I actually like this, but the description and documentation in general are terrible "rust-powered" meaning it uses rolldown to bundle the javascript, that's fine, but it's a weird thing to highlight, it's confusing for people that aren't super familiar with vite and might think this is a rust framework from the docs "one of rari's superpowers is seamless NPM package integration" this makes me think the docs are…

You're right about the messaging being confusing, I've been writing everything solo, so I'm definitely open to PRs that help with the copy. To clarify: "Rust-powered" refers to the server runtime itself, not just the bundler. The actual HTTP server, RSC renderer, and routing are all written in Rust (using an embedded V8 engine to execute your React components). It's not just Rolldown doing the bundling.

On the npm integration point: what I should have said is that rari's Rust runtime handles traditional node_modules resolution (require/import from node_modules), which is actually pretty rare for Rust-based JS runtimes. Deno, for example, uses npm specifiers instead of node_modules.

Great feedback on the tagline too. "Zero to RSC in minutes" is way clearer than what we have now. The codebase is definitely ahead of the docs, I've been focused on getting the runtime solid first, but clearly need to catch the documentation up.

Thanks for taking the time to dig in and give constructive feedback. This is exactly the kind of input that helps make it better.

Re: Rari – Rust-powered React framework

#18
post #4

Author here! Should be all good now, turns out the rate limiter was a bit overzealous

Nice project, thank you for working on it. I was trying to figure out the architecture, and I understand that it runs a Deno VM to execute JS on the backend?

I was working on something similar, but for JVM backends [1]. And it seems there are a lot to learn from your project. For example, I'm using GraalVM that executes JS on the server. But I have to compile JS to WebAssembly because otherwise it produces a lot integration issues on the backend. Do you do the same?

[1] https://github.com/emeraldpay/double-view

Re: Rari – Rust-powered React framework

#19
post #15
post #11

Earlier quoted context omitted.

Not like ReasonML, you still write normal React/TypeScript. The Rust part is the server runtime. Instead of Node.js running your React Server Components, rari uses a Rust server with an embedded V8 engine. Same React code, different server underneath. You write React → Rust server executes it → better performance than Node-based alternatives.

wait so it actually has a rust runtime? that's not documented in the site so I had assumed the rust part was simply rolldown it would be interesting to see a performance comparison to node and bun

I can only found this benchmarks

https://github.com/rari-build/benchmarks

Re: Rari – Rust-powered React framework

#20
post #16
post #12

ok so I actually like this, but the description and documentation in general are terrible "rust-powered" meaning it uses rolldown to bundle the javascript, that's fine, but it's a weird thing to highlight, it's confusing for people that aren't super familiar with vite and might think this is a rust framework from the docs "one of rari's superpowers is seamless NPM package integration" this makes me think the docs are…

You're right about the messaging being confusing, I've been writing everything solo, so I'm definitely open to PRs that help with the copy. To clarify: "Rust-powered" refers to the server runtime itself, not just the bundler. The actual HTTP server, RSC renderer, and routing are all written in Rust (using an embedded V8 engine to execute your React components). It's not just Rolldown doing the bundling. On the npm in…

Yeah I wrote my comment initially thinking it was just rolldown being used, so the "rust-powered" was confusing, I think the tagline is actually ok now that I know this, but really you're doing two things here

1/ an alternative framework for RSCs similar to nextjs, tanstack or react router

2/ a rust runtime for javascript, similar to node, deno or bun (except maybe not as general purpose)

Post reply on HN