close
Jump to content

Bun (software)

From Wikipedia, the free encyclopedia
Bun
Original authorJarred Sumner
DeveloperAnthropic
ReleaseSeptember 14, 2021; 5 years ago (2021-09-14)[1]
Stable release
1.4.5[2] Edit this on Wikidata / 19 November 2026; 13 days ago (19 November 2026)
Written inRust, C++ (JSC bindings), C (WebSocket bindings), TypeScript, JavaScript
Operating systemLinux, macOS, Windows
TypeRuntime environment
LicenseMIT license[3]
Websitebun.com
Repositorygithub.com/oven-sh/bun

Bun is a JavaScript runtime, package manager and test runner designed as a drop-in replacement for Node.js.[4][5] Bun uses Safari's JavaScriptCore as its JavaScript engine,[6] unlike Node.js and Deno, which run on the V8 engine used by Chromium.

Bun was originally developed by Jarred Sumner, with its initial release in September 2021. It was acquired by Anthropic in December 2025.

Overview

[edit]

Bun supports bundling, minifying and server-side rendering (Svelte, Nuxt.js, Vite). Bundling refers to the process of combining multiple files and assets like JavaScript, CSS, and HTML files into a smaller number of files, to reduce the number of server requests and enhance performance.[7] Minifying is a technique of compressing files by removing unnecessary characters (like whitespace, comments, etc.) without affecting their functionality, further optimizing website load times. Bun provides an API to decide whether to preserve some readability by e.g. keeping whitespace.[7]

The runtime supports foreign function interface (FFI), SQLite3, TLS 1.3, and DNS resolution. It also comes bundled in with common tools like file editing, HTTP servers, WebSocket, and hashing.[8]

History

[edit]

The first stable release of Bun, 1.0, was released on September 8, 2023.[9] In April 2024 Bun 1.1 was released. It added support for Windows 10 and Windows 11.[10][11] It also introduced a cross-platform Bun Shell for running some Bash commands without extra dependencies.[10][11]

With version 1.3, Bun added hot module replacement (HMR) to its local development server, which updates pages as code changes automatically.[12]

On December 2, 2025, Bun announced that the project has been acquired by Anthropic. This acquisition allows the company to use Bun to support Claude Code and the Claude Agent SDK.[13]

In May 2026, Sumner began rewriting Bun with heavy use of AI tools, from the programming language Zig to Rust, aiming to, "systematically prevent [memory] bugs from recurring."[14] Sumner initially described the effort as experimental, but merged the branch days later. The rewrite included over a million lines of code and passed Bun's test suite.[15] This rewrite was highly publicized and became a talking point in the conversation about AI's impact on the development community and language rewrites at scale. It also provoked a response from Zig creator Andrew Kelley, who reacted with frustration at what he perceived to be an inappropriate backlash toward the Zig language and community.[16]

Funding

[edit]

On August 24, 2022, Oven, the company behind Bun, announced it had raised $7 million in funding. The round was led by Kleiner Perkins, with participation from Guillermo Rauch, Y Combinator, and others.[17]

Acquisition

[edit]

On December 2, 2025, AI company Anthropic acquired Bun for an undisclosured amount.[18] Jarred Sumner, creator of Bun, announced the acquisition on a blog post, saying that Bun would stay open-source under the MIT License, and mentioned that the funding would allow them to hire more engineers. Additionally, it was said that they would work on tools like Claude Code and Claude Agent SDK, which are owned by Anthropic.[13][non-primary source needed]

References

[edit]
  1. ↑ "Releases, oven-sh/bun, Github". GitHub. Retrieved 14 September 2021.
  2. ↑ "Release 1.4.5". 19 November 2026. Retrieved 20 November 2026.
  3. ↑ Sumner, Jarred (2023-07-02). "License". Bun Docs. Archived from the original on 2023-07-06. Retrieved 2023-07-07.
  4. ↑ "What is Bun? | Bun Docs". Bun. Archived from the original on 2023-12-11. Retrieved 2024-04-01.
  5. ↑ Tyson, Matthew (February 23, 2023). "Explore Bun.js: The all-in-one JavaScript runtime". InfoWorld. Archived from the original on October 4, 2023. Retrieved October 11, 2023.
  6. ↑ Omolana, Timilehin (2022-08-02). "What Is Bun.js and Why Is the JavaScript Community Excited About It?". makeuseof.com. Archived from the original on 2023-05-30. Retrieved 2023-05-30.
  7. 1 2 "The Bun Bundler". Bun. 2023-05-16. Archived from the original on 2024-04-03. Retrieved 2024-04-03.
  8. ↑ "Bun APIs". Bun Docs. Archived from the original on September 27, 2023. Retrieved September 11, 2023.
  9. ↑ "Bun 1.0". bun.sh. Archived from the original on 2024-04-30. Retrieved 2024-04-30.
  10. 1 2 "Bun 1.1". Bun. 2024-04-01. Archived from the original on 2024-06-07. Retrieved 2024-04-03.
  11. 1 2 Anderson, Tim (2024-04-02). "Bun 1.1 released with Windows support, stable WebSocket client and more • DEVCLASS". DEVCLASS. Archived from the original on 2024-04-03. Retrieved 2024-04-03.
  12. ↑ "Bun 1.3". Bun. 2025-10-10. Retrieved 2025-11-07.
  13. 1 2 "Bun is joining Anthropic". Bun. 2025-12-02. Retrieved 2025-12-02.
  14. ↑ https://bun.com/blog/bun-in-rust
  15. ↑ Anderson, Tim (2026-05-14). "Anthropic's Bun Rust rewrite merged at speed of AI". theregister. Retrieved 2026-05-15.
  16. ↑ https://andrewkelley.me/post/my-thoughts-bun-rust-rewrite.html
  17. ↑ Bun [@bunjavascript] (2022-08-24). "Introducing Oven: the company behind Bun. Oven has raised $7m led by @buckymoore at Kleiner Perkins with participation from @rauchg @ycombinator and more https://t.co/HG2TUCQWbL" (Tweet) – via Twitter.
  18. ↑ "Anthropic acquires developer tool startup Bun to scale AI coding". Reuters. 2 December 2025.
[edit]