Bun is a new JavaScript runtime built from scratch to serve the modern JavaScript ecosystem. It has three major design goals:
Speed. Bun starts fast and runs fast. It extends JavaScriptCore, the performance-minded JS engine built for Safari. As computing moves to the edge, this is critical.
Elegant APIs. Bun provides a minimal set of highly-optimimized APIs for performing common tasks, like starting an HTTP server and writing files.
Cohesive DX. Bun is a complete toolkit for building JavaScript apps, including a package manager, test runner, and bundler.
Bun is designed as a drop-in replacement for Node.js. It natively implements hundreds of Node.js and Web APIs, including fs, path, Buffer and more.
The goal of Bun is to run most of the world's server-side JavaScript and provide tools to improve performance, reduce complexity, and multiply developer productivity.
In this third and final article in the series on HTML Streaming, we will explore the practical implementation of the Diff DOM Streaming library in web browsing. This approach will allow any website using web components to retain its state during browsing. We will discuss in detail how to achieve this step by step using VanillaJS and Bun. - Source: dev.to / 4 days ago
At Node Conference 2023, Jarred Sumner (creator of Bun) showed a demo of server components in Bun, so there is at least partial support in that ecosystem. The Bun repo provides bun-plugin-server-components as the official plugin for server components. And while I haven’t looked at it in-depth, Marz claims to be a “React Server Components Framework for Bun”. - Source: dev.to / 13 days ago
Continuously evolving, Bun is currently optimized for MacOS and Linux, with ongoing efforts towards Windows compatibility. Tailored for resource-constrained environments like serverless functions, it emerges as an ideal solution. The Bun team is committed to achieving comprehensive Node.js compatibility and seamless integration with prevalent frameworks. For those intrigued by Bun's potential and want to give it a... - Source: dev.to / 26 days ago
Let’s say you are interested in learning more about Bun and probably give it a try. Bun has a website, where you can learn more about Bun and its features (including all the benchmark data captured in this issue), and here is the link. - Source: dev.to / 27 days ago
Install Node.js (or Bun, or Deno, or whatever JS runtime you prefer) if it's not there. - Source: dev.to / about 2 months ago
In the first instalment, we explore runtime environments, focusing on Node, Deno and Bun. We'll gain insights into their histories, performance metrics, community support, and ease of use. - Source: dev.to / 2 months ago
For, for more speed (requires installing bun first):. - Source: dev.to / about 2 months ago
OpenCommit is a CLI to generate commit messages, you can try it right now by running npx opencommit in any repo you have changed code in. I suggest you use bunx opencommit (install Bun) or install OpenCommit globally npm I -g opencommit and then run oco which is a shorthand. - Source: dev.to / 2 months ago
Once you build a simple Vite backend integration, try not to complicate Vite's configuration unless you absolutely must. Vite has become one of the most popular bundlers in the frontend space, but it wasn't the first and it certainly won't be the last. In my 7 years of building for the web, I've used Grunt, Gulp, Webpack, esbuild, and Parcel. Snowpack and Rome came-and-went before I ever had a chance to try them.... - Source: dev.to / 2 months ago
And in the response use a ReadableStream. This would be the example with Bun:. - Source: dev.to / 2 months ago
Bun (YC S19) | https://bun.sh | San Francisco | ONSITE | Full-time Bun is an incredibly fast JavaScript runtime, package manager, test runner, and bundler. Our 2024 goal is to replace Node.js as the default server-side JavaScript runtime. We launched Bun 1.0 back in September: https://www.youtube.com/watch?v=BsnCpESUEqM, and it's been a really exciting 6-ish months seeing developers use Bun at companies like X... - Source: Hacker News / 3 months ago
We will use bun to be able to run our typescript file, because with bun we can run typescript files without compiling them. - Source: dev.to / 4 months ago
Overall, Bun is a powerful and fast set of tools that will likely spread as time progresses. Bun is today available for Linux, MacOS, and WSL on their website. Its main drawbacks are a small community and low support, but that will change as the project grows. - Source: dev.to / 4 months ago
If I understand it right, we have 3 large projects that aim to replace most of JS tools on their own: Bun[0], Oxc[1] and Biome[2]. Bun's package manager is great, Biome formatter recently reached 96% compatibility with Prettier, and now Oxlint is apparently good enough to replace ESLint at Shopify. Exciting times ahead. But it's giving the impression that these projects perhaps could be better off collaborating... - Source: Hacker News / 5 months ago
I could write a script in https://bun.sh which I couldn't in chatgpt bcz bun didn't exist back then. Source: 5 months ago
Zig is quietly changing the world of cross-compiling not just Zig itself, but C. You can use Zig as a pure C compiler and it will get you, for free, cross-compilation and a better build system which is much easier and more reliable than a Makefile or autotools (don't believe me? Uber is doing it ). The language itself also has a very innovative compile-time programming model which is quite interesting in and of... Source: 5 months ago
Where the stuff after 'use Wasm::Bindings' is some sort of import-defining DSL (I invented one to pseudocode in, there's probably a 'real' one already you'd be better using in practice) and the 'use Wasm::Bindings;' statement switches in a different parser for the rest of the file when you load it normally. Then you could have external tools that simply know 'ignore everything up to that use line, those lines are... - Source: Hacker News / 5 months ago
To start, ensure you have Bun installed on your system. You can install Bun on macOS, Linux, and Windows (via WSL). Visit the official Bun website for the latest installation instructions. - Source: dev.to / 5 months ago
With the recent release of Bun and its newfound support for Vite, coupled with Ruby on Rails 7.1 incorporating native support for Bun, developers can now enhance their web development workflow significantly. Here is the effortless process of enabling Bun for Vite Ruby, ultimately streamlining your front-end builds. - Source: dev.to / 6 months ago
That implies you have some local JS runtime, probably Node.js (I am not familiar with things like Deno or Bun, so I can’t guarantee things would work there). - Source: dev.to / 6 months ago
The immensely popular Bref PHP runtime is available as a Layer. Bref is available precompiled for both arm and x86, so it can make sense to use as a layer. The same is true for the Bun javascript runtime. That being said - container images have become far more performant recently and are worth reconsidering, but that's a subject for another post. - Source: dev.to / 6 months ago
Do you know an article comparing Bun.sh to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Bun.sh. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.