logo

Projects

Things I've built or am building.

Building

Shipped

Featured

Stairno Account

Oct 2026 –

Personal · from planning to production · 107 PRs · 775 tests

The account center (account.stairno.com) and shared API (api.stairno.com) behind every Stairno site: one Stairno account signs in everywhere, a card is saved once, and payments, subscriptions and entitlements live in one API. Sites call these two instead of building sign-in and checkout themselves. I did all of it solo, from planning documents and design through implementation, the deploy pipeline and a production payment rehearsal. Payments run in test mode in production today.

  • Documents first: a project plan, a requirements specification (115 requirements), a design specification and a test-and-deploy document came first, and the code follows them. Tests and PRs cite requirement IDs, and when documents and code disagree, the same PR fixes one of them
  • OIDC provider: sites connect as OIDC clients and never build their own sign-in screens. PKCE authorization code flow, JWT access tokens with JWKS, refresh tokens, and client_credentials tokens for site servers. Sign-in across different domains was proven with a 13-step experiment before the design
  • Accounts: sign-up with email verification, password reset and change, email change, a signed-in devices list with sign-out everywhere, profile photos, account deletion and recorded consent to the terms. The hub, the account center and the sites share one account menu from a shared UI package (@stairno/ui)
  • Payments: Toss Payments (KRW) and PayPal (USD) isolated behind one adapter interface. The server re-checks every amount with the provider, and money is only ever an integer minor unit paired with a currency. Card numbers never touch the code; the provider window takes them
  • Subscriptions: recurring billing on a card saved once (billing key). A daily cron renews them; a failed renewal is retried three times, three days apart, then the subscription expires. Cancel at period end, and resume
  • Orders and webhooks: an order state machine, webhook signature checks and idempotency by event ID, refund requests with operator approval, and signed download links valid for 10 minutes. One payments switch keeps sign-in up and stops only payments during an outage
  • Mail: Resend with SPF, DKIM and DMARC. Verification, reset, receipt, refund and renewal-failure mail in Korean and English. Screen and mail text live in two dictionaries with the same keys, and a missing key is a type error
  • Security and privacy: CSP and security headers, HSTS, origin checks, rate limits on sign-in, sign-up and reset, and secrets only in Wrangler secrets. I wrote the privacy policy myself against the articles of the Korean Personal Information Protection Act and its drafting guide
  • 775 tests, test-first: unit, PGlite integration, Astro component and workerd end-to-end tests. Payment flows run against a fake provider. Lighthouse accessibility 100
  • Git Flow and deploys: feature PRs go into develop; rulesets let only release and hotfix branches into main. Merges need CI, and a merge deploys to Cloudflare Workers in order: tests → DB migration → API → account center. A failed migration stops the deploy. The incident response procedure is written down too
  • Production payment rehearsal: a rehearsal-only site attached to the production API ran 10 payment scenarios with test keys (payment, tampered amount, refund, card registration, three failed renewals, PayPal, webhook resends, the payments switch, mail in both languages) as the acceptance test. The sign-in 404 and mail link it found were fixed in a hotfix
  • Latency: on the free plan, Korean requests enter Cloudflare on the US west coast. Placing the API Worker near Singapore cut the JWKS response from 816 ms to 418 ms
  • The whole story, decisions and mistakes included, is in the Stairno series on this blog, from part 0 (roadmap) to part 4a (payment rehearsal)
  • Hono
  • Astro
  • Better Auth
  • OIDC
  • Drizzle
  • PostgreSQL (Neon)
  • Cloudflare Workers
  • Toss Payments
  • PayPal
  • Resend
  • Vitest
  • GitHub Actions

AI Woowangthon Team 18

Oct – Nov 2026

Team entry · CBNU 2026 AI Woowangthon (AI Bootcamp × LIKELION CBNU)

A service that pools idle school lab PCs to run student projects. An LLM sorts each project by how it runs, and server-side projects are placed on whichever lab PCs are on via k3s.

  • Drew the infrastructure architecture diagram in draw.io: cloud VM, Vercel, external services and the lab PCs joined through a Tailscale private network
  • Wrote the architecture overview, the list of open decisions and a glossary for the team
  • Kickoff Oct 25, submission Nov 15, finals Nov 21
  • React
  • FastAPI
  • Docker
  • k3s
  • Tailscale
  • PostgreSQL