Jarred Sumner
@jarredsumner.com
building Bun. formerly: stripe (twice) thielfellowship. high school dropout 🌈
`Bun.redis` is shorthand for `new Bun.RedisClient(process.env.REDIS_URL)`
April 6, 2025 at 12:04 PM
`Bun.redis` is shorthand for `new Bun.RedisClient(process.env.REDIS_URL)`
In the next version of Bun
`Bun.redis` is Bun's builtin Redis client
`Bun.redis` is Bun's builtin Redis client
April 6, 2025 at 12:04 PM
In the next version of Bun
`Bun.redis` is Bun's builtin Redis client
`Bun.redis` is Bun's builtin Redis client
Bun's frontend dev server designs for incremental builds. Changing one file doesn't rebuild everything.
February 23, 2025 at 12:57 AM
Bun's frontend dev server designs for incremental builds. Changing one file doesn't rebuild everything.
Routes accept a `BunRequest` which extends `Request` to add `params`. We probably will add more properties to `BunRequest` in the future.
February 16, 2025 at 4:40 PM
Routes accept a `BunRequest` which extends `Request` to add `params`. We probably will add more properties to `BunRequest` in the future.
Bun.serve()'s TypeScript types automatically infer route params from the route path.
February 16, 2025 at 4:40 PM
Bun.serve()'s TypeScript types automatically infer route params from the route path.
In the next version of Bun
Bun.serve() gets a simple builtin router.
Bun.serve() gets a simple builtin router.
February 16, 2025 at 4:40 PM
In the next version of Bun
Bun.serve() gets a simple builtin router.
Bun.serve() gets a simple builtin router.
This HMR isn't just on the client.
API endpoints hot reload so you can make changes without stopping & restarting the server
API endpoints hot reload so you can make changes without stopping & restarting the server
February 13, 2025 at 2:33 PM
This HMR isn't just on the client.
API endpoints hot reload so you can make changes without stopping & restarting the server
API endpoints hot reload so you can make changes without stopping & restarting the server
In the next version of Bun
`bun init` gets a new "React" option
`bun init` gets a new "React" option
February 13, 2025 at 2:33 PM
In the next version of Bun
`bun init` gets a new "React" option
`bun init` gets a new "React" option
In the next version of Bun
`bun create ./MyComponent.tsx` turns a React component into a running dev server with zero config
`bun create ./MyComponent.tsx` turns a React component into a running dev server with zero config
February 7, 2025 at 3:20 PM
In the next version of Bun
`bun create ./MyComponent.tsx` turns a React component into a running dev server with zero config
`bun create ./MyComponent.tsx` turns a React component into a running dev server with zero config
You can also pass a glob that ends with *.html to load all the html files recursively in a directory tree.
Internally, it uses Bun.Glob to resolve it so it's not dependent on your shell.
Internally, it uses Bun.Glob to resolve it so it's not dependent on your shell.
February 2, 2025 at 3:44 PM
You can also pass a glob that ends with *.html to load all the html files recursively in a directory tree.
Internally, it uses Bun.Glob to resolve it so it's not dependent on your shell.
Internally, it uses Bun.Glob to resolve it so it's not dependent on your shell.
If you pass multiple HTML files, it will route them the way you expect.
February 2, 2025 at 3:44 PM
If you pass multiple HTML files, it will route them the way you expect.
In the next version of Bun
`bun ./index.html` starts a frontend dev server
`bun ./index.html` starts a frontend dev server
February 2, 2025 at 3:44 PM
In the next version of Bun
`bun ./index.html` starts a frontend dev server
`bun ./index.html` starts a frontend dev server
you probably didn't know Bun has all this builtin
January 20, 2025 at 6:56 AM
you probably didn't know Bun has all this builtin
Bun v1.2 ships on January 21
January 11, 2025 at 1:07 AM
Bun v1.2 ships on January 21
Downloading 7,000 24 KiB files in parallel from S3 in us-east-1
left: Bun v1.1.44 with Bun's S3 client
right: Node v23.6.0 with AWS SDK v3
left: Bun v1.1.44 with Bun's S3 client
right: Node v23.6.0 with AWS SDK v3
January 10, 2025 at 10:41 AM
Downloading 7,000 24 KiB files in parallel from S3 in us-east-1
left: Bun v1.1.44 with Bun's S3 client
right: Node v23.6.0 with AWS SDK v3
left: Bun v1.1.44 with Bun's S3 client
right: Node v23.6.0 with AWS SDK v3
In the next version of Bun
`bun build` supports bundling assets, JS, and CSS from .html files
`bun build` supports bundling assets, JS, and CSS from .html files
December 22, 2024 at 9:07 PM
In the next version of Bun
`bun build` supports bundling assets, JS, and CSS from .html files
`bun build` supports bundling assets, JS, and CSS from .html files
Bun v1.1.40 is compiling
December 18, 2024 at 5:57 AM
Bun v1.1.40 is compiling
Bun v1.1.39 is compiling
December 17, 2024 at 5:21 AM
Bun v1.1.39 is compiling
In the next version of Bun
The heap profiler reports native code memory usage, and the `estimateDirectMemoryUsageOf` function estimates how much memory a natively-implemented object takes up
The heap profiler reports native code memory usage, and the `estimateDirectMemoryUsageOf` function estimates how much memory a natively-implemented object takes up
December 16, 2024 at 3:28 PM
In the next version of Bun
The heap profiler reports native code memory usage, and the `estimateDirectMemoryUsageOf` function estimates how much memory a natively-implemented object takes up
The heap profiler reports native code memory usage, and the `estimateDirectMemoryUsageOf` function estimates how much memory a natively-implemented object takes up
In the next version of Bun
Cached `bun install` gets 30% faster in large repos
Cached `bun install` gets 30% faster in large repos
December 14, 2024 at 1:35 PM
In the next version of Bun
Cached `bun install` gets 30% faster in large repos
Cached `bun install` gets 30% faster in large repos
In Bun v1.2, you can use React Server Components without a server
November 30, 2024 at 1:48 AM
In Bun v1.2, you can use React Server Components without a server
In Bun v1.2, Server Components stops being a React-only thing.
Here's Server Components in Svelte, using Bun's bundler
Here's Server Components in Svelte, using Bun's bundler
November 28, 2024 at 8:28 AM
In Bun v1.2, Server Components stops being a React-only thing.
Here's Server Components in Svelte, using Bun's bundler
Here's Server Components in Svelte, using Bun's bundler
Claude being very ethical today
November 19, 2024 at 3:13 AM
Claude being very ethical today
TLS now works on Bun’s experimental builtin Postgres client
November 18, 2024 at 1:49 PM
TLS now works on Bun’s experimental builtin Postgres client