# Portfolio & Domain Plan — Oct 2026

Written: 2026-10-20, after reviewing `portfolio.zip` (Cleanfolio/React), `cur_status.md`,
and the local repos (`hosting/`, `keyboard/`, `hecontroller/`, etc.).
Audience: personal/community first, but equally ready for internship recruiters and grad school.
Goal: recruiter/grad-ready site **before leaving service (Aug 2027)**.

---

## 1. Current state (what exists today)

- **hanthebot.dev** — Cleanfolio template (React 17 + CRA 4 + Material-UI 4),
  content last updated Jan 2025. 3 project cards, skill chips, contact.
  Client-side-only rendering: link previews/crawlers see almost nothing.
- **Subdomains** — `books.hanthebot.dev` (mdBookShelf), `2425f.`, `2425s.` (course notes).
- **hanthebot.com** — Hetzner VPS homelab: `mgmt.` (nginx + 3 Python daemons, token + IP allowlist),
  `edit.` (mobile code editor), file sharing, SSH/VPN, opencode host. Apex redirects to `.dev`.
  Not exposed to others; keep it that way.
- **Not on the site**: FFT/NTT research repo, keyboard family + scripted KiCad pipeline,
  homelab supervisor stack, arbitrage tracker (partially linked).

### Content bugs to fix whenever the site is touched
- Role says "Undergraduate CS Student" → should be **CS + Mathematics**.
- Skills list contains `"Web (3)"` (template leftover artifact) — remove.
- Add a real `<meta name="description">` + Open Graph tags (SPA currently has neither).
- Link `/cv.pdf` from the hero, not just About.

---

## 2. Verdict

| Item | Decision |
|---|---|
| Cleanfolio template look | Replace — too generic, no personality |
| React 17 / CRA 4 / MUI 4 toolchain | Replace — deprecated, needs `--openssl-legacy-provider` to build |
| 3-project card list | Expand — featured pages + archive grid |
| hanthebot.dev on Cloudflare static | Keep — correct place for everything public |
| hanthebot.com as private homelab | Keep — never host public content on the VPS |
| `.com` apex → `.dev` redirect | Replace with a tiny status/landing page (self-explanatory) |
| gmail as public contact | Upgrade — `hi@hanthebot.dev` via Cloudflare Email Routing |

---

## 3. New site: structure & stack

### Structure
1. **Hero** — name, one-liner positioning, CV PDF + GitHub/LinkedIn links.
2. **About + `/now` page** — short bio + current status
   ("on national service until Aug 2027, back at HKUST Fall 2027").
3. **Research** — FFT/NTT work under Prof. Dimitris Papadopoulos (ZK).
   Written as a mini research page: problem → approach → results. Doubles as a writing sample.
4. **Featured projects** — 3–4, each with **its own page + a demo** (see §4).
5. **Archive** — small cards for everything else, no pressure to build demos.
6. **Keyboards** — hub page or its own section; this is the personality anchor.
7. **Writing / log** — build logs & research notes in markdown. Serves community first;
   happens to be exactly what recruiters/grad committees read to judge depth.
8. **Notes** — links to `books.` + course subdomains; keep growing each semester back.

Tone: first person, technical, personality allowed. Write for humans, structure for skimmers.

### Stack (pick one, both static → Cloudflare Pages)
- **Astro** (top pick): zero-JS pages, "islands" for interactive demos, markdown-native,
  fixes SEO/link-preview problem. ~1 weekend to learn.
- **Vite + React 19** (drop MUI): least new learning, reuses existing components.
- Either way: project content lives in markdown/JSON data files (adding a project = editing a file).
  **No backend on the portfolio** — the VPS exists for that.

---

## 4. Featured projects & demos

| Tier | Project | Page contains | Demo | Effort |
|---|---|---|---|---|
| Flagship | **Finite Field FFT / NTT** (Fast-Polynomial-Evaluation) | problem, why FFT in finite fields (ZK context), approach, results | Animated butterfly diagram (SVG/canvas, step through twiddle factors) + benchmark chart (naive Horner vs NTT, Goldilocks/BN254) | Med |
| Flagship | **Keyboard family** — Boardloaf (+HE), TrueStrike42, hectrrs36, cheapis, splitHe | One page per board: photos (top/bottom/PCB), specs table, firmware notes (QMK/Vial, HE matrix), build log, files | Embedded client-side gerber viewer (e.g. tracespace) on `keyboard/gerbers/`; optionally a key-tester island rendered from vial.json | Low–med |
| Featured | **Scripted KiCad pipeline** (`hecontroller/` — `config.yaml` → `generate_*.py`) | Own write-up: declarative board config → generated PCB. Most keyboard makers lay out PCBs by hand in the GUI; this is the differentiator | Diagrams + generated outputs | Low |
| Featured | **mdBookShelf + course notes** | Screenshots, description, deep link to `books.hanthebot.dev` | Already live — just link it | None |
| Archive | **Crypto arbitrage tracker** | Architecture write-up (exchanges, poller, bot, GUI), screenshots | Live read-only chart only if API keys/rate limits are safe — otherwise screenshots | Low |
| Write-up only | **Homelab / `hosting/`** | Architecture diagram (nginx → 3 daemons, systemd user units, token+IP allowlist, certbot) + design philosophy ("no Docker, no accounts, minimal footprint") | **None — panel stays private.** Never expose `mgmt.`/`edit.` publicly | Low |

Rules of thumb:
- Every featured page: hook line, 3–4 bullets, **quantified outcomes** (timings, scan rate, boards built), stack tags, source + demo links.
- The real portfolio is GitHub: give the 4–5 pinned repos READMEs with GIFs/screenshots. The site routes traffic; the repos close the deal.
- **Excluded**: DSL / "Distributed Stack Lattice" (`memory/`) — concept only, never implemented. Revisit only if it gets built.

---

## 5. Domain & hosting layout

- **hanthebot.dev = front door.** Everything public and static, on Cloudflare (Pages/static):
  apex portfolio, `books.` + course subdomains, demos as **routes**
  (`hanthebot.dev/projects/fft`) — not new subdomains — to keep deployment simple and
  concentrate link equity. Subdomains only for standalone apps.
- **hanthebot.com = engine room.** Private: `mgmt.`, `edit.`, SSH/VPN, file sharing.
  - Apex: replace the redirect with a one-screen status page
    ("this box runs my homelab — public stuff at hanthebot.dev").
  - Keep token/IP-allowlist gating; consider Cloudflare Tunnel + Access so nothing private
    is port-exposed at all.
- **Principle: public availability must never depend on the VPS.**
  A Hetzner reboot should never take the portfolio down.
- **Email**: `hi@hanthebot.dev` via Cloudflare Email Routing → gmail. Professional, free.
- **One canonical URL** (`https://hanthebot.dev`) everywhere: GitHub, LinkedIn, CV, Discord.

---

## 6. Timeline (Oct 2026 → Aug 2027)

| Phase | When | What |
|---|---|---|
| 0 — Content audit | Now–Nov 2026 | List every project worth showing; write blurbs; refresh CV; pick stack |
| 1 — Rebuild | Nov–Dec 2026 | New site on Astro (or Vite+React), port content, deploy to CF Pages, cut over when happy |
| 2 — Demos | Jan–Jun 2027 (~1/month) | Jan: FFT/NTT island → Feb–Mar: keyboard hub + build logs → Apr: gerber viewer → May: homelab write-up → Jun: arbitrage archive page |
| 3 — Recruiter/grad pass | Jul–Aug 2027 | Tighten copy; `/now` update ("back at HKUST Fall 2027, seeking Summer 2028 internships"); final CV PDF; README GIF pass on pinned repos |

Each Phase 2 unit doubles as a log/write-up post — community content and portfolio progress in one motion.

---

## 7. Quick wins (each one evening, even before rebuilding)

- [ ] Fix role → "CS + Math undergraduate"; remove `"Web (3)"` from skills
- [ ] Add meta description + OG tags; link `/cv.pdf` in hero
- [ ] GitHub profile README → canonical link + 6 pinned repos in final order
- [ ] Put 2–3 keyboard photos somewhere public (even just a tweet/post) to start building the habit of documenting builds
- [ ] Cloudflare Email Routing → `hi@hanthebot.dev`
- [ ] `.com` apex status page (one static HTML file)

---

## 8. Out of scope / later

- DSL lattice simulator (concept only, never implemented — excluded)
- LLM + mdbook exercise-grade-feedback system: revive later; if it ships, it earns a
  featured slot with an interactive sample-lesson demo
- Live arbitrage dashboard: only if keys/rate limits are provably safe
