Skip to content

01
How I know my API didn’t get more permissive this week
Access changes hide in diffs because they are one word. Here is how I commit who can do what, fail CI when it widens,…
OPEN SOURCE /
↗
02
The fields your API leaks without you noticing
select: false hides the password, then populate sends the author's email and roles to every visitor. Where Mongoose field hiding fails, mass assignment, and…
OPEN SOURCE /
↗
03
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 /
↗
04
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 /
↗
05
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 /
↗
06
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 /
↗
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 /
↗