Notes on building software.
Project write-ups and research notes on Django, backends, payments, security and shipping products.
-
How Web Push works: Push API, RFC 8030, RFC 8291 and VAPID
A web push notification can arrive when your site is not open in any tab. To make that work, the browser, a push service run by the browser vendor, and your own server pass an…
-
Building an offline-first note-taking PWA with a Django sync API
I wanted a handwriting app in the style of Notability that runs on a phone, a tablet and a laptop, keeps working on a bad connection, and syncs to a server I control. The…
-
Offline-first web apps: caching, storage and sync conflict patterns
An offline-first web app treats the device as the place where work happens and the server as somewhere to sync to later. The browser gives you the parts: Service Workers,…
-
How TOTP works: HOTP, RFC 6238 and the maths of 6-digit codes
Every authenticator app does the same small calculation: take a secret key and the current time, run them through HMAC, and squeeze the result into six digits. That calculation…
-
How I run my portfolio and blog on Cloudflare Workers for free
For a long time my web presence was split in two. My portfolio was a Django app on shared hosting, with its own admin panel, database and media folder. My blog was a Blogger…