Skip to content

- Blog
- Open Source
category /Open Source
11 posts
01
Stop passing req.query straight into MongoDB
Model.find(req.query) is one line with three risks: private fields, operator injection and unbounded reads. How Express 4 and 5 parse query strings, and the…
OPEN SOURCE /
↗
02
Let the AI agent touch your backend, but give it a leash
Coding agents say "done, all tests pass". Here is how I keep them on a leash on backend code: scopes, a throwaway database, an…
OPEN SOURCE /
↗
03
Everything I check before I run updateMany on production
One wrong filter on updateMany or deleteMany can wreck a collection. Here is the boring routine I run before any bulk write on a…
OPEN SOURCE /
↗
04
Your framework shouldn’t be a black box in node_modules
Debugging into node_modules and finding a fix you cannot safely make. Here is how to own your framework code in your repo and still…
OPEN SOURCE /
↗
05
Test your API as every role before someone else does
Happy-path tests prove what a user can do. Access bugs live in what they cannot do. Here is how I test every route as…
OPEN SOURCE /
↗
06
Why your SSH client probably shouldn’t need an account
Your saved SSH hosts are a map of your infrastructure. Here is where that map lives in a synced client, the plain manual setup…
OPEN SOURCE /
↗
07
I rewrote my own framework and deleted five of every six files
CalmAPI 1.x made you write six files for one simple module. Here is why I threw that design away, what one resource file does…
OPEN SOURCE /
↗
08
What I wish someone told me before I wrote my tenth Express API
The setup work every Express API repeats: folders by resource, validation at the edge, one error format, access rules on every route, and a…
OPEN SOURCE /
↗
09
Why I stopped trusting “it works on my machine” for MongoDB queries
A MongoDB query that takes 4 ms on your laptop can crawl in production. Here is how I read explain output, order compound indexes…
OPEN SOURCE /
↗
10
How I edit files on a server without installing anything on it
Vim on the box, scp round trips, sshfs, VS Code Remote SSH. Every way of editing a file on a server either leaves something…
OPEN SOURCE /
↗