logo
Published on

Stairno 0. Roadmap and Shared Design

Authors
  • avatar
    Name
    seren-wib
    Twitter
Contents

0. Introduction

Run separately, my freelance work, games, and small programs and web services would mean three names, three sites and three accounts. For one person that is the same work done several times, so I tied them under one name. This post covers the overall structure and order, and the first job, the shared design package.

In restaurant terms, Stairno is the name of a restaurant chain and the four branches are the four sites. Instead of a membership card per branch there is one card that works in all of them, and the head-office counter that issues cards and takes payments is the account center and the shared API. The signboard and interior manual that every branch follows the same way is the Design system, and a branch's address is its Domain. The name comes from stairno, "star" in Gothic; read in English it contains stair, so I chose it for a star climbing one step at a time from the ground. What I did: fixed the site structure and the account policy, wrote a 10-step roadmap, and pulled the look of the hub stairno.com out into the @stairno/ui package.

System architecture diagram. The browser reaches the hub (Cloudflare Pages) and the account center (Worker), both it and the account center call the Hono and Better Auth API Worker, which talks to Neon PostgreSQL, Resend, Toss Payments, PayPal and R2, other Stairno sites sign in through its OIDC provider, and GitHub Actions runs the migration and deploys

1. Four sites, one account

Stairno's overall structure

Solid lines are live today, dashed lines are planned (the labels in the diagram are in Korean)

SiteRole
stairno.comThe hub. Introduces Stairno and sends people to each site. Sells nothing
stairnoworks.comWorks. The freelance desk: requests, quotes, deposits, progress
stairnogames.comGames. The home of the game Vane
stairnolabs.comLabs. Catalog and store for products. Desktop programs are bought and downloaded here

They do different things, so they are separate sites. All four domains were bought on 17 October 2026.

Four sites easily turn into four sign-ins and four payment systems. A sign-up form, a Payment gateway and a refund process per site means doing the same work four times, with four times the bugs and security holes. So I decided to build it like an Amazon account.

  • One Stairno account signs you into every site and product except the hub
  • Register a card once
  • See purchases, subscriptions and downloads in the account center (account.stairno.com)
  • Payments, subscriptions and entitlements are handled in one shared API (api.stairno.com)

The other sites just call these two, which is why every arrow in the diagram gathers in the middle band. The hub has no account screens and no payments.

2. The 10-step roadmap

On 18 October I set the order only, with no dates.

StepTaskWhat it coversStatus
1Shared design package stairno-uiPull the hub's colors, fonts, header and footer out so every site uses the same look✅ Done
2Account center documentsProject plan, SRS and SDD. First, an experiment on whether sign-in works across domains✅ Done
3Account center, part 1: sign-inSign-up, sign-in, verification mail, device management, a sign-in gateway for sites. Live✅ Done
4Account center, part 2: payments (Test mode)Card registration, one-time payments, subscriptions, refunds, payment mail. No real money moves✅ Done
5stairnolabs.comProduct catalog → payments and downloads. The first site to connect to Stairno accounts
6stairnoworks.comService introduction → requests, quotes, deposits
7stairnogames.comVane introduction and dev diary
8First product launchOpen atlas-odyssey, a learning roadmap service, for free with Stairno accounts
9Business registration → real paymentsSign a Payment gateway contract and swap the test keys for real keys
10VaneStarting from one playable section

Why this order:

  • The design package comes first. So that every site begins with the same look as the hub. Building sites first and matching the look later means fixing every site
  • The account center and API come before the sites. Every other site calls these two. They are the only servers, and the sites start as introduction pages and add sign-in and payments later only where needed
  • Real payments are step 9. Taking real money requires business registration and a Payment gateway contract first. Until then everything runs in Test mode, and the design makes switching a matter of swapping keys
  • Works comes after Labs. A freelance site becomes useful once reviews have piled up. Until then, freelance work comes through freelance platforms

3. Working principles and tools

Four principles run through the whole series.

  1. Can one person run it? One language (TypeScript), servers someone else manages, fixed costs close to zero
  2. Documents first. Before code, write the project plan, SRS and SDD. If documents and code disagree, fix one of them in the same change
  3. Tests first. With TDD, write a failing Software testing case first, then make it pass
  4. Check in production. At the end of each stage, go through the Acceptance criteria item by item on the real service address

The tools: Astro (the hub and account center screens), Hono and Better Auth (the shared API), Cloudflare Workers and Cloudflare Pages (every site and the API), a Database on Neon's PostgreSQL used through Drizzle, mail through Resend, payments through Toss Payments (won) and PayPal (dollars), tests with Vitest, and automation with GitHub Actions. Most of the code was written by an AI coding agent, Claude Code. I set the scope and made the decisions, checked the results, and did what a person has to do, such as dashboard settings and entering cards.

There are three repos.

RepoContent
seren-wib/stairno.comThe hub
seren-wib/stairno-uiThe shared design package @stairno/ui
seren-wib/account.stairno.comThe account center and the shared API

4. Step 1: the shared design package

The starting point and the problem

Before step 1 there was the hub, a Static site built and published in a single day on 17 October: pages prebuilt with Astro and uploaded to Cloudflare Pages, with no sign-in and no Database. The design is black and white only, a night sky and a staircase drawn in dots with a star climbing the stairs. The font is Pretendard. It has Korean/English switching, light/Dark mode switching (following the computer's setting at first) and Responsive design.

On 18 October I decided "every Stairno site looks exactly like the hub", but the hub's look was mixed into the hub's code. If each new site copies it, changing one header button means making the same change on the other three, and forgetting one leaves every site slightly different a few months later. So the look is managed in one place only: @stairno/ui (repo stairno-ui).

What was pulled out

Pulled outContent
Design tokenNamed values for colors, spacing and corner rounding, used like --bg (background color)
Base stylesFonts, text sizes, content width, fixed header, footer, button shapes
Header and footerThe site passes in the text and links
Theme switch buttonSwitches between light and dark and remembers the choice
i18nLinks that move between /ko and /en
Font loadingWhere and how to fetch Pretendard

The dot lettering and night-sky animation are the hub's own first impression, so they stayed in the hub; floating dot letters would only get in the way in the account center. The shared parts do not know "what to show". The header only draws the menu items it is given, and the site decides what goes in, so the hub and the account center can have different menus while sharing one header.

Installing with a pinned version

Other sites install the Package straight from the GitHub repo with npm and always pin a Git tag.

npm install github:seren-wib/stairno-ui#v0.2.2

Without a tag you get the latest code at that moment, so the hub runs yesterday's code, the account center runs today's, and the look changes although nobody bumped a Semantic versioning number. With a tag each site records "I use v0.2.2". Changing the look goes in this order: change stairno-ui and test it, put a new version tag on it, then bump the Dependency on each site.

Did a single pixel change?

The success condition was "the hub looks as if nothing changed". It was checked in three layers.

  1. Comparing output files. Built the hub before and after: the HTML differed only in a script's indentation, and the CSS only in two blocks of the same rule merged into one
  2. Visual regression testing. 12 shots, light and dark × desktop (1280px) and mobile (360px) × the Korean, English and HTTP status code 404 pages, compared with a Pixel diff: all 12 had zero pixels of difference
  3. Behavior and Unit test. Clicked the theme button, checked that the choice is remembered, the header changing on scroll and the language links by hand. Tests passed: 118 in the hub and 43 in the package

In the early hours of 18 October stairno-ui v0.1.0 was released and the change that switched the hub over to it was merged. Step 1 done.

Adding the account menu

That afternoon, while working on step 3, I added an account menu to the package. The original decision was no sign-in related screens on the hub, but once the account center existed it felt awkward that the brand's front page did not show whether I was signed in or where the account center was. So the hub gets one round button on the right of its header; account screens and payments still stay off the hub. It has to look exactly the same on every site, so it went into the shared package.

  • Signed in: a button with the first letter of the name. Clicking opens a card with the name, the email, "Manage account" and "Log out"
  • Signed out: a person icon. Clicking shows "Log in" and "Sign up"
  • Sites without a server, like the hub: the browser asks the shared API directly who is signed in. If there is no answer within 3 seconds, or it fails, it shows the signed-out state
  • Keyboard navigation: opening it moves Focus to the first link, and Esc or a click outside closes it and returns Focus to the button (Accessibility)

I built a fresh practice site and took 16 shots across signed in / signed out / hub mode × light and dark × desktop and mobile.

VersionWhat changed
v0.1.0The first version pulled out of the hub
v0.2.0Account menu added
v0.2.1Fixed an empty band under the footer on short pages
v0.2.2Sites can choose where the brand logo points. In the account center, clicking the logo goes to the hub

What is left is Font loading. While the Pretendard stylesheet loads, drawing stops for about 0.9 seconds. It is the main reason the account center's sign-in page scored 91 in English and 81–85 in Korean for Lighthouse performance, short of the target of 90. Drawing first without waiting for the font is an open Issue in stairno-ui.

5. Where things stand

DateWhat happened
16 OctoberThe brand name Stairno and the four-site structure settled
17 OctoberFour domains bought. The hub went live. Decided to split accounts and payments into their own project
18 OctoberRoadmap set. Steps 1–3 done, sign-in live. Payments built and first release v0.4.0
19 OctoberAccount center redesign v0.4.1. Payment rehearsal tool
Early hours of 20 OctoberTwo production bugs fixed in a hurry (v0.4.2). Production payment rehearsal: 8 of 10 passed
21 OctoberThe last two scenarios (three failed renewals, mail in both languages) passed. All 10 passed
22 OctoberRehearsal cleanup, shared documents brought in line, pending changes shipped as v0.4.3. Step 4 done

Step 4 is done. The closing day is in section 12 of part 3. Step 5, Labs, is next, but first come the jobs the rehearsal turned up: refund requests in the account center, "keep me signed in", and three bugs found along the way. The plan said 1–2 weeks for sign-in and 2–3 weeks for payments, but the code went in within a day.

The rest of the series: Stairno 1. The plan and the cross-domain sign-in experiment, Stairno 2. Building sign-in and going live and Stairno 3. Building payments.

6. Reflection

The speed meant missing things too, and each post says so openly.