M (@onlymoein) header
M (@onlymoein) profile picture

Building https://xitter.cf/t.co/TmUKm0blW0

Nearby
Joined December 2025
Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)Photo by M (@onlymoein)
Pinned Tweet
Liquid Glass 27 for the web, as React components. Left is native iOS 27. Right is liquidglass. npm install @onlymoein/liquidglass github.com/onlymoein/liquidg…
5
14
1
205
15,786
What a weird feature Claude Code just added called “Safeguards.” It wouldn’t even let me run my CLI command. wth?
1
2
69
This mentality is everythiiiiiiiing.
99
1,276
61
11,716
306,490
What a time to be alive!
Mechazilla catches Starship! Congratulations to the entire SpaceX team on this incredible achievement!
3
162
Teach your coding agent Apple's Liquid Glass on Web. npx skills add onlymoein/liquidglass Real iOS 27 glass in React: switches, sliders, menus, tab bar. Your agent stops stacking glass on glass.
2
7
593
We'll make it happen next time, thanks to @farokhshahabi & @divanacademy
1
2
78
2nd time🧘
3
99
Huge ID space? Put a Bloom filter of valid IDs in front, plus per-client rate limits. Test it: request a missing ID 1,000 times. The DB should see one query per negative TTL window. npx skills add onlymoein/master-cache-skill Tomorrow: when Redis itself goes down.
6
Same idea at the CDN: if bots hammer missing URLs, a 404 can carry max-age=60. Purge it when the page gets created. 5xx is different: no-store, and let stale-if-error serve the last 200. It covers 500, 502, 503 and 504, never 404.
1
11
Store a sentinel, not null. If null already means "not in cache", your negative entry reads as a miss and every request goes back to the DB. The skill's cache-aside helpers handle it: negativeTtlMs defaults to 30s in TS, negative_ttl=30.0 in Python.
1
24
Bots hit /item/999999 over and over. It doesn't exist, so nothing is cached and every request hits your DB. Broken: not found → return null Fixed: cache a "not found" sentinel, TTL 10–120s delete it when the ID is created What does your cache do with a miss?
1
56
The skill ships ready-made loaders for this: cache-aside in TS and Python, singleflight in Go, XFetch for keys you can't serve stale. npx skills add onlymoein/master-cache-skill Tomorrow: requests for IDs that don't exist.
9
Same family: an error is not a miss. Facebook's 2010 outage started when clients deleted cache keys on DB errors, a loop that kept the DB down about 2.5 h. Keep the old value, mark it stale, serve it.
1
16
The bug I see most in hand-rolled single-flight: the in-flight promise is only cleared on success. One failed load and the rejection is memoized forever. Clear it in finally, and add a timeout so a hung load can't block every waiter.
1
26
Your hottest cache key expires under load. Every request misses at once and hits your DB. That's a stampede. A longer TTL only moves it. Broken: miss → everyone loads Fixed: single-flight per key + serve stale, refresh once + TTL jitter ±10% What guards your hottest key?
1
1
83
Want to know which of your routes read cookies or sessions before you give them a TTL? npx skills add onlymoein/master-cache-skill Tomorrow: what happens when a hot key expires under load.
8
The tempting fix is Vary: Cookie. Don't. With analytics cookies in the mix it's effectively Vary: *, so nothing hits. Send private instead, or strip cookies at the edge on public paths.
5
Only part of the page is per-user? Don't make the whole thing private. The skill splits it: a public shell that can cache, and a private island (client fetch, PPR, 'use cache: private', ESI). It also strips Set-Cookie from the shell.
1
27
Your dashboard sends no-cache. Safe at the CDN? Not quite. Shared caches collapse concurrent identical requests, even on no-cache. Per-user pages need private. Broken: Cache-Control: no-cache Fixed: Cache-Control: private, no-cache + ETag What does your account page send?
3
2
64
Other checks that fail a plan: shared cache on a personalized route, no invalidation path, immutable without a versioned URL, a cached POST.
7