DEV Community

Cover image for Elysia: A Bun-first Web Framework

Elysia: A Bun-first Web Framework

Urmalveer Singh on February 05, 2024

Bun is a fast and lightweight JavaScript runtime that aims to be an alternative to Node.js. It supports features like hot reloading, file system AP...
Collapse
 
ravavyr profile image
Ravavyr

Ok, i'm all for playing around with these things and trying to improve them, but really, so personal pet projects, heck yea, go for it.
As an industry though, do we need "Another Node" ? and "Another React/Vue/Angular/Svelte/[insert another 20 framework wannabes]"?

Bun claims to be faster than Node and Deno...but the question is:
Do we care? Do we need anything that's faster if they can do sub 100ms responses like any server? Would any human ever notice, or is this just to gain developer bragging rights?

Elysia doesn't add anything new, except another "custom set of javascript syntax rules" to learn because someone felt like it.
I made one too, no one uses it because i frankly didn't go and present it to the dev community as a new standard or "best way" of anything, because i realize it was just "another one for the pile". It's fun and i love using mine, because i know it by heart it's super easy for me, but not for anyone else, and that's what this one feels like too.
At least mine's vanilla js and looks nothing like all the "react-wannabes", and yea i take a little pride in that bit, but that's just my opinion, doesn't matter.

Elysia here feels too much like one of those React-likes, so what will happen is someone in a year or two will run into projects done with Elysia, but because devs are terrible at documenting things, they won't know. They'll see the import calls and some of the methods and go "oh, must React" or "oh, must be Svelte" or whatever, and well, they'll spend a few hours or days going "what the hell? what is this?!" until they finally read the readme i guess or someone goes and points at this obscure thing [unless it magically gets super popular of course] and they will curse to high heaven as they begin inserting hacks to make changes.
Hurray longterm tech support, the one thing no one thinks about when they make these new toys.

Collapse
 
jacques2marais profile image
Jacques Marais

Don't you think that if no "yet-another"s were ever created, the web would never have moved forward in the way that it has and we may have still had only jQuery for the front-end? Just curious :)

Collapse
 
ravavyr profile image
Ravavyr

lol jQuery itself was one hell of an advancement for javascript back when browsers were highly inconsistent.

I fully support "new things" and "innovative things", not "same things that bring nothing new to the table"

Collapse
 
babliobr profile image
Fabio S.

I understand your point, but if all we had was C++ forever everything would have been written in C++. There is such a thing as good enough.

Collapse
 
oggy107 profile image
Urmalveer Singh

i agree... it's human intuition to keep advancing. We always try to find something better.

Collapse
 
andyjessop profile image
Andy Jessop

Looks like Bun are going to spend more time now on stability, which is great news: x.com/jarredsumner/status/17545324...

Collapse
 
oggy107 profile image
Urmalveer Singh

thats great 🔥

Collapse
 
andylarkin677 profile image
Andy Larkin

excellently written! Thank you

Collapse
 
oggy107 profile image
Urmalveer Singh

thanks :>

Collapse
 
610470416 profile image
NotFound404

You may take a look at aex :)

Collapse
 
alxwnth profile image
Alex

Okay now that looks interesting. I definitely gotta try it with my next pet project

Collapse
 
chasm profile image
Charles F. Munat

Where's the link? Shouldn't that be right at the top of the article?

Collapse
 
oggy107 profile image
Urmalveer Singh

elysiajs.com/
its up too :>

Collapse
 
alexroor4 profile image
Alex Roor

this is interesting! I’m a little jealous of your ability to write articles so beautifully