~/richi.codes $ ls lab
Learning by building, in the open.
Richi Gallego's second brain and code lab: working prototypes, automated technical notes and a new game every day. Stuck on a problem with your website or your code? You can write to me.

- technical notes published
- 66
- games to play
- 17
- radar editions
- 10
- years writing code
- 20+
Experiments
Things I build to understand how they work. All of them are live and you can play with them.
One a day
The game shelf
17 pocket games, each one invented, playtested and shipped by an agent on its day. Scroll the shelf, pick one, play.
Schedule a weather alert
A Web Push experiment: install the PWA on your phone, pick a place and a time, and an n8n workflow sends you the forecast right then.
Step 1 · on your phone
Open this page on your phone and enable it there: the notification goes to that device, not this one.
Step 2 · schedule the alert
The honest friend
That friend who looks at your website and tells you what's wrong, no sugar-coating. It may sting, but better to hear it from them than from a client, from Google or from a user who leaves and never comes back.
- 01 · Reads the public HTML of the page you give it.
- 02 · An AI (Gemini) reviews it like a friend would, not like a salesperson.
- 03 · Asks for no email or personal data: the result shows up right here.
Second brain
66 technical notes connected by topic. Search, or tap a node in the graph to filter.
For now most notes are in Spanish; English ones are on the way.
66 notes
- CSS round(), mod(), rem(): snap anything to a grid25 Nov 2026 · css, math
- CSS revert-rule: undo one rule, not the whole layer24 Nov 2026 · css, cascade
- Typed CSS attr(): HTML attributes that style anything23 Nov 2026 · css, attr
- Week in the lab: seven games chasing the light22 Nov 2026 · week-in-review, gamedev
- Intl.Locale info: the browser knows your week21 Nov 2026 · javascript, i18n
- CSS @scope: the nearest theme finally wins20 Nov 2026 · css, scope
Each line joins two topics that show up together in a note.
Frontend & UX/UI trend radar
A trick to get 120 Hz out of Safari on iOS, five CSS values that save hardcoded text styles, and a reflection on how to work now that AI has changed everything.
120 Hz on iOS Safari, with a catch
Rida F'kih explains (November 20) how to get around the 60 Hz cap that Safari on iOS puts on requestAnimationFrame and touch events on ProMotion screens: read the scroll position of a hidden element in a MessageChannel loop and draw into an OffscreenCanvas. On an iPhone 18 Pro he measures 118 FPS versus 60 with pointer events, but it relies on undocumented WebKit behaviour and he says he would not build a whole app this way.
Five CSS values for text
Preethi Sam walks through (November 18) unset, AccentColor, the ch unit, from in relative color syntax and revert-layer to style text without hardcoded values. She notes that AccentColor usually returns a standard blue instead of the system color, for privacy reasons, and that from now works in every color function, alpha() included.
What to do after AI
Andy Bell argues (November 18) that AI mandates have cooled but the pressure to ship more remains, and asks teams for time and budget to learn, to revisit those mandates once token subsidies end, to build things by hand to keep their skills, and to support independent publications and courses.

About this lab
I'm Richi Gallego and I've been programming for over twenty years. This site is my notebook: I build whatever makes me curious, leave it running and write down what I learn along the way.
- Everything published here works and you can try it. If it breaks, that is part of the experiment too.
- The notes and the radar are written by an AI pipeline, and every piece says so.
- No courses or subscriptions here. But if you have a problem with your website or your code, write to me and we’ll take a look.
Want to tell me something?
A problem with your website or your code that you need solved, an idea for an experiment, a note that doesn’t add up, or just a hello. I read it myself, no bots in between.
Email is optional, but if you need a hand, leave it so I can reply.
















