Express.js Middleware Patterns You Should Know
Express.js

Express.js Middleware Patterns You Should Know

Middleware is how Express works. Not just a feature of it -- it is the whole thing. This is the talk I give to every new hire: the five middleware types, execution order, why next() trips everyone up, async error handling, and the patterns we actually use in production.

11 min read 3,622 views
#express #middleware #error-handling #nodejs
Continue Reading →
Authentication with JWT in Express.js
Express.js

Authentication with JWT in Express.js

I shipped JWT auth with tokens that never expired, stored in localStorage, to production. This is the post-mortem. Covers JWT structure, why your token strategy probably has holes, access and refresh tokens done right, password hashing with bcrypt, and the storage debate that never ends.

11 min read 2,554 views
#jwt #authentication #express.js #security
Continue Reading →
Rate Limiting and Security Best Practices in Express.js
Express.js

Rate Limiting and Security Best Practices in Express.js

I spent a solid week tightening security on an Express app and wrote down everything that tripped me up — rate limiting, security headers, CORS, input sanitization, and cookie hardening. This is that list, dressed up as a blog post.

12 min read 1,877 views
#security #rate-limiting #express.js #helmet
Continue Reading →
File Uploads in Express.js with Multer
Express.js

File Uploads in Express.js with Multer

A frustration-driven tutorial on handling file uploads in Express.js with Multer. What went wrong, why it went wrong, and the actual config that fixed it -- covering storage engines, file filtering, size limits, image resizing with Sharp, and uploading to S3.

11 min read 3,009 views
#multer #file-upload #express.js #s3
Continue Reading →