Skip to content

Writing

Notes on frontend architecture, platform design and applied machine learning, from work I have done.

RSS feed 
More topics (24)
  1. / 3 min read

    Scroll-linked animation with one CSS variable and no library

    How the icons on the Uses page are drawn by the scroll: JavaScript measures one number per element, CSS turns it into opacity and scale with clamp(), and reduced motion is respected. Small, fast and easy to test.

    CSS / Animation / Performance

  2. / 3 min read

    Dot matrix icons from code: 19 SVG icons on a 13 by 13 grid

    How I drew an icon set as dots: a handful of drawing primitives, a tiny pixel font, and an SVG renderer. Why outlines have to be sampled, what a 13 by 13 grid cannot show, and the icons I had to redraw.

    SVG / React / Design systems

  3. / 2 min read

    Automated accessibility checks with axe: what they found on this site

    I ran axe-core in a headless browser across the main pages of this site. Most passed; two real issues did not. What it found, how I fixed it, and what an automated check cannot tell you.

    Accessibility / Testing / Engineering practice

  4. / 3 min read

    A million rows in the browser: virtualisation, a worker and one numeric sort

    The ledger demo on this site sorts, searches and scrolls a million rows without stutter. The four decisions that make it work: rows that are computed instead of stored, a sort in a worker, a scroll space the browser can hold, and a real grid for keyboards and screen readers.

    React / Performance / Data heavy interfaces

  5. / 3 min read

    Moving routing out of the proxy: a function call on every page view

    My portfolio served cached pages, yet a first visit could wait more than three seconds for the first byte. The cause was a small proxy file that ran a server function before every page. How I moved its work into routing rules.

    Next.js / Performance / Vercel

  6. / 4 min read

    Fast tables, honest numbers: keeping data heavy React screens responsive

    What actually makes a screen with thousands of rows, live updates and complex filters slow, and the handful of techniques that fix it without rewriting the app.

    React / Performance / TypeScript

  7. / 4 min read

    Hide the button, enforce on the server: authorization in multi tenant products

    Why role checks scattered through a codebase stop scaling, how relationship based access control fixes it, and how the frontend should ask for permissions without becoming the place that enforces them.

    Security / Architecture / API design

  8. / 3 min read

    The query that trusted its input: finding SQL injection in a no code platform

    How a code review turned up SQL injection in the database nodes of an API platform, and what fixing it properly across six database engines involved: bind parameters, identifiers and a safer way to inspect queries.

    Security / Databases / Code review

  9. / 4 min read

    APIs a frontend can live with: designing the contract first

    The small decisions in an API contract that decide whether every screen built on it is simple or painful: errors, pagination, concurrency, batches and lifecycle.

    API design / OpenAPI / Architecture

  10. / 3 min read

    Drag, connect, publish: building a visual flow editor in React

    What it takes to build a node based editor that people trust with production APIs: a graph model kept apart from the canvas, validation as you draw, undo that always works, and versions you can roll back.

    React / Product engineering / UX

  11. / 3 min read

    A design system for products people use all day

    Marketing design systems are about brand. Enterprise ones are about density, keyboard use, states and consistency across many teams. What I put in a shared design system for data heavy panels, and what I leave out.

    Design systems / React / Accessibility

  12. / 3 min read

    Who reported to whom last March? Modelling organisations over time

    Organisation charts change constantly, and reports, approvals and audits need to know how they looked on any given day. Notes on effective dated data, invariants the database enforces, and APIs that answer "as of" questions.

    Databases / Data modelling / PostgreSQL

  13. / 4 min read

    Cold start without the hand waving: what meta-learning gives a recommender

    Notes from my master’s thesis on recommending for users with almost no history: why classic methods stall, how meta-learning reframes the problem, and how to evaluate it without fooling yourself.

    Machine learning / Recommender systems / Research

  14. / 3 min read

    Local first, observe only: lessons from building a desktop tool for developers

    What I learned building Alita, a cross platform system manager for developers in Python, Rust and Go: keeping data on the machine, never acting without asking, and using native code only where it pays for itself.

    Python / Rust / Go / Desktop

  15. / 3 min read

    What two years of backend taught me about building interfaces

    I moved from backend services to the frontend, and the backend years turned out to be the most useful preparation. Six habits that carried over, and why I think every frontend engineer benefits from them.

    Career / Full stack / Engineering practice

Writing — essays on frontend architecture — Aran Shayan