bun
bun copied to clipboard
Bun's Roadmap
Bun's roadmap
2024 Q4
bun install
- [ ] https://github.com/oven-sh/bun/issues/11863 (will unblock https://github.com/dependabot/dependabot-core/issues/6528)
- [ ] Fixes for frequently-reported issues for things like private git URLs and some edgecases with hoisting
- [ ]
bun update --interactive
(https://github.com/oven-sh/bun/issues/4895) - [x] https://github.com/oven-sh/bun/issues/271
- [ ] https://github.com/oven-sh/bun/issues/6608
- [ ] https://github.com/oven-sh/bun/issues/5846
- [ ] Update
bun init
to add"engines": { "bun": ...
by default. Ifbun
present then ignore node shebangs by default (#9346) - [ ] https://github.com/oven-sh/bun/issues/692
Runtime
Node.js compatibility
- [x] Implement
node:http2
server to unblock grpc2 - [ ] Implement more of V8 C++ APIs to unblock canvas, node-pty
- [ ] Rewrite node:http (https://github.com/oven-sh/bun/pull/14384)
- [ ] Add much more comprehensive test coverage for napi
- [ ] Get at least 75% of Node's test suite running on every commit (as of last update: 15% currently). This number will go up in future
- [ ] Investigate removing our
undici
override - [ ] https://github.com/oven-sh/bun/issues/13681
Reliability
- [ ] Delete almost all code that manually reads JSValue. Replace with an IDL bindings generator for JavaScriptCore objects/classes that supports C++ & Zig output, and importantly: function arguments, return values, and exceptions. It should make the lifetime of these values brainless for us to reason about.
Bake (Bundler)
The goal for Bake is to make Bun the most productive tool for building static & full-stack JavaScript and TypeScript applications, leveraging runtime, bundler, and transpiler integration to make things simpler.
High level:
- [ ] Make a fast HMR development full-stack server - https://github.com/oven-sh/bun/issues/14324
- [ ] Production builds
- [ ] Static production builds
- [ ] Implement an integration with a popular framework (such as Next.js)
- [ ] Easy & powerful plugin API
bun test
- [ ] Reporter API or socket API
Organizational
- [ ] Hire a contractor to help us with CI
- [ ] Hire a technical writer to help with docs
- [ ] Hire an engineering-focused role for maintaining the TypeScript types & frontend for docs + help with integrations with third-party packages
- [ ] Hire more systems engineers
Previous quarters
2024 Q3
bun install
Essentially, feature complete.
- [x]
bun outdated
- [x] https://github.com/oven-sh/bun/issues/487
- [x]
bun publish
- [ ] Text-based lockfile format (which will help unblock https://github.com/dependabot/dependabot-core/issues/6528)
- [ ]
bun update --interactive
(https://github.com/oven-sh/bun/issues/4895) - [ ] Fixes for frequently-reported issues for things like private git URLs and some edgecases with hoisting
Runtime
Node.js compatibility
- [x] TextEncoderStream & TextDecoderStream
- [x] V8 C++ API (in-progress)
- [x] Implement
node:cluster
- [ ] Implement
node:http2
server to unblock grpc2 - [x] Rewrite
node:zlib
to address performance issues in some common packages - [ ] https://github.com/oven-sh/bun/issues/13681
- [ ] Fix various bugs in
node:http
, avoid wrapping Bun.serve() and fetch() and use a more direct implementation - [ ] Add much more comprehensive test coverage for napi
- [ ] Get at least 25% of Node's test suite running on every commit (as of last update: 15% currently). This number will go up in future quarters.
Reliability
- [ ] Delete almost all code that manually reads JSValue. Replace with an IDL bindings generator for JavaScriptCore objects/classes that supports C++ & Zig output, and importantly: function arguments, return values, and exceptions. It should make the lifetime of these values brainless for us to reason about.
- [x] Address TLS-related issues that have cropped up
- [x] Continue to allocate significant time to fixing bugs and improve test coverage as they crop up
Bundler
- [x] Fix many common bugs people run into related to source maps or incorrect output
- [ ] A new, higher-level iteration of Bun's bundler designed for server-driven JavaScript #14324
- [x] CSS parser and bundler #14167
bun test
- [ ] Reporter API or socket API
Organizational
- [ ] Hire a contractor to help us with CI
- [ ] Hire a technical writer to help with docs
- [ ] Hire an engineering-focused role for maintaining the TypeScript types & frontend for docs + help with integrations with third-party packages
- [ ] Hire more systems engineers
this seems like a lot of work... wow
Can't wait for full npm-like config support. We are using our own npm registry, and the current build time is 40-60 minutes. If it will be at least 10 minutes this will be a game-changer!
I am waiting for the stable version of the bun. What change bun in the javascript world.
Also waiting for the stable version. So exciting! I bet it's going to take a lot of time though. The scope of this project is much larger than what Node attempts to solve.
can someone confirm that right now I can't use the package mysql2
? It throws me an error because it depends on TLS package and on NET package, and I think they were not implemented yet in Bun, but I am not sure.
still missing websocket server support
Can a tinitiny docker image be placed somewhere in there? 👀
Can't wait for Windows support... I'll be anxiously awaiting it until it's out. 😅
still missing websocket server support
Dito
Are you planning to support http2?
Are you planning to support http2?
HTTP/3 is on https://github.com/oven-sh/bun/issues/159 so I would say HTTP/2 will likely be added before that
Are you planning to support http2?
HTTP/3 is on #159 so I would say HTTP/2 will likely be added before that
I would say that http3 on roadmap is more about quic protocol and there is no straight inheritance between http3 and http2, so maybe support of http2 needs to be marked explicitly.
Motivated to see a stable version ASAP
Promising ! Any roadmap on a progressive translation ?
When is the support for windows coming? Cant wait for it.
I would say that http3 on roadmap is more about quic protocol and there is no straight inheritance between http3 and http2, so maybe support of http2 needs to be marked explicitly.
Another vote for HTTP/2 as it's a prerequisite to gRPC support.
Any plans to create a desktop app like electron?
When is the support for windows coming? Cant wait for it.
https://github.com/oven-sh/bun/issues/43 you can use WSL for now
When is the support for windows coming? Cant wait for it.
#43 you can use WSL for now
I don't use WSL. Node.js and Deno support Windows natively; why can't Bun?
When is the support for windows coming? Cant wait for it.
#43 you can use WSL for now
I don't use WSL. Node.js and Deno support Windows natively; why can't Bun?
Check https://github.com/oven-sh/bun/issues/43
On the topic of CSS parsing, transpilation, minification, etc., what's your stance on dependencies? Do you want to reimplement everything yourself, or would you consider using an embeddable library? If so, I'd love to collaborate with you on embedding Parcel CSS in Bun. It's implemented in Rust, but if we added a C API, I think Bun could call into it pretty easily. It may also work via Bun's napi support, but that would probably be slower. It's about 4x faster than esbuild on benchmarks, minifying over 2 million lines of code per second on a single thread. You can find more info in the announcement blog post from February, though it's gotten even faster since then. Would be cool to work together, and I'm happy to help support how I can.
One thought re: minification, please include a way to exclude class/parameter (on both function and constructor args, and incl. subkeys)/function names from minification as it makes certain dependency injection patterns impossible.
Traditionally, many of the existing DI libraries would use Function.toString() and then use some regex to pull out the fn name & args, but given the reason that is needed and how hacky it is, this may be an opportunity for bun to create a better solution ahead of time, for example by exposing the pre-minified function/class names + argument names programmatically such that they are available at runtime. Note that they much be able to be retrieved before the function is called or class is instantiated.
How about full support for NestJS? Looking forward to it.
[ ] read resolutions
from package.json
Bun should move toward full support for nestjs.
Are there any plans for bun language server? Deno provides one: https://deno.land/[email protected]/advanced/language_server/overview, so I thought bun might do as well
Bun === GOAT
Setup a donations button!!
As an Electron
or Tauri
alternative.
Maybe should consider to build single-file executable files. .exe
or .msi
for windows and .dmg
and .pkg
for macos.
Would love to eventually see support for Qwik. Down the line would be willing to help with the effort too.
Would love to eventually see support for Qwik. Down the line would be willing to help with the effort too.
Yes!!!!!!!!!!!!!!!!! Qwik + Bun === GOAT