Meta tags:
description= Bundle, install, and run JavaScript & TypeScript — all in Bun. Bun is a new JavaScript runtime with a native bundler, transpiler, task runner, and npm client built-in.;
Headings (most frequently used words):
bun, is, builtin, uses, build, test, in, one, toolkit, js, server, you, need, ship, javascript, runtime, full, package, manager, runner, the, apis, utilities, system, fast, javascriptall, bundling, 10, 000, react, components, express, hello, world, websocket, chat, load, huge, table, four, tools, who, what, different, about, everything, to, works, with, next, speed, stack, an, npm, compatible, that, makes, rest, look, like, walkers, baked, learn, more, developers, love, bundler, claude, code, railway, functions, powered, by, midjourney, core, features, tooling, http, websockets, databases, file, testing, deploy, typescript, dx, security, integration, lee, robinson, develop, and, frontend, apps, documentation, api, reference, start, dev, hot, module, replacement, for, production,
Text of the page (most frequently used words):
bun (205), jan (60), and (46), with (38), server (28), the (27), for (27), test (26), node (24), built (24), const (23), api (22), from (22), fast (21), import (20), file (17), run (16), await (16), serve (16), install (15), index (15), apis (15), build (14), tsx (13), cookies (12), yaml (12), #javascript (12), per (12), second (12), package (11), use (11), sql (11), http (11), compatible (11), runtime (10), typescript (10), npm (10), code (10), jest (10), deno (10), runner (9), bundler (9), all (9), get (9), users (9), hot (9), password (9), native (9), toolkit (8), redis (8), message (8), websocket (8), frontend (8), like (8), jsx (8), css (8), support (8), console (7), response (7), fetch (7), set (7), true (7), json (7), config (7), html (7), react (7), hash (7), faster (7), slower (7), production (7), one (7), manager (6), more (6), bunjavascript (6), log (6), string (6), shell (6), port (6), files (6), into (6), expect (6), async (6), start (6), view (6), apps (6), cross (6), glob (6), builtin (6), replaces (6), reference (5), module (5), love (5), dependencies (5), learn (5), path (5), hello (5), request (5), routes (5), app (5), user (5), performance (5), development (5), write (5), req (5), dev (5), your (5), benchmark (5), csrf (5), single (5), executables (5), testing (5), requests (5), queries (5), linux (5), blog (4), scripts (4), backend (4), staticdots (4), yuki (4), yeah (4), 46officials (4), have (4), used (4), orlowdev (4), reaxios (4), saltyaom (4), sqlite (4), version (4), call (4), platform (4), data (4), https (4), example (4), com (4), works (4), windows (4), select (4), query (4), localhost (4), parse (4), res (4), concurrent (4), browser (4), pkg (4), postgresql (4), 30x (4), about (4), replacement (4), imports (4), zero (4), post (4), developer (4), tools (4), including (4), semver (4), secrets (4), compile (4), client (4), storage (4), workspaces (4), compilation (4), standard (4), messages (4), sent (4), x64 (4), store (3), discord (3), guides (3), docs (3), just (3), why (3), everything (3), etc (3), complete (3), features (3), sqlite3_libversion (3), function (3), suffix (3), ffi (3), world (3), return (3), parsing (3), 3000 (3), database (3), name (3), insert (3), tobe (3), reloading (3), terminal (3), authtoken (3), library (3), new (3), you (3), vitest (3), that (3), installs (3), yarn (3), optimized (3), out (3), box (3), reload (3), ship (3), stack (3), slug (3), designed (3), drop (3), web (3), hashing (3), utilities (3), integration (3), keychain (3), without (3), pub (3), sub (3), mysql (3), paths (3), color (3), functions (3), packages (3), tooling (3), using (3), first (3), class (3), addons (3), fastest (3), compatibility (3), image (3), uses (3), railway (3), watch (3), mode (3), 571 (3), 100 (3), parallel (3), cron (3), baked (2), holy (2), shit (2), solution (2), spending (2), day (2), mucking (2), around (2), commonjs (2), bullshit (2), running (2), msfeldstein (2), dec (2), michael (2), feldstein (2), performant (2), needs (2), elysia (2), win (2), manisohi (2), baggi (2), yet (2), enough (2), appreciation (2), deserves (2), dr__madmax (2), madmax (2), goated (2), catalinmpit (2), catalin (2), 2025 (2), will (2), year (2), aidenybai (2), aiden (2), bai (2), fahadali503 (2), fahadali (2), patch (2), buraks____ (2), buraks (2), jus (2), digitalluiggi (2), luis (2), paolini (2), yes (2), even (2), bunx (2), expo (2), ios (2), hirbod_dev (2), hirbod (2), good (2), ayuu2809 (2), ayu (2), 0xspiritbear (2), spiritbear (2), 0x_emanon (2), emanon (2), oggiesutrisna (2), oggie (2), sutrisna (2), gibsonsmurray (2), gibson (2), divinprnc (2), divin (2), prince (2), always (2), samueldans0 (2), samuel (2), stefangarofalo (2), stefan (2), should (2), instead (2), tiagorangel23 (2), tiago (2), std_venom (2), std (2), venom (2), jdggggyujhbc (2), hola (2), but (2), does (2), not (2), jamesrlandrum (2), james (2), landrum (2), 0xkyge (2), kyge (2), martin_nav_ (2), martin (2), navrátil (2), lik228 (2), lic (2), sainder_pradipt (2), sainder (2), started (2), its (2), returns (2), ffitype (2), dlopen (2), gzip (2), echo (2), secure (2), session_id (2), read (2), host (2), alice (2), limit (2), where (2), 200 (2), status (2), tests (2), hmr (2), reactapp (2), init (2), verify (2), word (2), bunfile (2), extends (2), listening (2), received (2), token (2), cookie (2), headers (2), script (2), need (2), try (2), replace (2), makes (2), cache (2), 17x (2), pnpm (2), tree (2), shaking (2), work (2), state (2), make (2), simple (2), develop (2), configuration (2), full (2), speed (2), div (2), wordcount (2), imgurl (2), title (2), content (2), image_key (2), params (2), most (2), side (2), provides (2), starts (2), runs (2), safari (2), times (2), modern (2), spawn (2), scripting (2), system (2), generation (2), bcrypt (2), argon2 (2), deploy (2), snapshot (2), matching (2), cloud (2), overhead (2), dynamic (2), websockets (2), ready (2), width (2), formatter (2), linter (2), execution (2), bash (2), isolated (2), audit (2), publish (2), map (2), bytecode (2), process (2), handling (2), available (2), different (2), loader (2), plugin (2), browsers (2), powered (2), midjourney (2), vite (2), bundling (2), esbuild (2), coverage (2), dom (2), lifecycle (2), than (2), global (2), them (2), adopt (2), incrementally (2), projects (2), 169 (2), 522 (2), v23 (2), 435 (2), 099 (2), 320 (2), 525 (2), 536 (2), 227 (2), 039 (2), 335 (2), 026 (2), express (2), less (2), anthropic (2), hiring, san, francisco, license, contributing, roadmap, project, github, merch, resources, developers, explore, how, documentation, cstring, arguments, args, symbols, libsqlite3, either, dylib, dll, depending, arraybuffer, pipe, body, command, also, greeting, key, success, httponly, abc123, sessionid, 5432, directly, returning, email, object, notation, active, automatic, injection, prevention, addition, concurrently, better, enable, stream, logs, ismatch, argon2id, 65536, tfq, 9avr1bfpxqdh, super, null, stringify, blob, meta, dir, userid, getuserfromtoken, handler, called, when, upgrade, parsecookies, welcome, 20x, babel, 18x, tsjest, swc, rest, look, walkers, installing, remix, 33x, 29x, bundles, minification, splitting, preserves, application, during, changes, appear, instantly, manual, refresh, needed, instant, then, builds, high, seen, this, never, count, src, img, 3600, expiresin, presign, posts, blogpage, default, export, page, experience, cursor, anysphere, lee, robinson, next, goal, provide, improve, reduce, complexity, multiply, productivity, natively, implements, thousands, buffer, building, cohesive, minimal, highly, performing, common, tasks, starting, writing, elegant, javascriptcore, minded, engine, mean, scratch, ecosystem, has, three, major, design, goals, escaping, sanitization, escapehtml, comparison, libraries, child, processes, security, asset, toml, required, restarts, assertions, snapshots, efficiently, pattern, reading, streaming, databases, routing, generate, tokens, convert, between, formats, conversion, compare, sort, strings, promises, patterns, stringwidth, calculate, displayed, non, cryptographic, life, easier, fully, featured, filter, commands, across, monorepo, disconnecting, connections, preserving, popular, framework, requires, dax, limited, catalogs, manage, management, libsecret, credential, securely, encrypted, citizen, embedded, multi, step, signing, standalone, executable, anywhere, route, wildcards, router, lightning, backpressure, upload, download, driver, pipelining, connect, any, unified, drivers, only, importing, requiring, custom, types, plugins, namespace, enum, napi, partial, webcore, webkit, eventtarget, url, aiming, essential, capabilities, core, extensive, what, helps, notifications, scale, serverless, easy, are, great, clis, claude, who, bundle, both, servers, via, happy, hooks, block, malicious, dependency, auditing, postinstall, monorepos, eliminate, phantom, migration, environment, variables, env, comprehensive, together, can, each, tool, stands, own, four, v24, rows, load, huge, table, clients, chat, 137, rspack, 608, farm, 494, beta, rolldown, 269, time, milliseconds, hetzner, 000, components, postgres, irm, ps1, iex, powershell, curl, fssl, macos, individual, aims, adoptable, here, multiple, sequential, mock, spyon, symbol, dispose, esm, markd, repl, target, self, contained, tc39, decorators, arm64, barrel, optimizat, smaller, level, jobs, expression, sliceansi, ansi, grapheme, aware, slicing, richer, render, markdown, webview, headless, automation, scheduler, traces, isolate, shard, changed, streams, tarballs, disk, memory, source, maps, memo, processing, warm, linker, experimental, cli, joining, betting,
Text of the page (random words):
second 2 536 227 deno 1 320 525 messages sent per second 1 320 525 node 435 099 messages sent per second 435 099 bun serve v1 2 deno serve v1 2 6 ws node js v23 6 0 view benchmark load a huge table queries per second 100 rows x 100 parallel queries bun 28 571 queries per second 28 571 node 14 522 queries per second 14 522 deno 11 169 queries per second 11 169 bun v1 2 22 node js v24 8 0 deno v2 5 1 view benchmark four tools one toolkit use them together as an all in one toolkit or adopt them incrementally bun test works in node js projects bun install can be used as the fastest npm client each tool stands on its own javascript runtime starts 3x faster than node js a fast javascript runtime designed as a drop in replacement for node js bun index ts node js api compatibility typescript jsx react zero config comprehensive builtin standard library postgresql redis mysql sqlite hot watch mode built in environment variables with env replaces node js package manager 30x faster install packages up to 30x faster than npm with a global cache and workspaces bun install simple migration from npm pnpm yarn eliminate phantom dependencies workspaces monorepos lifecycle scripts postinstall handling dependency auditing with bun audit block malicious packages replaces npm test runner replaces jest vitest jest compatible test runner with built in code coverage and watch mode bun test jest compatible expect api snapshot testing watch mode lifecycle hooks dom apis via happy dom concurrent test execution built in code coverage replaces vitest bundler replaces vite and esbuild bundle typescript jsx react css for both browsers and servers bun build app tsx typescript jsx built in no config css imports bundling react support out of the box build for the browser bun and node js single file executables html css ts tsx jsx more replaces vite who uses bun claude code uses bun bun s single file executables fast start times are great for clis learn about single file executables railway functions powered by bun bun s all in one toolkit makes railway s serverless functions fast and easy to use deploy on railway midjourney uses bun bun s built in websocket server helps midjourney publish image generation notifications at scale learn about bun s websocket server what s different about bun bun provides extensive builtin apis and tooling builtin core features essential runtime capabilities bun node deno node js compatibility aiming to be a drop in replacement for node js apps web standard apis support for web standard apis like fetch url eventtarget headers etc powered by webcore from webkit safari native addons call c compatible native code from javascript bun ffi napi partial v8 c api typescript first class support including paths enum namespace jsx first class support without configuration module loader plugins plugin api for importing requiring custom file types bun plugin works in browsers bun 3 different loader apis server side only builtin apis built in performance and native apis designed for production bun node deno postgresql mysql and sqlite drivers connect to any sql database with one fast unified api fastest available with query pipelining s3 cloud storage driver upload and download from s3 compatible storage built in fastest available redis client redis client built into bun with pub sub support websocket server including pub sub websocket server built into bun serve with backpressure handling bun serve http server lightning fast http server built into bun bun serve http router route http requests with dynamic paths and wildcards built into bun serve bun serve routes api path req single file executables compile your app to a standalone executable that runs anywhere bun build compile with cross compilation code signing no native addons embedded files cross compilation or bytecode multi step process no native addons no cross compilation yaml yaml is a first class citizen in bun just like json bun yaml import from yaml files cookies api parse and set cookies with zero overhead using a map like api request cookies map like api encrypted secrets storage store secrets securely using your os s native keychain bun secrets keychain libsecret windows credential manager builtin tooling built in developer tooling bun node deno npm package management install manage and publish npm compatible dependencies with catalogs isolated installs bun audit bun why limited features bundler build production ready code for frontend backend bun build cross platform shell api native bash like shell for cross platform shell scripting bun requires dax jest compatible test runner testing library compatible with the most popular testing framework bun test with vs code integration concurrent execution hot reloading server reload your backend without disconnecting connections preserving state bun hot monorepo support install workspaces packages and run commands across workspaces bun run filter package glob frontend development server run modern frontend apps with a fully featured dev server bun index html formatter linter built in formatter and linter builtin utilities apis that make your life easier as a developer bun node deno password hashing apis bcrypt argon2 and non cryptographic hash functions bun password bun hash string width api calculate the width of a string as displayed in the terminal bun stringwidth glob api glob patterns for file matching bun glob fs promises glob semver api compare and sort semver strings bun semver css color conversion api convert between css color formats bun color csrf api generate and verify csrf tokens bun csrf everything you need to build ship production ready apis and tools built into bun http websockets bun serve http websocket server routes built in routing with dynamic paths request cookies zero overhead cookie parsing databases bun sql postgresql mysql sqlite bun s3 s3 compatible cloud storage bun redis redis client with pub sub file system bun file fast file reading streaming bun glob fast file pattern matching bun write write files efficiently testing bun test jest compatible test runner snapshots snapshot testing built in expect jest compatible assertions build deploy bun build fast bundler with tree shaking compile single file executables hot hot reload without restarts typescript dx typescript jsx no config required import yaml yaml toml imports import css css asset imports security bun password bcrypt argon2 hashing bun csrf csrf token generation bun secrets os keychain integration system integration bun cross platform shell scripting bun spawn spawn child processes bun ffi call native c c libraries utilities bun hash fast hashing utilities bun semver version comparison bun escapehtml html escaping sanitization bun run bun is a javascript runtime bun is a new javascript runtime built from scratch to serve the modern javascript ecosystem it has three major design goals speed bun starts fast and runs fast it extends javascriptcore the performance minded js engine built for safari fast start times mean fast apps and fast apis elegant apis bun provides a minimal set of highly optimized apis for performing common tasks like starting an http server and writing files cohesive dx bun is a complete toolkit for building javascript apps including a package manager test runner and bundler bun is designed as a drop in replacement for node js it natively implements thousands of node js and web apis including fs path buffer and more the goal of bun is to run most of the world s server side javascript and provide tools to improve performance reduce complexity and multiply developer productivity bun works with next js lee robinson vp of developer experience at cursor anysphere app blog slug page tsx import s3 sql from bun export default async function blogpage params const post await sql select title image_key content from posts where slug params slug const imgurl s3 file post image_key presign expiresin 3600 const wordcount await echo post content wc w return div h1 post title h1 img src imgurl p word count wordcount p div full speed full stack fast frontend apps with bun s built in high performance development server and production bundler you ve never seen hot reloading this fast develop and ship frontend apps bun s built in bundler and dev server make frontend development fast and simple develop with instant hot reload then ship optimized production builds all with zero configuration bun init react start a dev server run bun index html to start a dev server typescript jsx react and css imports work out of the box hot module replacement built in hmr preserves application state during development changes appear instantly no manual refresh needed build for production build optimized bundles with bun build index html production tree shaking minification and code splitting work out of the box learn more about frontend with bun bun install bun is an npm compatible package manager bun pnpm 17x slower npm 29x slower yarn 33x slower installing dependencies from cache for a remix app view benchmark replace yarn with bun install to get 30x faster package installs try it bun test bun is a test runner that makes the rest look like test walkers bun vitest 5x slower jest swc 8x slower jest tsjest 18x slower jest babel 20x slower replace jest with bun test to run your tests 10 30x faster try it the apis you need baked in start an http server start a websocket server read and write files hash a password frontend dev server write a test query postgresql use redis import yaml set cookies run a shell script call a c function index tsx import sql serve from bun const server serve port 3000 routes new response welcome to bun api users async req const users await sql select from users limit 10 return response json users console log listening on localhost server port index tsx const server bun serve authtoken string fetch req server use a library to parse cookies const cookies parsecookies req headers get cookie server upgrade req data authtoken cookies x token websocket handler called when a message is received async message ws message console log received message const user getuserfromtoken ws data authtoken await db message insert message string message userid user id console log listening on localhost server port index tsx const file bun file import meta dir package json bunfile const pkg await file json bunfile extends blob pkg name my package pkg version 1 0 0 await bun write file json stringify pkg null 2 index tsx const password super secure pa word const hash await bun password hash password argon2id v 19 m 65536 t 2 p 1 tfq 9avr1bfpxqdh const ismatch await bun password verify password hash true server ts run bun init react to get started import serve from bun import reactapp from index html serve port 3000 routes reactapp api hello response json message hello development console true stream browser logs to terminal hmr true enable hot module reloading index test tsx import test expect from bun test run tests concurrently for better performance test concurrent fetch user 1 async const res await fetch https api example com users 1 expect res status tobe 200 test concurrent fetch user 2 async const res await fetch https api example com users 2 expect res status tobe 200 test addition expect 2 2 tobe 4 index tsx import sql from bun query with automatic sql injection prevention const users await sql select from users where active true limit 10 insert with object notation const user await sql insert into users sql name alice email alice example com returning config yaml import yaml files directly import config from config yaml console log config database host localhost or parse yaml at runtime const data bun yaml parse name my app version 1 0 0 database host localhost port 5432 index tsx import serve from bun serve port 3000 routes request read cookies with built in parsing const sessionid request cookies get session_id set cookies request cookies set session_id abc123 path httponly true secure true return response json success true index tsx import redis from bun set a key await redis set greeting hello from bun console log db query select 1 as x get x 1 index tsx import from bun run a shell command also works on windows await echo hello world const response await fetch https example com pipe the response body to gzip const data await gzip response arraybuffer index tsx import dlopen ffitype suffix from bun ffi suffix is either dylib so or dll depending on the platform const path libsqlite3 suffix const symbols sqlite3_libversion the function to call dlopen path sqlite3_libversion args no arguments returns ffitype cstring returns a string console log sqlite 3 version sqlite3_libversion learn more documentation get started with bun and learn how to use all of its features api reference explore the complete api reference for bun s runtime and toolkit developers love bun sainder jan 17 sainder_pradipt bun lic jan 18 lik228 bun martin navrátil jan 17 martin_nav_ bun saltyaom jan 17 saltyaom bun reaxios jan 17 reaxios bun install bun kyge jan 17 0xkyge bun james landrum jan 17 jamesrlandrum node orlowdev jan 17 orlowdev yeah bun but my code does not have dependencies hola jan 17 jdggggyujhbc bun std venom jan 17 std_venom bun tiago jan 19 tiagorangel23 should have used bun instead of npm sainder jan 17 sainder_pradipt bun lic jan 18 lik228 bun martin navrátil jan 17 martin_nav_ bun saltyaom jan 17 saltyaom bun reaxios jan 17 reaxios bun install bun kyge jan 17 0xkyge bun james landrum jan 17 jamesrlandrum node orlowdev jan 17 orlowdev yeah bun but my code does not have dependencies hola jan 17 jdggggyujhbc bun std venom jan 17 std_venom bun tiago jan 19 tiagorangel23 should have used bun instead of npm 46officials jan 19 46officials bun yuki jan 19 staticdots bun stefan jan 17 stefangarofalo bun samuel jan 17 samueldans0 bun always divin prince jan 17 divinprnc yeah bun gibson jan 16 gibsonsmurray bun oggie sutrisna jan 16 oggiesutrisna bun emanon jan 16 0x_emanon bun yuki jan 16 staticdots bun spiritbear jan 16 0xspiritbear bun ayu jan 12 ayuu2809 bun good 46officials jan 19 46officials bun yuki jan 19 staticdots bun stefan jan 17 stefangarofalo bun samuel jan 17 samueldans0 bun always divin prince jan 17 divinprnc yeah bun gibson jan 16 gibsonsmurray bun oggie sutrisna jan 16 oggiesutrisna bun emanon jan 16 0x_emanon bun yuki jan 16 staticdots bun spiritbear jan 16 0xspiritbear bun ayu jan 12 ayuu2809 bun good hirbod jan 19 hirbod_dev for everything yes i even run with bunx expo run ios etc luis paolini jan 18 digitalluiggi jus use bunjavascript buraks jan 18 buraks____ i use bun patch and i love it fahadali jan 8 fahadali503 bun aiden bai jan 1 aidenybai 2025 will be the year of js ts and bunjavascript is why catalin jan 1 catalinmpit bun is goated madmax jan 3 dr__madmax bunjavascript is yet to get enough appreciation it deserves baggi e jan 3 manisohi performant ts js backend needs more love elysia for the win michael feldstein dec 18 msfeldstein h...
|