Skip to content

Freakcity

Phoenix

I finally got around to finishing the new version of the site. It should be functionally close to the original, but with some updated design language, a modern stack (bun, MariaDB, linux) much faster and with a few nice bits and bobs like message encryption and the like.

Text stuff is backwards compatible with the original site (I believe) but now exclusively uses markdown.

I should probably come up with a big long list of stuff I fixed/amended.

What's new since the ASP site

Platform and speed

  • Rebuilt on Express and Handlebars, running on Bun in a Linux container instead of ASP Classic on Windows/IIS
  • Every change is tested and deployed automatically, with a health check after each deploy
  • Each page reports its database, template and minifying time; requests over 500 ms are logged
  • Pictures and thumbnails served as WebP
  • Static files versioned per release, so browsers cache them for a long time
  • Release date shown beside the version on the home page

Security

  • Every database query is parameterised (no SQL built from user input)
  • Database encrypted at rest
  • Private messages end-to-end encrypted (X25519 + AES-GCM), each member with their own key pair
  • CSRF protection on every form
  • Strict content security policy: own origin only, a nonce on each inline script
  • All user content passes through one HTML allowlist
  • Rate limits, tighter on login, sign-up and password reset
  • Logged-out visitors don't get a session
  • One login across www and the bare domain
  • Slack requests verified against Slack's signature
  • Two full security audits, fixing among other things an arbitrary file read and several access-control gaps
  • One account per email address (accounts that shared one were merged)

Writing and posting

  • New editor that saves markdown: headings, lists, code and links
  • Insert a picture from your device straight into a post
  • Link previews: any pasted or typed link becomes a card with picture, title and description

Notifications

  • OS notifications (web push) for new messages and site notices

Events

  • Each event has its own time zone (stored in UTC, shown in the event's zone); the old site used fixed UK time
  • All-day events

Language and layout

  • Whole site in English and German
  • One responsive site for phones and desktops instead of separate mobile pages; nothing wider than the window
  • Proper page structure for screen readers: one main heading per page and a skip-to-content target

Random Thought: Hello from Warsaw

Last modified: Sunday, November 29th, 2026 at 2:26pm

Comments (0)

No comments yet.

Add a Comment

« Back to scott's Blog