Explore Bun – the fast JavaScript runtime.
Everything you need in one tool.
Why Bun?
✅ 3x faster than Node.js
✅ Bundle, transpile, run JS
✅ Built-in SQLite
✅ Web APIs compatible
Installation
curl -fsSL https://bun.sh/install | bash
Run Scripts
bun run index.js
bun run dev
HTTP Server
Bun.serve({
port: 3000,
fetch(req) {
return new Response(“Hello!”);
}
});
SQLite
const db = new Database(‘app.db’);
db.run(‘CREATE TABLE users (id INTEGER PRIMARY KEY)’)
Conclusion
Bun is the future of JavaScript runtimes!