# Scale Walls - Extended Agent & Developer Technical Reference > Complete scale math, surface inventory, ghost sign & cutout compositor specs, iPadOS canvas guardrails, and zero-database Stripe Studio Pass architecture for **Scale Walls** (https://scalewalls.com), published by **1821 LLC** (https://1821apps.com). Last verified: December 2026. ## 1. Publisher & Runtime - **Publisher**: 1821 LLC (Tennessee, United States, https://1821apps.com, support@1821apps.com) - **Runtime**: 100% client-side HTML5 Canvas + self-hosted `pdf-lib` deployed on Cloudflare Pages. - **Privacy**: Design configurations, custom sign text, and cutouts remain in local browser memory and `localStorage`; zero design data is uploaded to servers. ## 2. Locked 7-Scale Brick & CMU Clearance Matrix | Scale Key | Ratio | Brick on Paper (215x65 mm real) | CMU Block on Paper (406x203 mm real) | Default Wall Size | Hobbyist Rule | | :--- | :--- | :--- | :--- | :--- | :--- | | `1:64` | `1 : 64` | `3.36 x 1.02 mm` | `6.34 x 3.17 mm` | `190 x 95 mm` | Hot Wheels castings average 30 to 32 mm wide (~1:60 stance). Garage stalls default to 48 x 95 mm and roll-up bay doors to 52 x 46 mm. | | `HO` | `1 : 87.1` | `2.47 x 0.75 mm` | `4.66 x 2.33 mm` | `185 x 72 mm` | Standard North American HO scale (3.5 mm = 1 ft). 72 mm suits a classic 1.5 to 2 story brick storefront or factory flat. | | `N` | `1 : 160` | `1.34 x 0.41 mm` | `2.54 x 1.27 mm` | `175 x 55 mm` | Mortar line thickness is clamped to >= 1 px at 300 DPI (0.085 mm) so N scale brick courses stay crisp on home inkjets. | | `O` | `1 : 48` | `4.48 x 1.35 mm` | `8.46 x 4.23 mm` | `190 x 125 mm` | Classic 1/4 in = 1 ft O scale railroading and 1:48 quarter-scale architectural structures. | | `1:12` | `1 : 12` | `17.92 x 5.42 mm` | `33.83 x 16.92 mm` | `170 x 203 mm` | Standard 8 inch (203 mm) dollhouse room height fits cleanly on portrait US Letter or A4 sheets with 5 mm foamcore wrap tabs. | | `1:24` | `1 : 24` | `8.96 x 2.71 mm` | `16.92 x 8.46 mm` | `185 x 120 mm` | Popular for half-scale room boxes and 1:24 plastic or diecast model car garage bays. | | `28mm` | `1 : 56` | `3.84 x 1.16 mm` | `7.25 x 3.63 mm` | `180 x 65 mm` | Heroic tabletop skirmish proportion sized for 28 to 32 mm miniatures with 65 mm per ruined floor. | ## 3. Paper Formats & iPadOS Safari Memory Guardrails - **US Letter (`letter`)**: `215.9 x 279.4 mm` = `2550 x 3300 px` at 300 DPI (`8.415 MP`) - **A4 (`a4`)**: `210 x 297 mm` = `2480 x 3508 px` at 300 DPI (`8.700 MP`) - Single reusable offscreen export canvas never multiplied by `window.devicePixelRatio`, reset to `1 x 1` in `finally`. ## 4. Stateless Studio Pass API (`functions/api/*`) - `GET /api/config`: Returns active mode (`free_launch_promo` or `paid_15`), `$15` display price, and launch notice. - `POST /api/checkout`: Creates a `$15.00` one-time Stripe Checkout Session. - `GET /api/claim?session_id=...`: Verifies Stripe `payment_status === "paid"` and issues an `HMAC-SHA256` signed `SW1..` token. - `POST /api/restore`: Looks up paid Checkout Sessions by customer email and re-issues a signed token without a database. - `POST /api/verify`: Verifies `SW1` signature server-side.