Bun's Built-in SQLite Driver: When bun:sqlite Works and When It Hurts
Bun ships with a native SQLite driver. Here is how to use bun:sqlite without npm packages, where it blocks the event loop, and how to check if it fits your workload.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Bun ships with a native SQLite driver. Here is how to use bun:sqlite without npm packages, where it blocks the event loop, and how to check if it fits your workload.
Learn how Bun’s built‑in sqlite module lets you add a relational database to your app with no extra dependencies, plus a quick TODO API example and trade‑offs.
Bun's native bundler compiles JS/TS/JSX into one minified file with a single config. Here is a worked bunfig.toml setup, verification steps, and the limits that matter.
Stop fighting your build pipeline. Learn how Bun's native TypeScript transpiler removes the need for separate compilation steps and speeds up the development cycle.
Learn how Bun’s native transpiler removes the need for separate TypeScript, Babel, and bundler setup, with a quick React example and notes on its limits.
Bun's HTTP server bypasses Node.js's stream architecture by integrating a C++ parser directly with JavaScriptCore, using zero-copy Request/Response objects. This architecture note covers the design boundaries, operational verification steps, and failure modes when migrating from Node.js.
Bun's built-in bundler can replace a sprawling webpack config with a single Bun.build() call. Here's a worked migration, how to verify the output, and where webpack still wins.
Bun’s built‑in <code>bun:sqlite</code> lets you drop PostgreSQL for a single‑file local service. Learn how the synchronous API works, see a 90‑line URL shortener example, and understand trade‑offs like single‑writer limits and blocking calls.
Bun eliminates the compile step for TypeScript files, letting you run .ts scripts instantly with fast startup via JavaScriptCore.