Feature Request: Embedding Bun within other native applications (like a Rust program)
### What is the problem this feature would solve? Many native projects would like to be able to embed a JavaScript runtime that can leverage the Nodejs ecosystem and Nodejs standard library. - AWS Lambda - Supabase - Bundlers (Parcel, Rspack, etc) - Mongo - Applications that want to use JavaScript for plugins (like Lapce) - etc ### What is the feature you are proposing to solve the problem? Offer a dynamic C library or static C library that allows Bun to be embedded within another native application ### What alternatives have you considered? - [Nodejs Embedding API ](https://nodejs.org/docs/latest/api/embedding.html) - Very difficult to use, many projects try to use this and drop it - [Deno](https://github.com/denoland/deno/tree/main/cli) - Embedding Deno is reasonably easy to get started with however using the Nodejs standard library is not easy. - Deno requires you to fork the Deno CLI to extract support for the Nodejs API. - UPDATE: Deno has release [deno_lib](https://crates.io/crates/deno_lib) which is a crate that exposes the deno cli as a library - ~due to differences between Deno and Nodejs, certain features (like workspaces support) do not work as expected.~ - Deno does not support workers with injected snapshot libs
Posted by alshdavid on Jun 20, 2024, 10:50 PM
Tags
Related issues
- This is the biggest problem with contracts, there's simply no way to actually say "please always execute this check".
- I don't disagree with you on this, I worked my whole life in corporate and haven't worked as a OSS maintainer before, though I will _and ...
- the new VSCode UI, looks cute, i don't like it.
- I've been working on my own private harness for the past 8 months, and I've been collecting ideas from such repos I've stumbled upon.
- The way AI is able to interact with outside resources is pretty impressive, but the quality of code it produces to me is still questionab...
- Add PR-style review comments in Git Diff UI that feed into the active agent thread
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
ux (Software)
This is the biggest problem with contracts, there's simply no way to actually say "please always execute this check".
I don't disagree with you on this, I worked my whole life in corporate and haven't worked as a OSS maintainer before, though I will _and ...
the new VSCode UI, looks cute, i don't like it.
I've been working on my own private harness for the past 8 months, and I've been collecting ideas from such repos I've stumbled upon.
The way AI is able to interact with outside resources is pretty impressive, but the quality of code it produces to me is still questionab...
Add PR-style review comments in Git Diff UI that feed into the active agent thread
Thanks for indulging me so far, by the way, I really appreciate this discussion, it's very stimulating.
Migrate GDScript to the GDExtension mechanism and overhaul the implementation
Feature Request: Embedding Bun within other native applications (like a Rust program)
### What is the problem this feature would solve? Many native projects would like to be able to embed a JavaScript runtime that can leverage the Nodejs ecosystem and Nodejs standard library. - AWS Lambda - Supabase - Bundlers (Parcel, Rspack, etc) - Mongo - Applications that want to use JavaScript for plugins (like Lapce) - etc ### What is the feature you are proposing to solve the problem? Offer a dynamic C library or static C library that allows Bun to be embedded within another native application ### What alternatives have you considered? - [Nodejs Embedding API ](https://nodejs.org/docs/latest/api/embedding.html) - Very difficult to use, many projects try to use this and drop it - [Deno](https://github.com/denoland/deno/tree/main/cli) - Embedding Deno is reasonably easy to get started with however using the Nodejs standard library is not easy. - Deno requires you to fork the Deno CLI to extract support for the Nodejs API. - UPDATE: Deno has release [deno_lib](https://crates.io/crates/deno_lib) which is a crate that exposes the deno cli as a library - ~due to differences between Deno and Nodejs, certain features (like workspaces support) do not work as expected.~ - Deno does not support workers with injected snapshot libs
Comments (0)
No comments yet. Start the discussion.