Peter Bengtsson
peppebe.bsky.social
Peter Bengtsson
@peppebe.bsky.social
Web developer at GitHub.
Blogs at https://www.peterbe.com
From Sweden but lives in South Carolina, USA.
Blogged about a new CLI tool I've started hacking on.
www.peterbe.com/plog/gg2-ini...

What I think is neat is that I use `bun build --compile ...` to generate a single executable instead of relying on something like `bunx` or `pipx`.
gg2 - a new CLI for helping me manage git branches - Peterbe.com
gg2 is an executable CLI to help with tedious git commands for power users.
www.peterbe.com
August 6, 2025 at 3:12 PM
Been a good start to the month!
Page views on my blog.
July 15, 2025 at 12:28 PM
Native connection pooling in Django v5 gives a 5x speedup.
www.peterbe.com/plog/native-...
Native connection pooling in Django 5 with PostgreSQL - Peterbe.com
Enabling native connection pooling in Django 5 gives me a 5.4x speedup.
www.peterbe.com
June 26, 2025 at 10:46 AM
Native connection pooling in Django 5 with PostgreSQL - Peterbe.com

5x more requests-per-second improvement with this one single trick. Actually.
Peterbe.com - Stuff in Peter's head
Peterbe.com is the personal website and blog of Peter Bengtsson.
Peterbe.com
June 26, 2025 at 1:03 AM
I made an app!

github.com/peterbe/vide...

It’s simple but useful. Wanted to explore what can be done with video files without sending them to a server.
GitHub - peterbe/video-to-screenshots: A web app to turn a video file into screenshots without a server
A web app to turn a video file into screenshots without a server - peterbe/video-to-screenshots
github.com
June 24, 2025 at 12:11 AM
I’m going to try a new IDE/editor.
What would you recommend? Zed or Cursor?

I loved Zed when it came out but downfall was that I couldn’t add custom completion macros.
May 7, 2025 at 8:19 PM
Yay for Redis v8!
antirez.com/news/151
Redis is open source again - <antirez>
antirez.com
May 1, 2025 at 5:25 PM
This is what I use to have GitHub Dependabot make package updates for Bun projects:
```
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
```
May 1, 2025 at 5:18 PM
Self-posting my latest blog post. It's not about AI.
www.peterbe.com/plog/ssg-vit...
How to SSG a Vite SPA - Peterbe.com
You can write a script to statically generate the HTML of a SPA to make the initial load feel faster.
www.peterbe.com
April 27, 2025 at 2:58 PM
This’ll be wet
March 31, 2025 at 10:49 PM
One of the most educative podcast episodes out there on US tax policy.
It's not partisan, although it (has to) touches politics. It's more about understanding and it's delivered in a 1h rapid chat. I'm impressed.
open.spotify.com/episode/0Zrw...
626. Ten Myths About the U.S. Tax System
Freakonomics Radio · Episode
open.spotify.com
March 17, 2025 at 11:51 AM
This is cool!
docs.numerique.gouv.fr
It's like Google Docs but all Open Source and backed by the French and German government.
Skimmed the code; it's Python/Django on the backend and React on the frontend.

I hope this becomes successful!
Docs
Docs: Your new companion to collaborate on documents efficiently, intuitively, and securely.
docs.numerique.gouv.fr
March 16, 2025 at 5:37 PM
For fellow `uv` fans,
github.blog/changelog/20...

You'll need to update your `.github/dependabot.yml` like this
github.com/peterbe/djan...

#python
Dependabot version updates now support uv in general availability · GitHub Changelog
Dependabot version updates now support uv in general availability
github.blog
March 14, 2025 at 6:47 PM
Spot the Difference Stats
spot-the-difference.peterbe.com/stats

It now compares your (best) times with the median number of seconds people take.

Need more plays though! So the medians start to make sense :)
Spot the Difference
A web app game for finding a difference between two snippets of code
spot-the-difference.peterbe.com
March 4, 2025 at 1:13 PM
I made a fun web app game.
www.peterbe.com/plog/announc...

Please come up with fun and whimsical ideals to make it more fun.
Announcing: Spot the Difference - Peterbe.com
Spot the Difference is a web app where you're shown two snippets of code and you're supposed to find the one difference. If you get it right, you get showered in confetti.
www.peterbe.com
February 24, 2025 at 12:44 PM
Adding items to the grocery shopping list by taking a picture from the cookbook.

thatsgroce.web.app
February 22, 2025 at 3:33 PM
Adding items to the grocery shopping list by speech.

thatsgroce.web.app
February 22, 2025 at 3:32 PM
I recently rewrote my personal website/blog from Remix to React Router v7.

It was moderately easy and fun. But now I'm dreading the hard work of writing a retrospective blog post about it.

At the time of actual coding, it felt like an engineering feat. Now it feels more like a chore to write up.
February 20, 2025 at 5:26 PM
spot-the-difference.peterbe.com is now using Dexie.js for storage.
Spot the Difference
spot-the-difference.peterbe.com
February 20, 2025 at 12:53 PM
❯ du -sh `uv cache dir`
1.4G /Users/peterbe/.cache/uv

What you got?
February 20, 2025 at 12:43 PM
If you use `compression` in your Express server, it now supports Brotli as of github.com/expressjs/co...

No more need to pull in `@nitedani/shrink-ray-current`
feat: support for brotli by bjohansebas · Pull Request #194 · expressjs/compression
The changes from #172 are brought in, with the exception of using the accept negotiation logic.
github.com
February 18, 2025 at 4:46 PM
Man, I say this almost every year, for the last couple of years, but I miss PostgreSQL.

It's not that I use a different database. It's that my work has not involved any databases (other than some Elasticsearch for full-text search).
February 11, 2025 at 3:49 PM
I made a silly (hence the goose) game that started as an excuse to just try some tech techniques. But it was fun to play so I shipped it.
spot-the-difference.peterbe.com

Please please, the code is so straight-forward that you can easily clone it and make some fun PRs against it.
Spot the Difference
spot-the-difference.peterbe.com
February 10, 2025 at 8:58 PM