尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗user@bun:~$ bun test
(pass) fib > fib(20) = 6765
5 pass
0 fail
user@bun:~$ bun build index.ts --outfile out.js
Bundled 1 module in 41ms
user@bun:~$ bun run serve.ts
[preview] https://bun.sprockt.dev/playground/__preview/3000/ (Ctrl-C stops the server)
hello from Bun.serve
That is a terminal in a browser tab. The playground ran every command in the tab, and the React sandbox bundles and hot-reloads an app the same way. Output is trimmed.
It is for people building in-browser development tools (playgrounds, tutorials, online editors, sandboxes) that need to run Bun and Node code without a server, and for anyone testing how far Bun's toolchain runs on WebAssembly. It is pre-1.0 and experimental, and many popular apps do not run yet (see Status), so it does not replace Bun on your machine.
wasm32-wasip1 from a pinned oven-sh/bun commit with 13 patches.Bun.serve, fetch and bun:sqlite work. A service worker routes preview URLs to the guest's server.The guest is one wasm module. The host, a browser tab or a native Wasmtime launcher, supplies files, network and processes.
Open the playground and press Run. The guest loads in the tab, so there is nothing to install:
user@bun:~$ bun run 'index.ts'
Hello, world.
Hello, Bun!
Hello, WebAssembly.
Bun version: 1.4.4
Getting started walks through the terminal, a server and the sandbox, and shows how to run the playground on your machine.
Bun's Rust crates and a runtime written in this repo make up the bun guest, wasm32-wasip1. The runtime implements Bun.*, node:* and the web APIs on a JavaScript engine behind an Engine trait. The host gives the guest files over WASI, sockets through function slots it installs before _start, and processes through runtime_proc imports. In a browser, each process is a Web Worker and all share one in-memory filesystem saved to IndexedDB. Architecture has the full picture, and the decision records say why.
Getting started · Guides · Concepts · Reference · Decision records · All pages
Pre-1.0 and experimental. The package is bun-wasm 0.0.60, marked private, and is not on npm. You install it as a Git dependency. The repository has no tags or releases.
fetch (with CORS) and servers behind preview URLs. Raw outbound TCP, TLS sockets and Unix sockets do not work.browser engine runs user code in the host glue's global scope. No engine is a security boundary.Platforms:
Limits has the numbers and their sources.
MIT. Upstream and third-party notices are in crates/bunwasm-runtime/generated/builtins/LICENSE.md. Read Development before you change code, and AGENTS.md if you are an agent. The project takes no GitHub issues. Report security issues through SECURITY.md.