|
/docs
|
Docs
|
|
|
/guides
|
Guides
|
|
|
/reference
|
Reference
|
|
|
/blog
|
Blog
|
|
|
/discord
|
<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[18px] w-[18px]"><path d="M8 4.5l1 2h6l1-2 4 1.5 1.5 7-1.5 5-3.5 1.5-1.5-2h-6l-1.5 2L4 18l-1.5-5L4 6z"></path><path d="M8.5 16.5c1 .5 2.25.75 3.5.75s2.5-.25 3.5-.75"></path><rect x="7.5" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect><rect x="14" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect></svg>
|
|
|
/get
|
Install
|
|
|
/
|
Home<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-5 w-5 -rotate-0 text-fg-faint"><path d="M6 18L17 7"></path><path d="M9 6h9v9"></path></svg>
|
|
|
/docs
|
Docs<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-5 w-5 -rotate-0 text-fg-faint"><path d="M6 18L17 7"></path><path d="M9 6h9v9"></path></svg>
|
|
|
/guides
|
Guides<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-5 w-5 -rotate-0 text-fg-faint"><path d="M6 18L17 7"></path><path d="M9 6h9v9"></path></svg>
|
|
|
/reference
|
Reference<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-5 w-5 -rotate-0 text-fg-faint"><path d="M6 18L17 7"></path><path d="M9 6h9v9"></path></svg>
|
|
|
/blog
|
Blog<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-5 w-5 -rotate-0 text-fg-faint"><path d="M6 18L17 7"></path><path d="M9 6h9v9"></path></svg>
|
|
|
/get
|
Install Bun v<!-- -->1.4.0
|
|
|
/discord
|
<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[18px] w-[18px]"><path d="M8 4.5l1 2h6l1-2 4 1.5 1.5 7-1.5 5-3.5 1.5-1.5-2h-6l-1.5 2L4 18l-1.5-5L4 6z"></path><path d="M8.5 16.5c1 .5 2.25.75 3.5.75s2.5-.25 3.5-.75"></path><rect x="7.5" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect><rect x="14" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect></svg>
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/installation
|
Advanced installation options →
|
|
|
/docs/quickstart
|
<p class="label">New project</p><h3 class="font-bold tracking-[-0.015em] mt-2 text-[1.25rem] font-semibold text-fg">Start something new</h3><div class="mono mt-4 flex-1 space-y-1 overflow-x-auto rounded-xl border border-line bg-code-bg px-4 py-3 text-[12.5px] text-fg scroll-none"><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun init</div><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun run index.ts</div></div><div class="mt-5"><span class="group/al inline-flex items-center gap-1.5 text-[14px] font-semibold text-fg underline decoration-fg decoration-[1.5px] underline-offset-[5px]">Quickstart<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[0.95em] w-[0.95em] transition-transform duration-200 group-hover:translate-x-0.5"><path d="M4 12h14"></path><path d="M13 6l6 6-6 6"></path></svg></span></div>
|
|
|
/guides/install/from-npm-install-to-bun-install
|
<p class="label">Existing project</p><h3 class="font-bold tracking-[-0.015em] mt-2 text-[1.25rem] font-semibold text-fg">Add Bun to a Node.js app</h3><div class="mono mt-4 flex-1 space-y-1 overflow-x-auto rounded-xl border border-line bg-code-bg px-4 py-3 text-[12.5px] text-fg scroll-none"><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun install<span class="text-fg-faint"> # <!-- -->replaces npm install</span></div><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun run dev<span class="text-fg-faint"> # <!-- -->replaces npm run dev</span></div></div><div class="mt-5"><span class="group/al inline-flex items-center gap-1.5 text-[14px] font-semibold text-fg underline decoration-fg decoration-[1.5px] underline-offset-[5px]">Migration guide<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[0.95em] w-[0.95em] transition-transform duration-200 group-hover:translate-x-0.5"><path d="M4 12h14"></path><path d="M13 6l6 6-6 6"></path></svg></span></div>
|
|
|
/docs/bundler/fullstack
|
<p class="label">Frontend</p><h3 class="font-bold tracking-[-0.015em] mt-2 text-[1.25rem] font-semibold text-fg">Spin up a React app</h3><div class="mono mt-4 flex-1 space-y-1 overflow-x-auto rounded-xl border border-line bg-code-bg px-4 py-3 text-[12.5px] text-fg scroll-none"><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun init --react</div><div class="whitespace-nowrap"><span class="select-none text-accent">$ </span>bun dev</div></div><div class="mt-5"><span class="group/al inline-flex items-center gap-1.5 text-[14px] font-semibold text-fg underline decoration-fg decoration-[1.5px] underline-offset-[5px]">Full-stack guide<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[0.95em] w-[0.95em] transition-transform duration-200 group-hover:translate-x-0.5"><path d="M4 12h14"></path><path d="M13 6l6 6-6 6"></path></svg></span></div>
|
|
|
/docs
|
<h3 class="flex items-center justify-between text-[1.05rem] font-semibold text-fg">Documentation<span aria-hidden="true" class="text-fg-faint transition-transform group-hover/l:translate-x-0.5">→</span></h3><p class="mt-2 text-[14px] leading-relaxed text-fg-muted">Concepts, the runtime, and every built-in API.</p>
|
|
|
/guides
|
<h3 class="flex items-center justify-between text-[1.05rem] font-semibold text-fg">Guides<span aria-hidden="true" class="text-fg-faint transition-transform group-hover/l:translate-x-0.5">→</span></h3><p class="mt-2 text-[14px] leading-relaxed text-fg-muted">Task-focused recipes: HTTP, databases, testing, deployment.</p>
|
|
|
/reference
|
<h3 class="flex items-center justify-between text-[1.05rem] font-semibold text-fg">API reference<span aria-hidden="true" class="text-fg-faint transition-transform group-hover/l:translate-x-0.5">→</span></h3><p class="mt-2 text-[14px] leading-relaxed text-fg-muted">Generated from Bun's TypeScript definitions.</p>
|
|
|
/discord
|
<h3 class="flex items-center justify-between text-[1.05rem] font-semibold text-fg">Discord<span aria-hidden="true" class="text-fg-faint transition-transform group-hover/l:translate-x-0.5">→</span></h3><p class="mt-2 text-[14px] leading-relaxed text-fg-muted">Ask questions and hang out with the community.</p>
|
|
|
/blog/bun-joins-anthropic
|
Anthropic
|
|
|
/discord
|
<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-[17px] w-[17px]"><path d="M8 4.5l1 2h6l1-2 4 1.5 1.5 7-1.5 5-3.5 1.5-1.5-2h-6l-1.5 2L4 18l-1.5-5L4 6z"></path><path d="M8.5 16.5c1 .5 2.25.75 3.5.75s2.5-.25 3.5-.75"></path><rect x="7.5" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect><rect x="14" y="10" width="2.5" height="3.25" fill="currentColor" stroke="none"></rect></svg>
|
|
|
/rss.xml
|
<svg viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="square" stroke-linejoin="miter" aria-hidden="true" class="h-4 w-4"><path d="M4 11h3.5l5.5 5.5V20"></path><path d="M4 4h8l8 8v8"></path><rect x="4" y="18" width="2" height="2" fill="currentColor"></rect></svg>
|
|
|
/docs
|
Documentation
|
|
|
/guides
|
Guides
|
|
|
/reference
|
API Reference
|
|
|
/blog
|
Blog
|
|
|
/get
|
Install
|
|
|
/docs/cli/run
|
Runtime
|
|
|
/package-manager
|
Package manager
|
|
|
/docs/cli/test
|
Test runner
|
|
|
/docs/bundler
|
Bundler
|
|
|
/discord
|
Discord
|
|
|
/blog/bun-joins-anthropic
|
Bun × Anthropic
|
|
|
/press-kit
|
Press kit
|
|
|
/docs/project/licensing
|
License
|
|