Case study · Web App tier

Charter: a constitution that stays alive.

The most complex application we have shipped: a public document that people can read, cite, propose changes to and vote on — with passkeys, versions, moderation and an audit trail.

charter.shopdigital.art
Charter home screen
What it does

A document with a memory.

A visitor can read the constitution, follow a citation, propose a change, discuss it and see the result. Every step leaves a record.

✓

Passkey-first accounts

WebAuthn plus a generated private-key fallback. The server stores a public key or a SHA-256 fingerprint, never a login secret.

✓

Server-side sessions

Random, hashed tokens with HttpOnly, SameSite=Strict cookies, CSRF checks and exact-origin enforcement.

✓

Versioned content

Every authoritative save creates an append-only version with author, note and a reversible diff.

✓

Moderation and audit

Public submissions wait in a review queue; privileged and destructive actions write an audit row.

✓

Offline core

Self-hosted assets, local full-text search and a service worker, so the document works without a network.

✓

Operated, not just launched

A run script, liveness/readiness probes, encrypted SQLite backups, a smoke test and a rollback path.

The hard parts

Why this is the platform tier.

The page is the easy part. The application has to keep identity, consent, versions and money honest while remaining readable to a non-technical visitor.

  • ✓Identity without passwords — passkeys first, a generated private key second, sessions hashed at rest.
  • ✓Change without loss — every authoritative save is a version with a reversible diff.
  • ✓Public without spam — submissions wait in a review queue; private contact details never publish.
  • ✓Offline without a second app — self-hosted assets, local search and a service worker.

Build facts

Scope
Public document, accounts, proposals, moderation, audit
Auth
Passkey + private-key fallback, server-side sessions
Data
SQLite with append-only versions and encrypted backups
Deploy
systemd service, nginx TLS, liveness/readiness, smoke test
Tier
Web App / Platform — from $24,000
Reserve a platform discovery
The same standards

The platform tier is not a different craft.

It is the same design discipline with more surface area: auth, data, money and operations.

Threat model

Routes, roles, uploads, payments and the boundaries between them, written down before code.

Tests

Auth wiring, CSRF, moderation, versions, audit, payments and a real-browser passkey round trip.

Operations

Run script, health probes, backups, restore test and a previous image for rollback.

Handover

Repository, environment names, runbook and a recorded walkthrough — no black box.

Have an application in mind?

Start with the data, not the dashboard.

A short discovery tells us whether the idea is a form, a storefront or a platform. We will say which — and what it costs.