Alan PaynterSoftware, RC racing, and things I make

Interests / Building software

Small tools you can read.

I build for the web, mostly in PHP and TypeScript. My favourite software is the kind one person can read in an afternoon and still trust years later.

  • PHP
  • SQLite
  • TypeScript
  • Node.js
  • Postgres
Code editor showing Wren CMS's theme function and a terminal

01 / Projects

What I've built.

02 / How I build

Boring technology, careful edges.

I like plain PHP and SQLite where they fit, and TypeScript with Postgres where they don't. Most of the effort goes into the edges: signatures checked before anything is parsed, idempotency keys, and a database that's backed up before anything touches it.

And I test against the real thing. My business suite's installer once reported "Schema created" over an empty database. The test harness had loaded the schema itself, so the installer's bug never showed. Only the first real install found it.

// verify first, parse later
$sig = $_SERVER['HTTP_N49_SIGNATURE'] ?? '';
if (!webhook_verify($raw, $sig, $secret)) {
    http_response_code(401);
    exit;
}
$event = json_decode($raw, true);