Phosphor icons and the real store marks

Desktop icons move from lucide to Phosphor (@phosphor-icons/react, per-icon imports, regular weight; fill for the
active nav item, notices and rating stars). The site's icons and the fixture art use Phosphor's own files from
@phosphor-icons/core. App Store and Google Play are shown with their marks from simple-icons (CC0 data), vendored
unchanged by tools/site-icons.ts and rendered as a mask in the neutral text colour next to the store's name; the
trademark note is in docs/desktop.md and the site footer. lucide-react and lucide-static removed. The
no-hand-written-SVG guard allows only the vendored files (byte-equal to their packages) and per-icon Phosphor
imports. Site stylesheet ?v= bumped.
This commit is contained in:
CRTkafa 2026-10-11 01:00:46 +00:00
parent 2f0ce41642
commit 209b8d0559
62 changed files with 395 additions and 278 deletions

View file

@ -2,6 +2,12 @@
## Unreleased
- Icons: Phosphor replaces lucide (desktop: `@phosphor-icons/react` per-icon imports, "regular" weight, "fill" for the
active nav item and notices; site and fixture art: Phosphor's own files). Store marks are now the real App Store and
Google Play logos from simple-icons, in the neutral text colour next to the store's name; the trademark note is in
docs/desktop.md and the site footer. The no-hand-written-SVG guard allows only the vendored files, byte-equal to
their packages.
- Fixes from a guarded read-only run of the Play paths that need POST / DELETE (edit insert and delete, Reporting API
`:query`, nothing else let through) against a live account:
- `health` / `validate`: Play's top issues search (`errorIssues:search`) answered 400 "Unsupported timezone": it

View file

@ -29,11 +29,14 @@ Try the screenshot and video pipeline on the demo game without any store account
by hand. Frontmatter is `name` + `description` only.
- **No secrets, no real ids, no personal data** in code, tests, fixtures or examples: use `com.example.*`,
`example.com` and obviously fake values. `bun run ci` runs the scrub.
- **No hand-written SVG.** Charts come from visx, icons from lucide (`lucide-react` in the desktop app; the site's
icons are lucide's own files, vendored by `bun tools/site-icons.ts` into `site/img/icons/` with the licence),
- **No hand-written SVG.** Charts come from visx, icons from Phosphor (`@phosphor-icons/react` in the desktop app, one
per-icon import each; the site's icons are Phosphor's own files from `@phosphor-icons/core`), the App Store and
Google Play marks from simple-icons (vendored with the licences by `bun tools/site-icons.ts` into `site/img/icons/`
and `apps/desktop/src/ui/store-marks/`, byte-equal to the packages),
diagrams from Mermaid (`docs/diagrams/*.mmd`, rendered by `bun tools/diagrams.ts`), the desktop fixtures' art from
`bun tools/fixture-art.ts`. The brand mark and `site/favicon.svg` are brand assets. `tests/no-handmade-svg.test.ts`
fails on new inline `<svg>` / `<path>` drawing in `apps/desktop/src` and `site/*.html`. These libraries are desktop
fails on new inline `<svg>` / `<path>` drawing in `apps/desktop/src` and `site/*.html` and on SVG files that are
not vendored or rendered. These libraries are desktop
dependencies (bundled by Vite) or devDependencies; the CLI package keeps zero runtime dependencies.
- Plain English in docs and messages, short sentences, no marketing words.

View file

@ -16,6 +16,7 @@
"app:build:debug": "bun run sidecar && tauri build --debug --no-bundle"
},
"dependencies": {
"@phosphor-icons/react": "^2.1.10",
"@tauri-apps/api": "^2.12.0",
"@visx/axis": "^4.0.0",
"@visx/curve": "^4.0.0",
@ -26,7 +27,6 @@
"@visx/scale": "^4.0.0",
"@visx/shape": "^4.0.0",
"@visx/tooltip": "^4.0.0",
"lucide-react": "^1.55.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},

View file

@ -166,7 +166,7 @@ export function App({ onTheme }: { onTheme: () => void }) {
</div>
<div className="side-scroll">
<button className="nav" aria-current={current({ screen: 'portfolio' })} onClick={() => go({ screen: 'portfolio' })}>
<Icon name="portfolio" /><span className="grow">{t('nav.portfolio')}</span><span className="count">{visible.length}</span>
<Icon name="portfolio" weight={current({ screen: 'portfolio' }) ? 'fill' : 'regular'} /><span className="grow">{t('nav.portfolio')}</span><span className="count">{visible.length}</span>
</button>
<div className="side-label" id="apps-label"><span>{d.studios.length ? t('nav.studiosLabel') : t('nav.appsLabel')}</span>
<button onClick={() => go({ screen: 'apps' })} aria-label={t('action.addFolder')} title={t('action.addFolder')}><Icon name="plus" /></button>
@ -189,7 +189,7 @@ export function App({ onTheme }: { onTheme: () => void }) {
<div className="side-label"><span>{t('nav.workspace')}</span></div>
{WORKSPACE.map((s, i) => (
<button key={s} className="nav" aria-current={current({ screen: s })} onClick={() => go({ screen: s })} title={`${t(WS_KEY[s])} (${MOD} ${i + 2})`}>
<Icon name={WS_ICON[s]} /><span className="grow">{t(WS_KEY[s])}</span>
<Icon name={WS_ICON[s]} weight={current({ screen: s }) ? 'fill' : 'regular'} /><span className="grow">{t(WS_KEY[s])}</span>
{s === 'accounts' && <span className="count">{d.accounts.length}</span>}
{s === 'ignored' && ignoredCount > 0 && <span className="count">{ignoredCount}</span>}
</button>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

@ -28,7 +28,7 @@ export async function mockListen(event: string, cb: Cb): Promise<() => void> {
const emit = (event: string, payload: unknown) => { for (const cb of listeners.get(event) ?? []) cb(payload); };
const cancelled = new Set<string>();
// ---- icons: PNGs rendered by tools/fixture-art.ts (lucide icons on gradients), served by Vite in dev ----
// ---- icons: PNGs rendered by tools/fixture-art.ts (Phosphor icons on gradients), served by Vite in dev ----
const art = (name: string) => new URL(`./art/${name}.png`, import.meta.url).href;
const ICONS: Record<string, string> = { 'p-prism': art('icon-prism'), 'p-tidy': art('icon-tidy') };

View file

@ -269,9 +269,13 @@ svg { flex: none; }
.chip.ok i { background: var(--ok-solid); } .chip.warn i { background: var(--warn-solid); } .chip.bad i { background: var(--bad-solid); }
.chip.info i { background: var(--info-solid); } .chip.accent i { background: var(--accent-solid); } .chip.neutral i { background: var(--neutral-solid); }
.store-badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.store-badge svg { width: 14px; height: 14px; }
.store-badge svg, .store-badge .store-mark { width: 14px; height: 14px; }
.store-badge .sb-sep { width: 1px; height: 12px; background: var(--line-2); }
.store-badge.off { color: var(--muted); border-style: dashed; background: transparent; }
/* the stores' own marks (simple-icons, vendored in ui/store-marks): a mask in the text colour, never brand colours */
.store-mark { display: inline-block; flex: none; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: none center / contain no-repeat; mask: none center / contain no-repeat; }
.store-mark.sm-appstore { -webkit-mask-image: url(./ui/store-marks/appstore.svg); mask-image: url(./ui/store-marks/appstore.svg); }
.store-mark.sm-googleplay { -webkit-mask-image: url(./ui/store-marks/googleplay.svg); mask-image: url(./ui/store-marks/googleplay.svg); }
.glyph-ios { color: var(--ink); }
.glyph-play { color: var(--ink); }
.tag-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 700; background: var(--neutral-bg); color: var(--neutral-ink); font-variant-numeric: tabular-nums; }
@ -326,7 +330,7 @@ svg { flex: none; }
.tl-head span:first-child { text-align: left; }
.tl-lane { padding: 14px 18px; border-top: 1px solid var(--line); }
.tl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-who svg { width: 18px; height: 18px; }
.tl-who svg, .tl-who .store-mark { width: 18px; height: 18px; }
.tl-who .w1 { font-weight: 640; }
.tl-who .w2 { font-size: var(--t-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-step { position: relative; display: grid; justify-items: center; gap: 6px; min-height: 52px; align-content: center; }
@ -465,7 +469,7 @@ svg { flex: none; }
.li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .li-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.li .li-icon svg { width: 15px; height: 15px; }
.li .li-icon svg, .li .li-icon .store-mark { width: 15px; height: 15px; }
.li .li-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li .li-title { font-weight: 600; }
.li .li-sub { color: var(--muted); font-size: var(--t-meta); }
@ -499,7 +503,7 @@ button.li:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px;
.empty .actions { margin-top: 10px; justify-content: center; }
.empty.compact { padding: 24px 16px; }
.empty.compact .illo { --illo-size: 80px; }
/* empty state art (ui/illustrations.tsx): a lucide icon on a soft tile with rings behind it and an optional badge */
/* empty state art (ui/illustrations.tsx): a Phosphor icon on a soft tile with rings behind it and an optional badge */
.illo { --illo-size: 112px; width: calc(var(--illo-size) * 1.5); height: var(--illo-size); display: grid; place-items: center; position: relative;
background: radial-gradient(circle at 50% 50%, var(--illo-1) 0 30%, transparent 30.5%), radial-gradient(circle at 50% 50%, transparent 0 41%, var(--illo-2) 41.5% 42.5%, transparent 43%); }
.illo-tile { width: calc(var(--illo-size) * .54); height: calc(var(--illo-size) * .54); border-radius: 28%; display: grid; place-items: center; position: relative;
@ -648,7 +652,7 @@ select.input { padding-right: 8px; }
.wz-body .illo { margin-bottom: -6px; }
h2[tabindex="-1"]:focus, h2[tabindex="-1"]:focus-visible { outline: none; }
.acc-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; }
.acc-pick svg { width: 15px; height: 15px; color: var(--muted); }
.acc-pick svg, .acc-pick .store-mark { width: 15px; height: 15px; color: var(--muted); }
.li .app-icon { width: 40px; height: 40px; border-radius: 10px; }
.app-head .store-badge { height: 30px; padding-right: 4px; }
.app-head .store-badge .chip { height: 22px; }
@ -722,7 +726,7 @@ h2[tabindex="-1"]:focus, h2[tabindex="-1"]:focus-visible { outline: none; }
.acct.is-ignored .acct-row { opacity: .62; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.acct-glyph { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bg-sunken); border: 1px solid var(--line); }
.acct-glyph svg { width: 16px; height: 16px; }
.acct-glyph svg, .acct-glyph .store-mark { width: 16px; height: 16px; }
.acct-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.acct-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-edit { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; padding: 0 18px 14px 64px; }
@ -780,7 +784,7 @@ h2[tabindex="-1"]:focus, h2[tabindex="-1"]:focus-visible { outline: none; }
.act-col .btn { width: 100%; justify-content: flex-start; }
.act-col select.input-sm { width: 100%; max-width: none; }
.act-head { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: var(--t-meta); color: var(--ink-2); margin-bottom: 2px; }
.act-head svg { width: 15px; height: 15px; }
.act-head svg, .act-head .store-mark { width: 15px; height: 15px; }
.act-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.act-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.roll-foot { display: grid; gap: 8px; }
@ -827,7 +831,7 @@ textarea.input { height: auto; padding: 8px 10px; line-height: 1.45; resize: ver
.px-matrix tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent-solid); }
.px-stack { display: grid; gap: 3px; justify-items: start; }
.px-line { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-meta); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-line svg { width: 12px; height: 12px; color: var(--muted); }
.px-line svg, .px-line .store-mark { width: 12px; height: 12px; color: var(--muted); }
.px-line.auto { color: var(--muted); font-weight: 500; }
/* app info */

View file

@ -1,44 +1,111 @@
// Icons come from lucide (lucide-react, ISC licence, https://lucide.dev): one named import per icon so Vite
// tree-shakes the rest. The names below are the app's own (call sites use <Icon name="..." />); each maps to its
// closest lucide icon. Decorative unless a title is given. No hand-drawn SVG in the app: see docs/desktop.md.
import {
Activity, Apple, ArrowLeft, ArrowRight, Bell, Box, Building2, Check, ChevronDown, ChevronRight, CircleAlert, CircleHelp,
ClipboardCheck, Clock, Cloud, Coins, Command, Copy, Database, Dot, Download, ExternalLink, Eye, EyeOff, FileText,
FlaskConical, Folder, FolderPlus, Funnel, Globe, Grid3x2, Image, Info, Key, Keyboard, Layers, LayoutGrid, Link, Lock,
type LucideIcon, MessageSquare, Moon, Package, Pause, Pencil, Play, Plus, RefreshCw, Rocket, RotateCcw, Search, Send,
SendHorizontal, Settings, Share, ShieldCheck, SlidersHorizontal, Smartphone, Sparkles, SquareTerminal, Star, Sun, Tag,
Trash2, TrendingUp, TriangleAlert, Unlink, Upload, Users, WandSparkles, X,
} from 'lucide-react';
// Icons come from Phosphor (@phosphor-icons/react, MIT, https://phosphoricons.com): one per-icon import each
// (dist/csr/<Name>) so Vite bundles only the icons used. The names below are the app's own (call sites use
// <Icon name="..." />); each maps to its closest Phosphor icon. One weight everywhere ("regular"); "fill" only where it
// marks state (the active nav item, notices). Decorative unless a title is given. No hand-drawn SVG in the app: see
// docs/desktop.md.
import { ArrowCounterClockwiseIcon } from '@phosphor-icons/react/dist/csr/ArrowCounterClockwise';
import { ArrowLeftIcon } from '@phosphor-icons/react/dist/csr/ArrowLeft';
import { ArrowRightIcon } from '@phosphor-icons/react/dist/csr/ArrowRight';
import { ArrowSquareOutIcon } from '@phosphor-icons/react/dist/csr/ArrowSquareOut';
import { ArrowsClockwiseIcon } from '@phosphor-icons/react/dist/csr/ArrowsClockwise';
import { BellIcon } from '@phosphor-icons/react/dist/csr/Bell';
import { BuildingsIcon } from '@phosphor-icons/react/dist/csr/Buildings';
import { CaretDownIcon } from '@phosphor-icons/react/dist/csr/CaretDown';
import { CaretRightIcon } from '@phosphor-icons/react/dist/csr/CaretRight';
import { ChatTextIcon } from '@phosphor-icons/react/dist/csr/ChatText';
import { CheckIcon } from '@phosphor-icons/react/dist/csr/Check';
import { ClipboardTextIcon } from '@phosphor-icons/react/dist/csr/ClipboardText';
import { ClockIcon } from '@phosphor-icons/react/dist/csr/Clock';
import { CloudIcon } from '@phosphor-icons/react/dist/csr/Cloud';
import { CoinsIcon } from '@phosphor-icons/react/dist/csr/Coins';
import { CommandIcon } from '@phosphor-icons/react/dist/csr/Command';
import { CopyIcon } from '@phosphor-icons/react/dist/csr/Copy';
import { CubeIcon } from '@phosphor-icons/react/dist/csr/Cube';
import { DatabaseIcon } from '@phosphor-icons/react/dist/csr/Database';
import { DeviceMobileIcon } from '@phosphor-icons/react/dist/csr/DeviceMobile';
import { DotIcon } from '@phosphor-icons/react/dist/csr/Dot';
import { DownloadSimpleIcon } from '@phosphor-icons/react/dist/csr/DownloadSimple';
import { ExportIcon } from '@phosphor-icons/react/dist/csr/Export';
import { EyeIcon } from '@phosphor-icons/react/dist/csr/Eye';
import { EyeSlashIcon } from '@phosphor-icons/react/dist/csr/EyeSlash';
import { FileTextIcon } from '@phosphor-icons/react/dist/csr/FileText';
import { FlaskIcon } from '@phosphor-icons/react/dist/csr/Flask';
import { FolderIcon } from '@phosphor-icons/react/dist/csr/Folder';
import { FolderPlusIcon } from '@phosphor-icons/react/dist/csr/FolderPlus';
import { FunnelIcon } from '@phosphor-icons/react/dist/csr/Funnel';
import { GearSixIcon } from '@phosphor-icons/react/dist/csr/GearSix';
import { GlobeIcon } from '@phosphor-icons/react/dist/csr/Globe';
import { GridFourIcon } from '@phosphor-icons/react/dist/csr/GridFour';
import { ImageIcon } from '@phosphor-icons/react/dist/csr/Image';
import { InfoIcon } from '@phosphor-icons/react/dist/csr/Info';
import { KeyIcon } from '@phosphor-icons/react/dist/csr/Key';
import { KeyboardIcon } from '@phosphor-icons/react/dist/csr/Keyboard';
import { LinkIcon } from '@phosphor-icons/react/dist/csr/Link';
import { LinkBreakIcon } from '@phosphor-icons/react/dist/csr/LinkBreak';
import { LockIcon } from '@phosphor-icons/react/dist/csr/Lock';
import { MagicWandIcon } from '@phosphor-icons/react/dist/csr/MagicWand';
import { MagnifyingGlassIcon } from '@phosphor-icons/react/dist/csr/MagnifyingGlass';
import { MoonIcon } from '@phosphor-icons/react/dist/csr/Moon';
import { PackageIcon } from '@phosphor-icons/react/dist/csr/Package';
import { PaperPlaneRightIcon } from '@phosphor-icons/react/dist/csr/PaperPlaneRight';
import { PaperPlaneTiltIcon } from '@phosphor-icons/react/dist/csr/PaperPlaneTilt';
import { PauseIcon } from '@phosphor-icons/react/dist/csr/Pause';
import { PencilSimpleIcon } from '@phosphor-icons/react/dist/csr/PencilSimple';
import { PlayIcon } from '@phosphor-icons/react/dist/csr/Play';
import { PlusIcon } from '@phosphor-icons/react/dist/csr/Plus';
import { PulseIcon } from '@phosphor-icons/react/dist/csr/Pulse';
import { QuestionIcon } from '@phosphor-icons/react/dist/csr/Question';
import { RocketLaunchIcon } from '@phosphor-icons/react/dist/csr/RocketLaunch';
import { ShieldCheckIcon } from '@phosphor-icons/react/dist/csr/ShieldCheck';
import { SlidersHorizontalIcon } from '@phosphor-icons/react/dist/csr/SlidersHorizontal';
import { SparkleIcon } from '@phosphor-icons/react/dist/csr/Sparkle';
import { SquaresFourIcon } from '@phosphor-icons/react/dist/csr/SquaresFour';
import { StackIcon } from '@phosphor-icons/react/dist/csr/Stack';
import { StarIcon } from '@phosphor-icons/react/dist/csr/Star';
import { SunIcon } from '@phosphor-icons/react/dist/csr/Sun';
import { TagIcon } from '@phosphor-icons/react/dist/csr/Tag';
import { TerminalWindowIcon } from '@phosphor-icons/react/dist/csr/TerminalWindow';
import { TrashIcon } from '@phosphor-icons/react/dist/csr/Trash';
import { TrendUpIcon } from '@phosphor-icons/react/dist/csr/TrendUp';
import { UploadSimpleIcon } from '@phosphor-icons/react/dist/csr/UploadSimple';
import { UsersIcon } from '@phosphor-icons/react/dist/csr/Users';
import { WarningIcon } from '@phosphor-icons/react/dist/csr/Warning';
import { WarningCircleIcon } from '@phosphor-icons/react/dist/csr/WarningCircle';
import { XIcon } from '@phosphor-icons/react/dist/csr/X';
import type { Icon as PhosphorIcon, IconWeight } from '@phosphor-icons/react/lib';
const ICONS = {
portfolio: LayoutGrid, folder: Folder, folderPlus: FolderPlus, key: Key, package: Package, settings: Settings,
search: Search, refresh: RefreshCw, chevronRight: ChevronRight, chevronDown: ChevronDown, plus: Plus, x: X, check: Check,
alert: TriangleAlert, alertCircle: CircleAlert, info: Info, external: ExternalLink, download: Download, trash: Trash2,
star: Star, message: MessageSquare, activity: Activity, tag: Tag, text: FileText, plane: Send, rocket: Rocket,
shield: ShieldCheck, clock: Clock, command: Command, globe: Globe, moon: Moon, sun: Sun, terminal: SquareTerminal,
copy: Copy, image: Image, users: Users, layers: Layers, sparkle: Sparkles, pause: Pause, cube: Box,
arrowRight: ArrowRight, arrowLeft: ArrowLeft, dot: Dot, phone: Smartphone, keyboard: Keyboard, database: Database,
wand: WandSparkles, building: Building2, eye: Eye, eyeOff: EyeOff, link: Link, unlink: Unlink, bell: Bell,
filter: Funnel, play: Play, send: SendHorizontal, edit: Pencil, upload: Upload, sliders: SlidersHorizontal,
rotate: RotateCcw, cloud: Cloud, coins: Coins, chart: TrendingUp, flask: FlaskConical, grid: Grid3x2,
clipboard: ClipboardCheck, share: Share, lock: Lock, question: CircleHelp,
} satisfies Record<string, LucideIcon>;
portfolio: SquaresFourIcon, folder: FolderIcon, folderPlus: FolderPlusIcon, key: KeyIcon, package: PackageIcon,
settings: GearSixIcon, search: MagnifyingGlassIcon, refresh: ArrowsClockwiseIcon, chevronRight: CaretRightIcon,
chevronDown: CaretDownIcon, plus: PlusIcon, x: XIcon, check: CheckIcon, alert: WarningIcon, alertCircle: WarningCircleIcon,
info: InfoIcon, external: ArrowSquareOutIcon, download: DownloadSimpleIcon, trash: TrashIcon, star: StarIcon,
message: ChatTextIcon, activity: PulseIcon, tag: TagIcon, text: FileTextIcon, plane: PaperPlaneTiltIcon,
rocket: RocketLaunchIcon, shield: ShieldCheckIcon, clock: ClockIcon, command: CommandIcon, globe: GlobeIcon, moon: MoonIcon,
sun: SunIcon, terminal: TerminalWindowIcon, copy: CopyIcon, image: ImageIcon, users: UsersIcon, layers: StackIcon,
sparkle: SparkleIcon, pause: PauseIcon, cube: CubeIcon, arrowRight: ArrowRightIcon, arrowLeft: ArrowLeftIcon, dot: DotIcon,
phone: DeviceMobileIcon, keyboard: KeyboardIcon, database: DatabaseIcon, wand: MagicWandIcon, building: BuildingsIcon,
eye: EyeIcon, eyeOff: EyeSlashIcon, link: LinkIcon, unlink: LinkBreakIcon, bell: BellIcon, filter: FunnelIcon, play: PlayIcon,
send: PaperPlaneRightIcon, edit: PencilSimpleIcon, upload: UploadSimpleIcon, sliders: SlidersHorizontalIcon,
rotate: ArrowCounterClockwiseIcon, cloud: CloudIcon, coins: CoinsIcon, chart: TrendUpIcon, flask: FlaskIcon, grid: GridFourIcon,
clipboard: ClipboardTextIcon, share: ExportIcon, lock: LockIcon, question: QuestionIcon,
} satisfies Record<string, PhosphorIcon>;
export type IconName = keyof typeof ICONS;
export type { IconWeight };
export function Icon({ name, className, title }: { name: IconName; className?: string; title?: string }) {
export function Icon({ name, className, title, weight = 'regular' }: { name: IconName; className?: string; title?: string; weight?: IconWeight }) {
const C = ICONS[name];
return title
? <C className={className} strokeWidth={1.75} role="img" aria-label={title}><title>{title}</title></C>
: <C className={className} strokeWidth={1.75} aria-hidden="true" />;
? <C className={className} weight={weight} role="img" aria-label={title}><title>{title}</title></C>
: <C className={className} weight={weight} aria-hidden="true" />;
}
/** Store marks without the stores' logos (Apple publishes no licence for its App Store icon in third-party tools, and
* Google's Play guidelines cover badges): lucide's generic apple (a fruit, not Apple's logo) for the App Store and
* lucide's play triangle for Google Play. Text next to them always names the store. */
/** The stores' own marks (simple-icons data, CC0; vendored by tools/site-icons.ts into ./store-marks and shown as a
* CSS mask in the text colour, styles.css .store-mark). They only name the store next to its name, in the app's
* neutral ink, never as storebound's own branding. App Store is a trademark of Apple Inc.; Google Play is a trademark
* of Google LLC. */
export function StoreGlyph({ store, className }: { store: 'ios' | 'android'; className?: string }) {
const C = store === 'ios' ? Apple : Play;
return <C className={className} strokeWidth={1.75} aria-hidden="true" />;
return <span className={`store-mark ${store === 'ios' ? 'sm-appstore' : 'sm-googleplay'}${className ? ` ${className}` : ''}`} aria-hidden="true" />;
}
export { Mark } from './brand';

View file

@ -1,24 +1,36 @@
// Empty state art: a lucide icon (lucide-react, ISC) on a soft tile with an optional small badge icon, in the theme's
// tokens (styles.css .illo), the empty-state style of Linear and Vercel. No drawn artwork. Decorative.
import {
Activity, Box, CircleHelp, CloudDownload, FileText, KeyRound, type LucideIcon, MessageSquareText, Package, Plus, Send,
ShieldCheck, Smartphone, Star, Check, Wrench,
} from 'lucide-react';
// Empty state art: a Phosphor icon (@phosphor-icons/react, MIT) on a soft tile with an optional small badge icon, in
// the theme's tokens (styles.css .illo), the empty-state style of Linear and Vercel. No drawn artwork. Decorative.
import { ChatTextIcon } from '@phosphor-icons/react/dist/csr/ChatText';
import { CheckIcon } from '@phosphor-icons/react/dist/csr/Check';
import { CloudArrowDownIcon } from '@phosphor-icons/react/dist/csr/CloudArrowDown';
import { CubeIcon } from '@phosphor-icons/react/dist/csr/Cube';
import { DeviceMobileIcon } from '@phosphor-icons/react/dist/csr/DeviceMobile';
import { FileTextIcon } from '@phosphor-icons/react/dist/csr/FileText';
import { KeyIcon } from '@phosphor-icons/react/dist/csr/Key';
import { PackageIcon } from '@phosphor-icons/react/dist/csr/Package';
import { PaperPlaneTiltIcon } from '@phosphor-icons/react/dist/csr/PaperPlaneTilt';
import { PlusIcon } from '@phosphor-icons/react/dist/csr/Plus';
import { PulseIcon } from '@phosphor-icons/react/dist/csr/Pulse';
import { QuestionIcon } from '@phosphor-icons/react/dist/csr/Question';
import { ShieldCheckIcon } from '@phosphor-icons/react/dist/csr/ShieldCheck';
import { StarIcon } from '@phosphor-icons/react/dist/csr/Star';
import { WrenchIcon } from '@phosphor-icons/react/dist/csr/Wrench';
import type { Icon as PhosphorIcon } from '@phosphor-icons/react/lib';
export type IlloName = 'apps' | 'cloud' | 'reviews' | 'shield' | 'key' | 'plane' | 'pulse' | 'catalog' | 'text' | 'tools' | 'unknown';
const ART: Record<IlloName, [LucideIcon, LucideIcon?]> = {
apps: [Smartphone, Plus],
cloud: [CloudDownload],
reviews: [MessageSquareText, Star],
shield: [ShieldCheck],
key: [KeyRound],
plane: [Send],
pulse: [Activity],
catalog: [Package, Check],
text: [FileText, Check],
tools: [Box, Wrench],
unknown: [CircleHelp],
const ART: Record<IlloName, [PhosphorIcon, PhosphorIcon?]> = {
apps: [DeviceMobileIcon, PlusIcon],
cloud: [CloudArrowDownIcon],
reviews: [ChatTextIcon, StarIcon],
shield: [ShieldCheckIcon],
key: [KeyIcon],
plane: [PaperPlaneTiltIcon],
pulse: [PulseIcon],
catalog: [PackageIcon, CheckIcon],
text: [FileTextIcon, CheckIcon],
tools: [CubeIcon, WrenchIcon],
unknown: [QuestionIcon],
};
export function Illo({ name }: { name: IlloName }) {
@ -26,8 +38,8 @@ export function Illo({ name }: { name: IlloName }) {
return (
<div className="illo" aria-hidden="true" data-illo={name}>
<span className="illo-tile">
<Main strokeWidth={1.6} />
{Badge && <span className="illo-badge"><Badge strokeWidth={2.4} /></span>}
<Main weight="regular" />
{Badge && <span className="illo-badge"><Badge weight="bold" /></span>}
</span>
</div>
);

View file

@ -1,6 +1,6 @@
// Shared UI pieces of the design system (styles.css): chips, store badges, app icons, KPI tiles, bars, sparklines
// (visx, charts.tsx), stars (lucide), notices, skeletons, empty states, segmented controls, cards.
import { Star } from 'lucide-react';
// (visx, charts.tsx), stars (Phosphor), notices, skeletons, empty states, segmented controls, cards.
import { StarIcon } from '@phosphor-icons/react/dist/csr/Star';
import type { ReactNode } from 'react';
import type { ReleasePhase, StoreRelease } from '../api';
import { t } from '../i18n';
@ -82,14 +82,14 @@ export { Sparkline } from './charts';
export function Stars({ n, label }: { n: number; label?: string }) {
return (
<span className="stars" role="img" aria-label={label ?? t('reviews.starsAria', { count: n })}>
{[1, 2, 3, 4, 5].map(i => <Star key={i} className={i <= n ? '' : 'off'} fill="currentColor" strokeWidth={0} aria-hidden="true" />)}
{[1, 2, 3, 4, 5].map(i => <StarIcon key={i} className={i <= n ? '' : 'off'} weight="fill" aria-hidden="true" />)}
</span>
);
}
export function Notice({ tone, children, icon, action }: { tone: 'bad' | 'warn' | 'ok' | 'info'; children: ReactNode; icon?: IconName; action?: ReactNode }) {
const ic: IconName = icon ?? (tone === 'bad' ? 'alertCircle' : tone === 'warn' ? 'alert' : tone === 'ok' ? 'check' : 'info');
return <div className={`notice ${tone}`} role={tone === 'bad' ? 'alert' : 'status'}><Icon name={ic} /><div className="grow">{children}</div>{action}</div>;
return <div className={`notice ${tone}`} role={tone === 'bad' ? 'alert' : 'status'}><Icon name={ic} weight="fill" /><div className="grow">{children}</div>{action}</div>;
}
/** A failed read or write in words, with how to fix it when the error is a known one ("errors that say how to fix"). */

View file

@ -0,0 +1,36 @@
Store marks in this folder, copied unchanged by tools/site-icons.ts.
App Store and Google Play marks: simple-icons 16.34.0 (https://simpleicons.org), copied unchanged from
the simple-icons package. The icon data is CC0; the marks are trademarks of Apple Inc. and Google LLC and are used
only to name the store next to its name. storebound is not affiliated with Apple or Google.
# CC0 1.0 Universal
## Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
2. moral rights retained by the original author(s) and/or performer(s);
3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
4. Limitations and Disclaimers.
1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.

View file

@ -0,0 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>App Store</title><path d="M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"/></svg>

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -0,0 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Play</title><path d="M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"/></svg>

After

Width:  |  Height:  |  Size: 439 B

View file

@ -27,9 +27,9 @@ describe('webview rules', () => {
// only api.ts talks to the host
if (!f.endsWith('api.ts')) expect(s, f).not.toMatch(/@tauri-apps\/api/);
}
// runtime deps: Tauri's API, React, and the chart (visx) and icon (lucide) libraries, all bundled by Vite
// runtime deps: Tauri's API, React, and the chart (visx) and icon (Phosphor) libraries, all bundled by Vite
const deps = Object.keys(JSON.parse(src('package.json')).dependencies).sort();
expect(deps.filter(d => !d.startsWith('@visx/'))).toEqual(['@tauri-apps/api', 'lucide-react', 'react', 'react-dom']);
expect(deps.filter(d => !d.startsWith('@visx/'))).toEqual(['@phosphor-icons/react', '@tauri-apps/api', 'react', 'react-dom']);
expect(deps.filter(d => d.startsWith('@visx/')).length).toBeGreaterThan(0);
});
test('the confirm token and credentials never appear in the webview code', () => {

View file

@ -72,14 +72,20 @@ Types of the protocol: `cli/lib/desktop-protocol.ts`; pure portfolio logic: `cli
baseline, listing-change markers and a crosshair tooltip with the real values; Health's crash / ANR series against
the bad behavior threshold (crosshair + tooltip, arrow keys when focused); the portfolio's compact sparklines; the
rollout / phased release bar. Widths follow the container (`useParentSize`), colours are the theme tokens, nothing
animates. Icons are lucide (`lucide-react`, ISC), one named import each; `src/ui/icons.tsx` maps the app's icon names
to them. Store marks are generic lucide icons (an apple, a play triangle), not the stores' logos: simple-icons has
both logos (CC0 data), but Apple and Google restrict their marks, so that is an owner decision. Empty states
(`src/ui/illustrations.tsx`) are a lucide icon on a token-coloured tile with an optional badge icon, no artwork.
The fixtures' app icons and screenshot stand-ins are PNGs from `bun tools/fixture-art.ts` (lucide icons on CSS
gradients, photographed by Chromium). The brand mark (`src/ui/brand.tsx`, like `site/favicon.svg`) is the one
inline SVG left: a brand asset. Bundle cost: about +97 kB minified, +31 kB gzip (visx with d3-scale / d3-shape and
@visx/text for the axes, plus the lucide icons used).
animates. Icons are Phosphor (`@phosphor-icons/react`, MIT), one per-icon import each
(`@phosphor-icons/react/dist/csr/<Name>`, so only the icons used are bundled); `src/ui/icons.tsx` maps the app's icon
names to them. One weight, "regular"; "fill" only marks state (the active nav item, notices, rating stars). Store
marks are the stores' own logos from simple-icons (CC0 data), vendored unchanged into `src/ui/store-marks/` by
`bun tools/site-icons.ts` and shown as a CSS mask in the neutral text colour, always next to the store's name. They
identify the store only: storebound is not affiliated with Apple or Google, and the marks are never styled as its
own branding. App Store is a trademark of Apple Inc.; Google Play is a trademark of Google LLC. Empty states
(`src/ui/illustrations.tsx`) are a Phosphor icon on a token-coloured tile with an optional bold badge icon, no
artwork.
The fixtures' app icons and screenshot stand-ins are PNGs from `bun tools/fixture-art.ts` (Phosphor "fill" icons
on CSS gradients, photographed by Chromium). The brand mark (`src/ui/brand.tsx`, like `site/favicon.svg`) is the one
inline SVG left: a brand asset. Bundle cost: about +97 kB minified, +31 kB gzip for visx (d3-scale / d3-shape and
@visx/text for the axes). The Phosphor icons cost about 168 kB minified / 41 kB gzip more than the lucide set they
replaced (each per-icon module carries all six weights; 864 kB / 247 kB gzip for the whole webview script).
## Studios, accounts and store-only apps (D3)

View file

@ -71,8 +71,8 @@
},
"devDependencies": {
"@mermaid-js/mermaid-cli": "12.0.0",
"@phosphor-icons/core": "2.1.1",
"@types/bun": "1.3.0",
"lucide-static": "1.55.0",
"playwright": "1.55.0",
"playwright-core": "1.55.0",
"simple-icons": "16.34.0",

View file

@ -113,7 +113,7 @@
<svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor"/><path d="M16 7v12M10.5 12.5 16 7l5.5 5.5" fill="none" stroke="var(--mark-ink)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 18v5.5h16V18" fill="none" stroke="var(--mark-ink)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span>storebound</span>
</a>
<p class="fine">MIT · made by CRTkafa · not affiliated with Google or Apple.</p>
<p class="fine">MIT · made by CRTkafa · not affiliated with Google or Apple.<br>App Store is a trademark of Apple Inc.; Google Play is a trademark of Google LLC.</p>
</div>
<nav aria-label="Footer">
<a href="https://git.crt.fyi/CRT/storebound/src/branch/main/docs/desktop.md" target="_blank" rel="noopener">desktop docs<span class="ext" aria-hidden="true">↗</span><span class="sr-only"> (opens in a new tab)</span></a>

View file

@ -1,46 +1,62 @@
Icons in this folder: Lucide 1.55.0 (https://lucide.dev), copied unchanged from the lucide-static
package by tools/site-icons.ts.
Icons in this folder, copied unchanged by tools/site-icons.ts:
ISC License
Phosphor 2.1.1 (https://phosphoricons.com), regular weight, from the @phosphor-icons/core
package.
Copyright (c) 2026 Lucide Icons and Contributors
MIT License
Copyright (c) 2023 Phosphor Icons
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
App Store and Google Play marks: simple-icons 16.34.0 (https://simpleicons.org), copied unchanged from
the simple-icons package. The icon data is CC0; the marks are trademarks of Apple Inc. and Google LLC and are used
only to name the store next to its name. storebound is not affiliated with Apple or Google.
---
# CC0 1.0 Universal
The following Lucide icons are derived from the Feather project:
## Statement of Purpose
airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
The MIT License (MIT) (for the icons listed above)
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
Copyright (c) 2013-present Cole Bemis
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
2. moral rights retained by the original author(s) and/or performer(s);
3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
4. Limitations and Disclaimers.
1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.

View file

@ -0,0 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>App Store</title><path d="M8.8086 14.9194l6.1107-11.0368c.0837-.1513.1682-.302.2437-.4584.0685-.142.1267-.2854.1646-.4403.0803-.3259.0588-.6656-.066-.9767-.1238-.3095-.3417-.5678-.6201-.7355a1.4175 1.4175 0 0 0-.921-.1924c-.3207.043-.6135.1935-.8443.4288-.1094.1118-.1996.2361-.2832.369-.092.1463-.175.2979-.259.4492l-.3864.6979-.3865-.6979c-.0837-.1515-.1667-.303-.2587-.4492-.0837-.1329-.1739-.2572-.2835-.369-.2305-.2353-.5233-.3857-.844-.429a1.4181 1.4181 0 0 0-.921.1926c-.2784.1677-.4964.426-.6203.7355-.1246.311-.1461.6508-.066.9767.038.155.0962.2984.1648.4403.0753.1564.1598.307.2437.4584l1.248 2.2543-4.8625 8.7825H2.0295c-.1676 0-.3351-.0007-.5026.0092-.1522.009-.3004.0284-.448.0714-.3108.0906-.5822.2798-.7783.548-.195.2665-.3006.5929-.3006.9279 0 .3352.1057.6612.3006.9277.196.2683.4675.4575.7782.548.1477.043.296.0623.4481.0715.1675.01.335.009.5026.009h13.0974c.0171-.0357.059-.1294.1-.2697.415-1.4151-.6156-2.843-2.0347-2.843zM3.113 18.5418l-.7922 1.5008c-.0818.1553-.1644.31-.2384.4705-.067.1458-.124.293-.1611.452-.0785.3346-.0576.6834.0645 1.0029.1212.3175.3346.583.607.7549.2727.172.5891.2416.9013.1975.3139-.044.6005-.1986.8263-.4402.1072-.1148.1954-.2424.2772-.3787.0902-.1503.1714-.3059.2535-.4612L6 19.4636c-.0896-.149-.9473-1.4704-2.887-.9218m20.5861-3.0056a1.4707 1.4707 0 0 0-.779-.5407c-.1476-.0425-.2961-.0616-.4483-.0705-.1678-.0099-.3352-.0091-.503-.0091H18.648l-4.3891-7.817c-.6655.7005-.9632 1.485-1.0773 2.1976-.1655 1.0333.0367 2.0934.546 3.0004l5.2741 9.3933c.084.1494.167.299.2591.4435.0837.131.1739.2537.2836.364.231.2323.5238.3809.8449.4232.3192.0424.643-.0244.9217-.1899.2784-.1653.4968-.4204.621-.7257.1246-.3072.146-.6425.0658-.9641-.0381-.1529-.0962-.2945-.165-.4346-.0753-.1543-.1598-.303-.2438-.4524l-1.216-2.1662h1.596c.1677 0 .3351.0009.5029-.009.1522-.009.3007-.028.4483-.0705a1.4707 1.4707 0 0 0 .779-.5407A1.5386 1.5386 0 0 0 24 16.452a1.539 1.539 0 0 0-.3009-.9158Z"/></svg>

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -1,18 +0,0 @@
<!-- @license lucide-static v1.55.0 - ISC -->
<svg
class="lucide lucide-briefcase-business"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 12h.01" />
<path d="M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2" />
<path d="M22 13a18.15 18.15 0 0 1-20 0" />
<rect width="20" height="14" x="2" y="6" rx="2" />
</svg>

Before

Width:  |  Height:  |  Size: 477 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M216,56H176V48a24,24,0,0,0-24-24H104A24,24,0,0,0,80,48v8H40A16,16,0,0,0,24,72V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V72A16,16,0,0,0,216,56ZM96,48a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM216,72v41.61A184,184,0,0,1,128,136a184.07,184.07,0,0,1-88-22.38V72Zm0,128H40V131.64A200.19,200.19,0,0,0,128,152a200.25,200.25,0,0,0,88-20.37V200ZM104,112a8,8,0,0,1,8-8h32a8,8,0,0,1,0,16H112A8,8,0,0,1,104,112Z"/></svg>

After

Width:  |  Height:  |  Size: 496 B

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"/></svg>

After

Width:  |  Height:  |  Size: 219 B

View file

@ -1,15 +0,0 @@
<!-- @license lucide-static v1.55.0 - ISC -->
<svg
class="lucide lucide-chevron-right"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="m9 18 6-6-6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 321 B

View file

@ -0,0 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Play</title><path d="M22.018 13.298l-3.919 2.218-3.515-3.493 3.543-3.521 3.891 2.202a1.49 1.49 0 0 1 0 2.594zM1.337.924a1.486 1.486 0 0 0-.112.568v21.017c0 .217.045.419.124.6l11.155-11.087L1.337.924zm12.207 10.065l3.258-3.238L3.45.195a1.466 1.466 0 0 0-.946-.179l11.04 10.973zm0 2.067l-11 10.933c.298.036.612-.016.906-.183l13.324-7.54-3.23-3.21z"/></svg>

After

Width:  |  Height:  |  Size: 439 B

View file

@ -1,18 +0,0 @@
<!-- @license lucide-static v1.55.0 - ISC -->
<svg
class="lucide lucide-layout-grid"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="7" height="7" x="3" y="3" rx="1" />
<rect width="7" height="7" x="14" y="3" rx="1" />
<rect width="7" height="7" x="14" y="14" rx="1" />
<rect width="7" height="7" x="3" y="14" rx="1" />
</svg>

Before

Width:  |  Height:  |  Size: 498 B

View file

@ -1,15 +1 @@
<!-- @license lucide-static v1.55.0 - ISC -->
<svg
class="lucide lucide-play"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"/></svg>

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 293 B

Before After
Before After

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"/></svg>

After

Width:  |  Height:  |  Size: 552 B

View file

@ -1,16 +0,0 @@
<!-- @license lucide-static v1.55.0 - ISC -->
<svg
class="lucide lucide-user-round"
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="8" r="5" />
<path d="M20 21a8 8 0 0 0-16 0" />
</svg>

Before

Width:  |  Height:  |  Size: 360 B

1
site/img/icons/user.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"/></svg>

After

Width:  |  Height:  |  Size: 340 B

View file

@ -23,7 +23,7 @@
<meta name="twitter:title" content="storebound · take your app or game from zero to Submit for review">
<meta name="twitter:description" content="For mobile apps and games: app records, in-app products and subscriptions, listings in every language, every questionnaire, privacy, icons, screenshots. One config and your AI coding agent.">
<meta name="twitter:image" content="https://storebound.dev/og.png">
<link rel="stylesheet" href="style.css?v=85dc546">
<link rel="stylesheet" href="style.css?v=f066e1c">
<script>document.documentElement.classList.add('js')</script>
<script src="main.js?v=0ac6422" defer></script>
</head>
@ -56,7 +56,7 @@
<h1>From zero to <span class="hl">Submit for&nbsp;review</span> on both app stores.</h1>
<p class="lede">Your AI coding agent sets up Google Play and the App Store for your app or game: records, products, listings, forms and store art. Dry runs first. <strong>The Submit click stays yours.</strong></p>
<div class="ctas">
<a class="btn btn-primary" href="#start">Get started<span class="ic ic-chevron-right" aria-hidden="true"></span></a>
<a class="btn btn-primary" href="#start">Get started<span class="ic ic-caret-right" aria-hidden="true"></span></a>
<a class="btn btn-ghost" href="#how">How it works</a>
</div>
<div class="install" role="group" aria-label="Install command">
@ -300,7 +300,7 @@
<li><code>.storebound/</code><span>your keys, gitignored</span></li>
</ul>
<p class="pv-note">Needs <a href="https://bun.sh" target="_blank" rel="noopener">Bun<span class="ext" aria-hidden="true">↗</span><span class="sr-only"> (opens in a new tab)</span></a> 1.1+, plus <code>ffmpeg</code> for icons, screenshots and video.</p>
<div class="st-foot" hidden><span>Step 1 of 5</span><button class="st-next" type="button" data-next="1">Next: Describe the app once<span class="ic ic-chevron-right" aria-hidden="true"></span></button></div>
<div class="st-foot" hidden><span>Step 1 of 5</span><button class="st-next" type="button" data-next="1">Next: Describe the app once<span class="ic ic-caret-right" aria-hidden="true"></span></button></div>
</div>
</li>
@ -327,7 +327,7 @@
<pre><code><span class="p">$</span> bunx storebound check</code></pre>
</div>
<p class="pv-note">Store text lives next to it in <code>store/listing.md</code> and <code>store/appstore.md</code>, one section per language.</p>
<div class="st-foot" hidden><span>Step 2 of 5</span><button class="st-next" type="button" data-next="2">Next: Add your store keys<span class="ic ic-chevron-right" aria-hidden="true"></span></button></div>
<div class="st-foot" hidden><span>Step 2 of 5</span><button class="st-next" type="button" data-next="2">Next: Add your store keys<span class="ic ic-caret-right" aria-hidden="true"></span></button></div>
</div>
</li>
@ -347,7 +347,7 @@
}</code></pre>
</div>
<p class="pv-note">A Play service account and an App Store Connect API key. Env vars work too. Never your password, never committed.</p>
<div class="st-foot" hidden><span>Step 3 of 5</span><button class="st-next" type="button" data-next="3">Next: Connect your agent, ask in plain words<span class="ic ic-chevron-right" aria-hidden="true"></span></button></div>
<div class="st-foot" hidden><span>Step 3 of 5</span><button class="st-next" type="button" data-next="3">Next: Connect your agent, ask in plain words<span class="ic ic-caret-right" aria-hidden="true"></span></button></div>
</div>
</li>
@ -367,7 +367,7 @@
<li><span>Make store screenshots in 14 languages</span><button class="copy" type="button" data-copy="Make store screenshots in 14 languages" aria-label="Copy prompt: Make store screenshots in 14 languages">Copy</button></li>
<li><span>What still blocks my submission?</span><button class="copy" type="button" data-copy="What still blocks my submission?" aria-label="Copy prompt: What still blocks my submission?">Copy</button></li>
</ul>
<div class="st-foot" hidden><span>Step 4 of 5</span><button class="st-next" type="button" data-next="4">Next: Zero blockers, then you submit<span class="ic ic-chevron-right" aria-hidden="true"></span></button></div>
<div class="st-foot" hidden><span>Step 4 of 5</span><button class="st-next" type="button" data-next="4">Next: Zero blockers, then you submit<span class="ic ic-caret-right" aria-hidden="true"></span></button></div>
</div>
</li>
@ -386,7 +386,7 @@
<li><b>Fix, run again, until zero</b><span>read-only, so it is safe to run as often as you like</span></li>
<li class="gate-you"><b>You press Submit for review</b><span>and Send changes for review on Play. Never the agent.</span></li>
</ol>
<div class="st-foot" hidden><span>Step 5 of 5</span><a class="st-next" href="#start">Set it up in five minutes<span class="ic ic-chevron-right" aria-hidden="true"></span></a></div>
<div class="st-foot" hidden><span>Step 5 of 5</span><a class="st-next" href="#start">Set it up in five minutes<span class="ic ic-caret-right" aria-hidden="true"></span></a></div>
</div>
</li>
</ol>
@ -395,15 +395,15 @@
<h3 class="for-h" id="who-h">Built for</h3>
<ul class="for-list" aria-labelledby="who-h">
<li>
<span class="for-ic" aria-hidden="true"><span class="ic ic-user-round"></span></span>
<span class="for-ic" aria-hidden="true"><span class="ic ic-user"></span></span>
<div><b>Indie developers</b><p>One app or a handful: the store chores without a week of console tabs.</p></div>
</li>
<li>
<span class="for-ic" aria-hidden="true"><span class="ic ic-layout-grid"></span></span>
<span class="for-ic" aria-hidden="true"><span class="ic ic-squares-four"></span></span>
<div><b>Studios shipping many titles</b><p>One config per title, the same checks and store art pipeline every time.</p></div>
</li>
<li>
<span class="for-ic" aria-hidden="true"><span class="ic ic-briefcase-business"></span></span>
<span class="for-ic" aria-hidden="true"><span class="ic ic-briefcase"></span></span>
<div><b>Agencies</b><p>Reviewable config in the client's repo. Their keys, their Submit.</p></div>
</li>
</ul>
@ -545,25 +545,25 @@
<p class="sub"><code>init --profile app</code> (the default: utility or productivity app, optional account, analytics, no ads), <code>--profile subscription-app</code> or <code>--profile game</code>. Each profile brings its own config, Data safety and App Privacy answers, declarations, listing and screenshot copy, all marked “edit to match your app”.</p>
<div class="qgrid">
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Subscriptions</h3>
<p>Apple groups and levels, Play base plans, regional prices from one USD base, free trials, promotional offers and offer codes. Plan first, then your yes.</p>
<code class="cmd">apple subscriptions · play subscriptions</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>One catalog, both stores</h3>
<p>Consumables, non-consumables, non-renewing passes and subscriptions from one list. A parity report shows what is missing, mismatched or priced differently per region.</p>
<code class="cmd">catalog diff</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Review access</h3>
<p>A demo account for the reviewer, kept only in <code>.storebound/</code>, sent to App Review masked; the Play App access answer prepared.</p>
<code class="cmd">apple review-details</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-local">local</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-local">local</span></div>
<h3>Account deletion</h3>
<p>Apple 5.1.1(v) in-app deletion and Play's delete-account page: in the config, the review notes and the checks.</p>
<code class="cmd">check · validate</code>
@ -579,37 +579,37 @@
<p class="sub"><code>init</code> gives you prepared answers (<code>store/declarations.md</code>, <code>store/app-privacy.md</code>), per profile: a utility app with an account, a subscription app, or a free-to-play game with ads and IAP. Change what does not match your app; the agent asks you whenever the code does not prove an answer.</p>
<div class="qgrid">
<article class="q">
<div class="q-top"><span class="store">Google Play</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-googleplay" aria-hidden="true"></span>Google Play</span><span class="tag t-api">API</span></div>
<h3>Data safety</h3>
<p>The whole form from <code>dataSafety</code> in the config, imported as CSV through the API. The import replaces the form, so the config is the single truth.</p>
<code class="cmd">play data-safety</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Google Play</span><span class="tag t-ui">UI</span></div>
<div class="q-top"><span class="store"><span class="ic ic-googleplay" aria-hidden="true"></span>Google Play</span><span class="tag t-ui">UI</span></div>
<h3>IARC content rating</h3>
<p>No public API. The <code>store-declarations</code> skill has the exact clicks and the prepared answers; your agent fills it in while you watch, or you copy them in.</p>
<code class="cmd">store-declarations</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Google Play</span><span class="tag t-ui">UI</span></div>
<div class="q-top"><span class="store"><span class="ic ic-googleplay" aria-hidden="true"></span>Google Play</span><span class="tag t-ui">UI</span></div>
<h3>Target audience and content</h3>
<p>Walked through by the skill, together with ads, advertising ID, app access and the government, financial, health and news cards.</p>
<code class="cmd">store-declarations</code>
</article>
<article class="q">
<div class="q-top"><span class="store">App Store</span><span class="tag t-ui">UI</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span>App Store</span><span class="tag t-ui">UI</span></div>
<h3>App Privacy labels</h3>
<p>From <code>store/app-privacy.md</code>, entered in App Store Connect, then <strong>Publish</strong>: saved labels that are not published are a classic blocker.</p>
<code class="cmd">store-declarations</code>
</article>
<article class="q">
<div class="q-top"><span class="store">App Store</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span>App Store</span><span class="tag t-api">API</span></div>
<h3>Age rating</h3>
<p>The age rating declaration through the API, together with categories, content rights, Free price and availability.</p>
<code class="cmd">apple appinfo</code>
</article>
<article class="q">
<div class="q-top"><span class="store">App Store</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span>App Store</span><span class="tag t-api">API</span></div>
<h3>Export compliance</h3>
<p>The answer comes from <code>apple.usesNonExemptEncryption</code> in your config, never guessed. When it is yes, the <code>export-compliance</code> skill covers the documentation.</p>
<code class="cmd">apple encryption</code>
@ -676,37 +676,37 @@
<p class="sub">Drafts and dry runs by default; anything that reaches users or money waits for your yes.</p>
<div class="qgrid">
<article class="q">
<div class="q-top"><span class="store">App Store</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span>App Store</span><span class="tag t-api">API</span></div>
<h3>TestFlight</h3>
<p>Beta groups, testers from a local CSV, builds to groups, What to Test in every language. Beta App Review stays your click.</p>
<code class="cmd">apple testflight</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Crash and ANR health</h3>
<p>Play vitals against the bad-behaviour thresholds and App Store diagnostics, in <code>validate</code> and a weekly report.</p>
<code class="cmd">health --weekly</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Review replies</h3>
<p>Your agent drafts replies to new reviews into local files. Only drafts you mark approved are sent, after a confirmation.</p>
<code class="cmd">reviews draft</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Prices from one CSV</h3>
<p>Every product in every region at once. A diff table first, then your yes; App Store price changes can be dated.</p>
<code class="cmd">prices import</code>
</article>
<article class="q">
<div class="q-top"><span class="store">Both stores</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span><span class="ic ic-googleplay" aria-hidden="true"></span>Both stores</span><span class="tag t-api">API</span></div>
<h3>Analytics snapshots</h3>
<p>Installs, page views and conversion next to your listing changes and experiments. App Store through the API, Play from your monthly reports bucket.</p>
<code class="cmd">analytics compare</code>
</article>
<article class="q">
<div class="q-top"><span class="store">App Store</span><span class="tag t-api">API</span></div>
<div class="q-top"><span class="store"><span class="ic ic-appstore" aria-hidden="true"></span>App Store</span><span class="tag t-api">API</span></div>
<h3>Product page tests</h3>
<p>A/B screenshot sets from your variants into App Store Product Page Optimization. Starting a test stays your click.</p>
<code class="cmd">apple ppo</code>
@ -884,7 +884,7 @@ bunx storebound check <span class="c"># offline: config, copy limits, Data saf
<svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor"/><path d="M16 7v12M10.5 12.5 16 7l5.5 5.5" fill="none" stroke="var(--mark-ink)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 18v5.5h16V18" fill="none" stroke="var(--mark-ink)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span>storebound</span>
</a>
<p class="fine">MIT · made by CRTkafa · not affiliated with Google or Apple.</p>
<p class="fine">MIT · made by CRTkafa · not affiliated with Google or Apple.<br>App Store is a trademark of Apple Inc.; Google Play is a trademark of Google LLC.</p>
</div>
<nav aria-label="Footer">
<a href="https://git.crt.fyi/CRT/storebound" target="_blank" rel="noopener">git repo<span class="ext" aria-hidden="true">↗</span><span class="sr-only"> (opens in a new tab)</span></a>

View file

@ -71,13 +71,16 @@ body {
-webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
/* icons: lucide's own SVG files (site/img/icons, vendored by tools/site-icons.ts) as masks in the text colour */
/* icons: Phosphor's own SVG files and the simple-icons store marks (site/img/icons, vendored by tools/site-icons.ts)
as masks in the text colour */
.ic { display: inline-block; flex: none; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: none center / contain no-repeat; mask: none center / contain no-repeat; }
.ic-chevron-right { -webkit-mask-image: url(img/icons/chevron-right.svg); mask-image: url(img/icons/chevron-right.svg); }
.ic-caret-right { -webkit-mask-image: url(img/icons/caret-right.svg); mask-image: url(img/icons/caret-right.svg); }
.ic-play { -webkit-mask-image: url(img/icons/play.svg); mask-image: url(img/icons/play.svg); }
.ic-user-round { -webkit-mask-image: url(img/icons/user-round.svg); mask-image: url(img/icons/user-round.svg); }
.ic-layout-grid { -webkit-mask-image: url(img/icons/layout-grid.svg); mask-image: url(img/icons/layout-grid.svg); }
.ic-briefcase-business { -webkit-mask-image: url(img/icons/briefcase-business.svg); mask-image: url(img/icons/briefcase-business.svg); }
.ic-user { -webkit-mask-image: url(img/icons/user.svg); mask-image: url(img/icons/user.svg); }
.ic-squares-four { -webkit-mask-image: url(img/icons/squares-four.svg); mask-image: url(img/icons/squares-four.svg); }
.ic-briefcase { -webkit-mask-image: url(img/icons/briefcase.svg); mask-image: url(img/icons/briefcase.svg); }
.ic-appstore { -webkit-mask-image: url(img/icons/appstore.svg); mask-image: url(img/icons/appstore.svg); }
.ic-googleplay { -webkit-mask-image: url(img/icons/googleplay.svg); mask-image: url(img/icons/googleplay.svg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@ -155,7 +158,8 @@ h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 750; max-width: 22em; }
@media (min-width: 980px) { .qgrid { grid-template-columns: repeat(3, 1fr); } }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q-top { display: flex; justify-content: space-between; align-items: center; }
.store { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.store { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.store .ic { width: 13px; height: 13px; }
.q h3 { font-size: 18px; }
.q p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.q .cmd { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; font-size: 12.5px; color: var(--ink); }

View file

@ -1,12 +1,14 @@
// Owner rule: no hand-written SVG. Charts come from visx, icons from lucide, the journey diagram from Mermaid, the
// fixture art from tools/fixture-art.ts. This guard fails on inline SVG drawing in the desktop webview and the site.
// Owner rule: no hand-written SVG. Charts come from visx, icons from Phosphor, the store marks from simple-icons, the
// journey diagram from Mermaid, the fixture art from tools/fixture-art.ts. This guard fails on inline SVG drawing in
// the desktop webview and the site, and on any SVG file that is not a known asset.
// Allowed: the brand mark (apps/desktop/src/ui/brand.tsx, the site's <svg class="mark"> and site/favicon.svg: brand
// assets, owner decision), the <svg> root a visx chart renders into (files that import @visx/*), lucide's own files in
// site/img/icons (byte-equal to lucide-static) and the Mermaid output (docs/img, site/img journey*.svg).
// assets, owner decision), the <svg> root a visx chart renders into (files that import @visx/*), the vendored icon
// files (site/img/icons: Phosphor and simple-icons; apps/desktop/src/ui/store-marks: simple-icons), each byte-equal to
// its package (tools/site-icons.ts), and the Mermaid output (docs/img, site/img journey*.svg).
import { describe, expect, test } from 'bun:test';
import { readdirSync, readFileSync, statSync } from 'node:fs';
import { join, relative } from 'node:path';
import { checkSiteIcons } from '../tools/site-icons';
import { checkSiteIcons, ICON_DIR, MARK_DIR, SITE_ICONS, STORE_MARKS } from '../tools/site-icons';
const ROOT = join(import.meta.dir, '..');
const walk = (dir: string, keep: (f: string) => boolean): string[] => readdirSync(join(ROOT, dir)).flatMap(n => {
@ -32,7 +34,7 @@ export function svgHits(file: string, text: string, opts: { visxRoot?: boolean }
}
describe('no hand-written SVG', () => {
test('desktop webview: charts through visx, icons through lucide, no inline SVG outside the brand mark', () => {
test('desktop webview: charts through visx, icons through Phosphor, no inline SVG outside the brand mark', () => {
const files = walk('apps/desktop/src', n => /\.(tsx?|css|html)$/.test(n));
expect(files.length).toBeGreaterThan(30);
const hits = files.filter(f => !BRAND_FILES.includes(f)).flatMap(f => {
@ -40,6 +42,9 @@ describe('no hand-written SVG', () => {
return svgHits(f, s, { visxRoot: /from '@visx\//.test(s) });
});
expect(hits).toEqual([]);
// icons only through Phosphor's per-icon modules (tree-shaken), never the lucide set or the whole Phosphor index
const bad = files.filter(f => /from '(lucide-react|@phosphor-icons\/react)'/.test(read(f)));
expect(bad).toEqual([]);
});
test('the guard itself catches a drawn icon and an inline SVG image', () => {
@ -49,7 +54,7 @@ describe('no hand-written SVG', () => {
expect(svgHits('x.tsx', '<svg width={w}><circle r={2} /></svg>', { visxRoot: true })).toHaveLength(1);
});
test('site pages: icons are lucide files in site/img/icons; only the brand mark is inline', () => {
test('site pages: icons are vendored Phosphor / simple-icons files; only the brand mark is inline', () => {
const pages = walk('site', n => n.endsWith('.html'));
expect(pages.length).toBeGreaterThanOrEqual(2);
const hits = pages.flatMap(f => svgHits(f, read(f).split(SITE_MARK).join('')));
@ -58,10 +63,15 @@ describe('no hand-written SVG', () => {
for (const f of ['site/style.css', 'site/main.js']) expect(svgHits(f, read(f)), f).toEqual([]);
});
test('SVG files: brand favicon, vendored lucide icons and Mermaid diagrams only', () => {
const svgs = [...walk('site', n => n.endsWith('.svg')), ...walk('docs', n => n.endsWith('.svg'))].map(f => relative(ROOT, join(ROOT, f)));
test('SVG files: brand favicon, vendored Phosphor / simple-icons files and Mermaid diagrams only', () => {
const svgs = ['site', 'docs', 'apps/desktop/src'].flatMap(d => walk(d, n => n.endsWith('.svg'))).map(f => relative(ROOT, join(ROOT, f)));
const vendored = new Set([
...[...SITE_ICONS, ...STORE_MARKS].map(n => relative(ROOT, join(ICON_DIR, `${n}.svg`))),
...STORE_MARKS.map(n => relative(ROOT, join(MARK_DIR, `${n}.svg`))),
]);
// byte equality with the packages is checked by checkSiteIcons (above); here: no other SVG file sneaks in
for (const f of svgs) {
if (f === 'site/favicon.svg' || f.startsWith('site/img/icons/')) continue;
if (f === 'site/favicon.svg' || vendored.has(f)) continue;
expect(f, `${f}: not a known asset`).toMatch(/^(docs|site)\/img\/journey(-tall)?\.svg$/);
expect(read(f), `${f}: render it with bun tools/diagrams.ts`).toContain('aria-roledescription="flowchart-v2"');
}

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bun
// Everything CI runs, in order; stops at the first failure. bun run ci
// `bun test` covers the CLI and the desktop webview (apps/desktop/tests: model, i18n, theme contrast, webview rules),
// and the no-hand-written-SVG guard (tests/no-handmade-svg.test.ts: visx charts, lucide icons, Mermaid diagrams).
// and the no-hand-written-SVG guard (tests/no-handmade-svg.test.ts: visx charts, Phosphor icons, simple-icons store marks, Mermaid diagrams).
// The desktop Rust host (cargo test, clippy
// with warnings as errors) runs when cargo is installed; set STOREBOUND_CI_RUST=0 to skip it on a machine without Rust.
import { join } from 'node:path';

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bun
// Renders the desktop dev fixtures' art (apps/desktop/src/dev/art/*.png): app icons and store screenshot stand-ins,
// each a lucide icon (lucide-static, ISC) on a CSS gradient, photographed by Playwright's Chromium. No drawn SVG: the
// icons are lucide's own files. Dev only (the fixtures never ship in the release bundle).
// each a Phosphor icon (@phosphor-icons/core, MIT, "fill" weight) on a CSS gradient, photographed by Playwright's
// Chromium. No drawn SVG: the icons are Phosphor's own files. Dev only (the fixtures never ship in the release bundle).
// bun tools/fixture-art.ts (Playwright's Chromium, or an installed Google Chrome; same launcher as storebound shots)
import { mkdirSync, readFileSync, renameSync } from 'node:fs';
import { join } from 'node:path';
@ -9,21 +9,21 @@ import { launch } from '../cli/shots/browser';
const root = new URL('..', import.meta.url).pathname;
const out = join(root, 'apps/desktop/src/dev/art');
const lucide = (name: string) => readFileSync(join(root, 'node_modules/lucide-static/icons', `${name}.svg`), 'utf8').replace(/<!--.*?-->/s, '');
const phosphor = (name: string) => readFileSync(join(root, 'node_modules/@phosphor-icons/core/assets/fill', `${name}-fill.svg`), 'utf8');
/** [file, lucide icon, gradient from, gradient to] */
/** [file, Phosphor icon, gradient from, gradient to] */
const ICONS: [string, string, string, string][] = [
['icon-prism', 'droplets', '#7c5cff', '#ff5fa2'], ['icon-tidy', 'list-checks', '#2fd18b', '#0f9d74'],
['icon-orbit', 'orbit', '#0ea5e9', '#6366f1'], ['icon-block', 'blocks', '#22c55e', '#15803d'],
['icon-prism', 'drop', '#7c5cff', '#ff5fa2'], ['icon-tidy', 'list-checks', '#2fd18b', '#0f9d74'],
['icon-orbit', 'planet', '#0ea5e9', '#6366f1'], ['icon-block', 'cube', '#22c55e', '#15803d'],
['icon-lantern', 'lamp', '#f59e0b', '#b45309'], ['icon-tycoon', 'coins', '#a855f7', '#6d28d9'],
['icon-racer', 'car-front', '#ef4444', '#991b1b'], ['icon-habit', 'egg', '#14b8a6', '#0f766e'],
['icon-racer', 'car', '#ef4444', '#991b1b'], ['icon-habit', 'egg', '#14b8a6', '#0f766e'],
['icon-focus', 'timer', '#f43f5e', '#be123c'], ['icon-sketch', 'star', '#fb923c', '#ea580c'],
['icon-night', 'moon', '#1e293b', '#4338ca'], ['icon-mood', 'grid-2x2', '#ec4899', '#8b5cf6'],
['icon-night', 'moon', '#1e293b', '#4338ca'], ['icon-mood', 'grid-four', '#ec4899', '#8b5cf6'],
];
/** Four scenes of the demo game: [lucide icon, from, to, accent] */
/** Four scenes of the demo game: [Phosphor icon, from, to, accent] */
const SCENES: [string, string, string, string][] = [
['droplets', '#7c5cff', '#ff5fa2', '#ffd36e'], ['zap', '#ff7a59', '#ff3d7f', '#ffe08a'],
['calendar-days', '#2fb5ff', '#5b6cff', '#b8f3ff'], ['trophy', '#ffb03b', '#ff7a1a', '#fff1b8'],
['drop', '#7c5cff', '#ff5fa2', '#ffd36e'], ['lightning', '#ff7a59', '#ff3d7f', '#ffe08a'],
['calendar-dots', '#2fb5ff', '#5b6cff', '#b8f3ff'], ['trophy', '#ffb03b', '#ff7a1a', '#fff1b8'],
];
/** Screenshot shapes at a small preview size, in the stores' aspect ratios. */
const SHAPES: [string, number, number][] = [['phone', 240, 521], ['play', 240, 427], ['ipad', 300, 400], ['feature', 512, 250]];
@ -48,23 +48,23 @@ async function snap(file: string, w: number, h: number, html: string) {
console.log(`fixture-art: ${file}.png ${w}x${h}`);
}
for (const [file, icon, a, b] of ICONS) {
await snap(file, 128, 128, page(128, 128, `<div class="t">${lucide(icon)}</div>`,
`.t{width:128px;height:128px;display:grid;place-items:center;background:linear-gradient(135deg,${a},${b});color:#fff}.t svg{width:72px;height:72px;stroke-width:1.8}`));
await snap(file, 128, 128, page(128, 128, `<div class="t">${phosphor(icon)}</div>`,
`.t{width:128px;height:128px;display:grid;place-items:center;background:linear-gradient(135deg,${a},${b});color:#fff}.t svg{width:72px;height:72px}`));
}
for (const [i, [icon, a, b, c]] of SCENES.entries()) {
for (const [shape, w, h] of SHAPES) {
const land = w > h;
const phone = land ? { w: h * 0.42, h: h * 0.86 } : { w: w * 0.62, h: Math.min(h * 0.72, w * 0.62 * 2.05) };
await snap(`scene${i + 1}-${shape}`, w, h, page(w, h,
`<div class="bg"><div class="glow"></div><div class="big">${lucide(icon)}</div><div class="ph"><div class="scr">${lucide(icon)}</div></div></div>`,
`<div class="bg"><div class="glow"></div><div class="big">${phosphor(icon)}</div><div class="ph"><div class="scr">${phosphor(icon)}</div></div></div>`,
`.bg{position:relative;width:${w}px;height:${h}px;background:linear-gradient(135deg,${a},${b});color:#fff;overflow:hidden}
.glow{position:absolute;inset:0;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.35),transparent 70%)}
.big{position:absolute;${land ? `left:${w * 0.1}px;top:${h * 0.22}px` : `left:50%;top:${h * 0.05}px;transform:translateX(-50%)`};color:${c}}
.big svg{width:${land ? h * 0.5 : w * 0.26}px;height:${land ? h * 0.5 : w * 0.26}px;stroke-width:2.2}
.big svg{width:${land ? h * 0.5 : w * 0.26}px;height:${land ? h * 0.5 : w * 0.26}px}
.ph{position:absolute;width:${phone.w}px;height:${phone.h}px;${land ? `right:${w * 0.1}px;top:${h * 0.07}px` : `left:50%;bottom:-${phone.w * 0.12}px;transform:translateX(-50%)`};
border-radius:${phone.w * 0.14}px;background:#10142a;border:${Math.max(2, phone.w * 0.03)}px solid rgba(255,255,255,.85);padding:${phone.w * 0.06}px}
.scr{width:100%;height:100%;border-radius:${phone.w * 0.08}px;background:#1d2350;display:grid;place-items:center;color:${c}}
.scr svg{width:45%;height:45%;stroke-width:1.6}`));
.scr svg{width:45%;height:45%}`));
}
}
await browser.close();

View file

@ -1,41 +1,67 @@
#!/usr/bin/env bun
// Vendors the site's icons from lucide (lucide-static, ISC licence) into site/img/icons/: the official SVG files,
// copied byte for byte, plus lucide's licence. The pages show them as CSS masks (site/style.css .ic-*), so they take
// the text colour in both themes and the site makes no request outside its own folder.
// bun tools/site-icons.ts copy (after a lucide-static bump or a new icon in ICONS)
// bun tools/site-icons.ts --check fail when a vendored file differs from lucide-static (CI, when installed)
// Vendors icon files, copied byte for byte from their packages, plus the licences:
// site/img/icons/ Phosphor (@phosphor-icons/core, MIT, "regular" weight) for the site's icons and the
// App Store / Google Play marks from simple-icons (CC0 data)
// apps/desktop/src/ui/store-marks the same two store marks for the desktop app (the other desktop icons come from
// @phosphor-icons/react)
// Both show them as CSS masks (site/style.css .ic-*, desktop styles.css .store-mark), so they take the text colour in
// both themes and nothing is loaded from outside. The store marks only name the store next to its name; they are
// trademarks of Apple Inc. and Google LLC (docs/desktop.md, the site footer).
// bun tools/site-icons.ts copy (after a package bump or a new icon in the lists below)
// bun tools/site-icons.ts --check fail when a vendored file differs from its package (CI, when installed)
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
export const SITE_ICONS = ['chevron-right', 'play', 'user-round', 'layout-grid', 'briefcase-business'] as const;
export const SITE_ICONS = ['caret-right', 'play', 'user', 'squares-four', 'briefcase'] as const;
export const STORE_MARKS = ['appstore', 'googleplay'] as const;
const root = new URL('..', import.meta.url).pathname;
const from = join(root, 'node_modules/lucide-static');
const phosphor = join(root, 'node_modules/@phosphor-icons/core');
const simple = join(root, 'node_modules/simple-icons');
export const ICON_DIR = join(root, 'site/img/icons');
export const MARK_DIR = join(root, 'apps/desktop/src/ui/store-marks');
/** Problems of the vendored folder against lucide-static ([] when it matches, or when lucide-static is not installed). */
/** [vendored dir, file name, package file] for every vendored icon. */
function plan(): [string, string, string][] {
const marks = STORE_MARKS.map(n => [`${n}.svg`, join(simple, 'icons', `${n}.svg`)] as const);
return [
...SITE_ICONS.map(n => [ICON_DIR, `${n}.svg`, join(phosphor, 'assets/regular', `${n}.svg`)] as [string, string, string]),
...marks.map(([f, src]) => [ICON_DIR, f, src] as [string, string, string]),
...marks.map(([f, src]) => [MARK_DIR, f, src] as [string, string, string]),
];
}
const rel = (p: string) => p.slice(root.length);
/** Problems of the vendored folders against the packages ([] when they match, or when the packages are not installed). */
export function checkSiteIcons(): string[] {
if (!existsSync(from)) return [];
if (!existsSync(phosphor) || !existsSync(simple)) return [];
const out: string[] = [];
for (const n of SITE_ICONS) {
const f = join(ICON_DIR, `${n}.svg`);
if (!existsSync(f)) out.push(`site/img/icons/${n}.svg missing (bun tools/site-icons.ts)`);
else if (readFileSync(f, 'utf8') !== readFileSync(join(from, 'icons', `${n}.svg`), 'utf8')) out.push(`site/img/icons/${n}.svg is not lucide-static's file`);
const p = plan();
for (const [dir, f, src] of p) {
const at = join(dir, f);
if (!existsSync(at)) out.push(`${rel(at)} missing (bun tools/site-icons.ts)`);
else if (readFileSync(at, 'utf8') !== readFileSync(src, 'utf8')) out.push(`${rel(at)} is not ${rel(src).replace('node_modules/', '')}`);
}
for (const dir of [ICON_DIR, MARK_DIR]) {
if (!existsSync(dir)) continue;
for (const f of readdirSync(dir)) if (f.endsWith('.svg') && !p.some(([d, n]) => d === dir && n === f)) out.push(`${rel(join(dir, f))} is not a vendored icon`);
}
for (const f of readdirSync(ICON_DIR)) if (f.endsWith('.svg') && !(SITE_ICONS as readonly string[]).includes(f.slice(0, -4))) out.push(`site/img/icons/${f} is not in SITE_ICONS`);
return out;
}
const version = (dir: string) => JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8')).version as string;
const simpleNote = () => `App Store and Google Play marks: simple-icons ${version(simple)} (https://simpleicons.org), copied unchanged from\nthe simple-icons package. The icon data is CC0; the marks are trademarks of Apple Inc. and Google LLC and are used\nonly to name the store next to its name. storebound is not affiliated with Apple or Google.\n\n${readFileSync(join(simple, 'LICENSE.md'), 'utf8')}`;
if (import.meta.main) {
if (!existsSync(from)) { console.error('site-icons: lucide-static is not installed (bun install)'); process.exit(1); }
if (!existsSync(phosphor) || !existsSync(simple)) { console.error('site-icons: @phosphor-icons/core or simple-icons is not installed (bun install)'); process.exit(1); }
if (process.argv.includes('--check')) {
const bad = checkSiteIcons();
for (const b of bad) console.error(`site-icons: ${b}`);
process.exit(bad.length ? 1 : 0);
}
mkdirSync(ICON_DIR, { recursive: true });
const version = JSON.parse(readFileSync(join(from, 'package.json'), 'utf8')).version;
for (const n of SITE_ICONS) writeFileSync(join(ICON_DIR, `${n}.svg`), readFileSync(join(from, 'icons', `${n}.svg`)));
writeFileSync(join(ICON_DIR, 'LICENSE.txt'), `Icons in this folder: Lucide ${version} (https://lucide.dev), copied unchanged from the lucide-static\npackage by tools/site-icons.ts.\n\n${readFileSync(join(from, 'LICENSE'), 'utf8')}`);
console.log(`site-icons: ${SITE_ICONS.length} icons from lucide-static ${version} -> site/img/icons/`);
for (const dir of [ICON_DIR, MARK_DIR]) mkdirSync(dir, { recursive: true });
for (const [dir, f, src] of plan()) writeFileSync(join(dir, f), readFileSync(src));
writeFileSync(join(ICON_DIR, 'LICENSE.txt'), `Icons in this folder, copied unchanged by tools/site-icons.ts:\n\nPhosphor ${version(phosphor)} (https://phosphoricons.com), regular weight, from the @phosphor-icons/core\npackage.\n\n${readFileSync(join(phosphor, 'LICENSE'), 'utf8')}\n\n${simpleNote()}`);
writeFileSync(join(MARK_DIR, 'LICENSE.txt'), `Store marks in this folder, copied unchanged by tools/site-icons.ts.\n\n${simpleNote()}`);
console.log(`site-icons: ${SITE_ICONS.length} Phosphor icons ${version(phosphor)} and ${STORE_MARKS.length} simple-icons ${version(simple)} store marks -> site/img/icons/, apps/desktop/src/ui/store-marks/`);
}