javascript
7 posts
- Why the loading label never shows
The event loop, for interfaces: a Save button that never says Saving, a CSS animation that survives a busy page while a JavaScript one freezes, and then the rules underneath, stepped through until 1, 4, 3, 2 makes sense.
- The search box that stops keeping up
Big O, in the keystroke: two filter fields on the same list, one of them with a single quadratic line, measured per keystroke in your own browser. Then eight complexity classes to scale, on a log axis or a linear one, at a billion operations a second.
- I Built a Chrome Extension Backed by 2,000 Grimoire Articles
Lunary has 2,000+ articles covering astrology, tarot, crystals, spells, and divination. I built a Chrome extension that searches them in real time so I always have accurate esoteric knowledge at hand.
- How I Built a Synastry Engine That Calculates 36 Planetary Aspects in Real Time
Synastry is the astrology of relationships. Computing it properly means calculating aspects between every planet in two birth charts simultaneously. Here's the maths and the implementation.
- Building a vertical snap carousel with touch-drag pagination
I needed a vertical carousel for my portfolio that snaps cleanly between items and has pagination you can drag on mobile, without a 50kb library. Here's how I built it with CSS scroll-snap, a minimal React hook, and custom touch handling.
- Cursor-Reactive Gradients: Making CSS Respond to Mouse Position
How the colour-changing logo on my portfolio works — 15 lines of maths, a CSS mask, sine waves for scroll, and a lerp function. No library, no canvas, no WebGL.
- How I Made My Portfolio Infinitely Extendable with 4 Lines of JSON
Adding a new project to my portfolio takes 30 seconds. No component changes. No new routes. No layout adjustments. Just 4 lines of JSON and an image dropped into a folder.