HACKER Q&A
📣 notpushkin

Should I pick Bun / Deno for my next front end project?


I don't really use Node.js on the backend side, but the whole ecosystem of bundlers, transpilers etc is an enormous help with writing frontend code, and most of these tools run within the JS ecosystem for obvious reasons. Until a couple years ago, this meant that the only option is Node.js, but now there's a couple of new players here.

Has anyone tried using Bun or Deno for running frontend things? Please share your experience.


  👤 austin-cheney Accepted Answer ✓
I use TypeScript, but otherwise I just use vanilla JavaScript on the frontend. I have my own bundler and build tool that runs with Node. On a personal project I can now load the page, an OS GUI, with state fully restored in under 90ms. Why would I want to drown in the slow syrup of unnecessary third party tool/framework insanity?

👤 ghoshbishakh
Choosing between Bun and Deno for your next front-end project will depend on your specific needs and preferences. Both Bun and Deno are modern JavaScript frameworks that offer some unique features and advantages.

Bun is a lightweight and fast front-end framework that uses a virtual DOM and provides a component-based architecture. It is highly performant and efficient, making it a good choice for building fast and responsive web applications. It also has a small codebase and is easy to learn and use.

On the other hand, Deno is a secure runtime environment for JavaScript and TypeScript that allows you to build both front-end and back-end applications using a modular and scalable approach. It offers built-in support for TypeScript, which makes it a good choice if you prefer strong typing and want to write more secure and maintainable code.

Ultimately, the choice between Bun and Deno will depend on your specific project requirements and personal preferences. Consider factors such as performance, ease of use, community support, and compatibility with existing tools and technologies when making your decision. It may also be helpful to try out both frameworks and see which one feels like a better fit for your project.