Articles
Notes from the trenches.
42 articles about web development, React, Next.js, TypeScript and more. RSS
- 1 min
JWT access tokens and refresh rotation in SPAs
HttpOnly cookies vs memory, refresh token reuse detection, sliding sessions, and why BFFs still help browser security.
- Security
- React
- API
- 2 min
Playwright E2E practices that survive real teams
Selectors, fixtures, test isolation, parallel sharding, trace-on-failure, and avoiding flaky waits in browser automation.
- Testing
- Playwright
- DX
- 1 min
WebSocket reconnection with backoff and heartbeats
Exponential backoff, jitter, max attempts, ping/pong health checks, and resuming state after reconnect.
- Web
- Real-time
- JavaScript
- 1 min
Layout animations with Framer Motion
layout and layoutId for shared element transitions, FLIP under the hood, performance with transform, and reduced motion preferences.
- React
- Animation
- Frontend
- 1 min
Image processing pipelines with Sharp in Node.js
Resize, format conversion, WebP/AVIF, streaming pipelines, memory limits, and integrating with Next.js Image or upload workers.
- Node.js
- Performance
- Media
- 2 min
Next.js middleware: edge patterns and pitfalls
Matcher config, auth redirects, geolocation headers, A/B flags, and what you cannot do in middleware without hurting TTFB.
- Next.js
- Security
- Performance
- 1 min
Sentry, source maps, and release health in Next.js
Uploading maps in CI, debug IDs, scrubbing PII, sampling transactions, and correlating errors with deployments.
- Next.js
- Observability
- DX
- 1 min
Drizzle ORM: TypeScript-first SQL
Schema as code, migrations, relations vs manual joins, SQL-like query builder, and comparing Drizzle to Prisma for control freaks.
- TypeScript
- PostgreSQL
- ORM
- 1 min
The React Compiler and automatic memoization
Rules of React, what the compiler proves, reducing useMemo/useCallback noise, and interoperability with existing codebases.
- React
- Compiler
- Performance