# Site Structure v2.1 — 2026-10-20
Round 2 feedback: WASM ≠ default, blog framework specified, tags on main grid,
project tidiness system, fun backlog. (Supersedes v2 / §3–5 of PORTFOLIO_PLAN.md.)

---

## 1. Email — unchanged, $0 combo

CF Email Routing (free, 200 rules) receive `hi@hanthebot.dev` → Gmail; send via
Gmail "Send mail as" (smtp.gmail.com + app password, ~500/day). Real mailbox later
= Purelymail $10/yr. Zoho free has no IMAP — pass.

---

## 2. Framework — final

**Astro**, pure static output, islands only where needed. No Next, no server runtime
for the main site. One brain, all markdown.

---

## 3. Blog stack — specified

- **Writing/blog = Astro Content Collections.** `src/content/writing/*.md`,
  typed frontmatter (title, date, tags), shiki code highlight,
  RSS via `@astrojs/rss`, tag pages — all built-in, zero extra runtime.
- **mdbook stays where it already wins**: `books.` + `24xx.` course notes
  (chapter-shaped, search, already deployed). Blog in mdbook = pain:
  no dates, no tags, no custom vibes.
- **Jekyll = hard pass**: whole Ruby toolchain to do what Astro already does
  while building the site you already have.
- Rule: everything markdown, two renderers, zero duplication.

---

## 4. Demos — WASM is DLC, not the base game

1. **Viz** (butterfly diagram, gerber viewer, key tester) → SVG/canvas island.
   Zero compute, zero payload.
2. **Numbers/benchmarks** → run benchmarks **once** (locally or on the VPS),
   commit the results as JSON, chart it statically.
3. **Interactive compute** → optional "run live ⚡" tab; the wasm chunk
   lazy-loads **only on click**. Nobody downloads 2MB of wasm to look at a butterfly.
4. **Real backend** (LLM learning app, live data, receipt gen) → `.com`
   subdomain via `hosting-supervisor` (nginx + systemd + port registry, already built).

Default static; add compute only when the demo earns it.

---

## 5. Projects — tags, schema, tidiness

### Frontmatter = single source of truth (portfolio reads this, cards auto-render)

```yaml
# src/content/projects/fft-ntt.md
title: Finite Field FFT / NTT
tagline: fast poly evaluation for ZK, minus the tears
type: research        # research | systems | hardware | hobby
status: active        # active | hibernating | archived
authorship: own       # own | ai-assisted | vibe-coded | own hw · vibe-coded fw
featured: true
order: 1
stack: [C/C++, NTT, WASM]
links: { repo: ..., demo: ... }
hero: /projects/fft-ntt/hero.gif
```

### What renders on the card
- type chip (research/systems/hardware/**hobby**)
- status pill: 🌱 active · 😴 hibernating · 📦 archived
- authorship badge: ✍️ own · 🤝 ai-assisted · 🤖 vibe-coded
  (keyboard = `own hardware · vibe-coded firmware` — the mixed flex)

**Hobby = a filter value on the main `/projects` grid** (chips: all / research /
systems / hardware / hobby) + a saved filter view `/projects/hobby/`. Featured,
not quarantined. Tea joins later as another `hobby` entry.
Optional tiny "how I use AI" blurb linked from the badges.

### Tidiness rules ("one home" policy)
1. **README = source of truth** (what/how/results). **Portfolio page = vibes + demo
   + links.** Never maintain the same text twice — portfolio pulls tagline only.
2. **README template** (all repos): hero GIF → one-liner → quickstart →
   results/benchmarks → license. Tag releases (`v0.1…`). Dead project = mark
   `📦 archived` in README header, honestly.
3. Repo naming: lowercase-hyphen for new repos; assets in `assets/`
   (repo) or `public/projects/<slug>/` (site).
4. New project checklist: repo · README · LICENSE · portfolio `.md` entry · hero GIF.
   (Optional cute later: `pnpm new:project` scaffolds all of the above.)

---

## 6. hanthebot.com = lab, not bunker (unchanged)

Public: apex lab index, `edit.`, receipt gen, learning app, future demo backends.
Gated: `mgmt.` (token + IP allowlist), `/f/` `/s/` sharing links, ssh/vpn.

---

## 7. The map (updated)

```
hanthebot.dev  (Astro, static, CF Pages — front door)
├── /                      hero · about · now
├── /projects/             one grid, filter chips (all/research/systems/hardware/hobby)
│   ├── fft-ntt/           ★ flagship + islands
│   ├── mdbookshelf/ hosting/ arbitrage/
│   └── (hobby view = saved filter, incl. keyboards, tea, ...)
├── /writing/              blog — content collections, tags, RSS
├── /cv.pdf
└── books. 2425f. 2425s.   mdbook subdomains, keep

hanthebot.com  (VPS — the lab)
├── apex                   lab index
├── edit. receipt-gen. learn. ...   public experiments
└── mgmt. /f/ /s/ ssh vpn  gated
```

Skills chips section: still dead. Nav: Projects → Writing → About/Now → CV.

---

## 8. Fun backlog (pick by mood)

- ★ **receipt printer guestbook** — visitor signs a form on `.com` → it prints IRL
  on your thermal printer → receipt photo auto-posts back to a gallery page.
  Community + .com + hardware, certified hood classic.
- **88x31 button** for hanthebot.dev + button wall page + trade with
  keyboard/webring folks (terminally online currency).
- **key sound playground** — your layout rendered from `via.json`, press keys,
  plays real HE switch recordings from your boards. Hobby demo + meme fuel.
- **kaomoji status page** — (ᵔᴥᵔ) ok · (;-;) down · ¯\\_(ツ)_/¯ rebooting.
- **/uses** page — gear, tools, tea.
- **404** = "key not found — press any key", konami code easter egg somewhere.
- Guestbook-lite fallback: giscus (GitHub Discussions) — zero backend —
  if the printer idea feels like too much wiring.

---

## 9. Deltas vs v2
- Demos: precomputed-JSON-first, wasm lazy optional tab ✓
- Blog: Astro content collections, mdbook stays notes-only, no jekyll ✓
- Hobbies/authorship: frontmatter tags on main grid + filter view ✓
- Added: project schema, README template, one-home rule, fun backlog ✓
