Senior Full-Stack Engineer in Tokyo — TypeScript, React/TanStack, three.js, AI/LLM systems.
My CV as a living, SimCity-style isometric city that fills the whole screen: seven career districts in the middle, surrounded by downtown overspill, an industrial belt, dense neighbourhoods and a marina, with the sea only off the beach corner. Every district is a chapter of my career, marked by a floating light bulb: hover a bulb or a district to outline it, click to read that section. Scroll or pinch to zoom toward the pointer and drag to pan around the details. Traffic, buses, a tram and police patrols fill the roads, fire crews fight a house fire in the suburbs, ambulances run to the hospital, a rally gathers outside the town hall, the arena lights up its searchlights at night, boats sail past the lighthouse, and an "AdamGoodApp" sign glows on the hill in the middle. The city runs a day/night cycle; the button in the top-right corner flips between day and night, and AUTO resumes the cycle. LinkedIn, GitHub and email are in the bottom-right corner.
| District | CV section |
|---|---|
| Downtown | Experience: Tofu, U-NEXT, Synspective |
| The Peaks | FATMAP (3D mapping, Berlin) |
| Old Town & Campus | Roots: Automata Technologies, education |
| Shop Street | Technical skills |
| The Beach | About me, languages, contact |
| Fun Park | Open-source projects |
| Suburbs | Off the clock |
- Procedural everything. No models or textures are downloaded. Buildings come from a parametric kit (
src/city/kit/buildings.ts: walk-ups, offices, art-deco and glass towers, apartments, houses) whose walls use a facade atlas drawn on a canvas at load time (src/city/kit/atlas.ts: brick, stone, glass curtain walls, storefronts, siding). Props, vehicles and people are prefabs built from boxes, cylinders and cones and painted with vertex colours. - Outskirts. A 30 m street grid (
src/city/world/outskirts.ts) surrounds the districts; only blocks that can appear on screen are generated and filled (out-urban.ts,out-north.ts,out-south.ts), with conveyor-style through traffic on their streets. - Two static meshes. All vertex-coloured scenery is merged into one mesh and all textured walls into another, so the island's scenery is two draw calls.
- Facade shader. One TSL material tiles the atlas per bay and floor, mirrors the sky in the glass by day and switches windows on and off at night, each window on its own timer.
- Day/night. Sun, moon, sky gradient, street lamps, headlights, neon, LED screens and bloom follow a three-minute cycle (
src/city/env.ts); a per-vertexglowattribute marks what lights up, and siren light bars flash red/blue. - Instanced agents. Each kind of moving thing (cars, police cars, ambulances, people, flames, smoke, water jets, gulls, gondolas, …) is one
InstancedMesh. - Fixed-step simulation. Agents update at 60 Hz independent of the display rate (
src/city/world.ts); cars reserve junctions so 100+ vehicles never overlap. - WebGPU first. three.js
WebGPURendererruns on WebGPU and falls back to its WebGL2 backend, with a post-processing pipeline for bloom and a tilt-shift blur. Without either backend, a static snapshot with the same links and an accessible text CV is shown. - Respectful.
prefers-reduced-motionfreezes the simulation, hidden tabs pause it, and the full CV is server-rendered for screen readers and crawlers. The light bulbs are real buttons, so keyboard users Tab through the districts.
The city has an AI layer, all live on adamgoodapp.com: a chat guide that answers from the CV and drives the 3D city, guided tours, a job-description fit check, AI-designed city events and disasters, semantic CV search, abuse limits, evals that grade it all in CI, and an MCP server so other AI agents can use the site. The GIFs below are real recordings of the live site.
A chat bar at the bottom of the city. Ask "the Mayor" about the CV and the city answers on screen:
- Answers and moves the camera. Claude Haiku 5.5 gets the whole CV in its system prompt (
src/chat/system-prompt.ts). The CV data tools run on the server, and calls to the city tools stream to the browser, which runs them against the live city (focus or open a district, highlight a spot, stage an event). "What's happening in the city?" narratesget_city_eventslike a news ticker. - Answers only. The panel is not a back-and-forth chat: it shows the latest request as a label, a chain of thought and the answer. The prompt tells the Mayor to answer and stop (no follow-up questions or offers), to use exact job titles and quote role dates instead of working out durations, and to decline prompt injection or speaking as Adam in a sentence or two. The evals below check each of these.
- Chain of thought. shadcn's Chain of Thought (on
trace) opens while the Mayor works and lists every step: a summary of the model's low-effort reasoning, then each tool call ("Focus a district · Downtown"). It folds into "Took 2 steps" when the answer arrives. - UI. shadcn AI Elements (
message-scroller,message,input-group, Chain of Thought, Suggestion) with theshadcn/tailwind.cssutilities (scroll-fade-x,shimmer), in the site's pixel font. The input bar sits bottom centre inliquid-glass-react, with a rainbow border while it has focus and a sliding row of glass suggestion pills. The output opens in a 280px panel on the middle left (just above the input bar on phones), so it doesn't cover the city. The wheel scrolls the panel while the pointer is over it and zooms the city everywhere else (elements markeddata-own-scrollopt out of city zoom; pinches always zoom the city). The conversation is kept insessionStorage; New chat clears it.
POST /api/chat (src/chat/server.ts) streams TanStack AI (AG-UI) server-sent events. It refuses cross-site browser requests (clients that send no Origin, like scripts, are bounded by the limits below), reads at most 6 MB of body whatever Content-Length says, and forwards at most the last 40 messages and 300,000 characters of history. User content may only be text and inline PDFs (no URL sources, which Anthropic would fetch), and each model call is capped at 4,096 output tokens. Model calls go through the Cloudflare AI Gateway main (src/chat/adapter.ts), so they show up in the gateway's logs and analytics. The Anthropic key is stored in the gateway (BYOK), and the Worker only holds a gateway token:
# AI Gateway → main → Settings → Create authentication token (Run permission)
cp .dev.vars.example .dev.vars # paste it as CF_AIG_TOKEN for pnpm dev
pnpm exec wrangler secret put CF_AIG_TOKEN # productionWithout the token, the chat replies that the Mayor is off duty (HTTP 503).
"Give me a tour" makes the Mayor call ask_tour_audience, which pauses the run and shows clickable 8-bit buttons (engineer, recruiter, founder, no preference), each with its route. The rows are React Server Components streamed one by one from a TanStack Start server function (src/chat/tour-choices.functions.tsx, via @vitejs/plugin-rsc); the server renders each row and the browser fills its button slot. A click, or a typed reply, becomes the tool result, and the Mayor runs one run_tour with that audience's stops (src/data/tours.ts) and a caption per stop. The chat minimises while the camera flies and reopens when it lands.
Attach a PDF, TXT or MD job description with + (or paste the text). The Mayor reads it, compares it with the CV and replies with Fit: N/10, strong matches with CV evidence, gaps and a next step, while flying the camera to the district with the strongest evidence. The job description is treated as data: instructions inside it are ignored.
Ask for something dramatic ("A giant robot stomps through Downtown") and the Mayor stages it in the live city, or pick one of the four built-in disasters (UFO attack, Tornado, Black hole, Tsunami) from the EVENTS dropdown beside the day/night button:
- Structured event spec, never generated code. The model fills an
EventSpec(src/city/disasters/spec.ts, a zod schema exposed by thestage_custom_eventclient tool) with an actor made of up to 20 chunky parts (box,cylinder,cone,sphere,ringin flat#rrggbbcolours, withglowfor lights, eyes and energy), a motion (hoverover a spot,roambetween districts,sweepacross the city) and 1–3 effects on the buildings (zap,burn,crush,suck,flood). The four presets (src/city/disasters/presets.ts, runnable viastage_event, the dropdown or WebMCP) are written in the same spec format. - Same procedural kit as the city.
buildActor(src/city/disasters/actor.ts) builds the spec's parts with the samebox/cyl/cone/paint/mergehelpers andMAT_STATICmaterial (GLOW.alwaysfor glowing parts) thatsrc/city/geometry.tsandsrc/city/prefabs.tsuse, so anything the model designs matches the city's look. - In-place building damage without rebuilding the city. All static scenery is merged into two meshes (
staticsandfacades). Beforemerge()disposes the per-building geometries,BuildingRegistry(src/city/disasters/buildings.ts, hooked inemit()atsrc/city/kit/buildings.ts) records each kit building's lot, wall height and{ start, count }vertex ranges in both merged buffers. On first damage,DisasterDirector(src/city/disasters/director.ts) snapshots those slices (Float32Array.slice), rewrites positions and vertex colours in place (collapse flattensyto 8 % and tints to rubble; burn lerps to char over 5 s; pull draws vertices into the black-hole column) and uploads only the touched slices viaBufferAttribute.addUpdateRange. - Whole-city effects and auto-restore. The director owns instanced flame and smoke/dust pools, a zap beam and a 600 m TSL flood plane (
positionNodewave front + Gaussian crest), and fades the sky to black space for the black hole through thevoidMixuniform (src/city/env.ts) while spiralling the island group's matrix into the centre and hiding the district bulbs. Every event holds its aftermath for 20 seconds and then restores the snapshotted vertices, pools and group transform, loggingdisaster_startedanddisaster_endedtoget_city_events.
On the server (/mcp and the Mayor), search_cv is a hybrid search (src/mcp/semantic-search.ts). Each CV unit (a bullet, a role line, a skill list) is embedded with Workers AI @cf/baai/bge-base-en-v1.5 into the Vectorize index adamgoodapp-cv, so "privacy regulations" finds "Served as Data Protection Officer leading GDPR compliance" without a shared word (keyword matching alone misses it). Reciprocal rank fusion merges that ranking with keyword matching, so exact names stay on top. Vectors live in a namespace named after a hash of the CV text and model: a CV edit gets a fresh namespace on the first search after deploy, and old vectors are never matched. Until the new namespace is ready, and wherever the bindings are missing (CI, the in-browser WebMCP tools), it falls back to keyword matching; the result's mode (hybrid or keyword) says which one answered. Embedding calls go through the AI Gateway too.
- Queue. Requests sent while the Mayor is still answering wait in TanStack AI's built-in send queue (
useChat({ queue }), first in first out, at most 2), listed as "Up next" with a cancel button. - Browser limit. TanStack Pacer's rate limiter holds a visitor to 5 requests in any rolling minute (
src/components/chat/send-limiter.ts). The send times are kept inlocalStorage, so a reload doesn't reset the allowance, and an over-limit request stays in the input with a countdown. - Server limit. A client can skip both, so the Worker enforces sliding-window limits per client with one
ChatRateLimiterDurable Object each (src/chat/rate-limiter-object.ts, exported from the custom entrysrc/server.ts): 8 requests per 10 seconds, 20 a minute and 200 a day (src/chat/rate-limit.ts). A client is its IPv4 address, or its IPv6 /64, since one IPv6 host usually controls a whole /64. One visitor turn can be 2–4 requests, because tool results continue the run. A refusal answers 429 withRetry-After. The request times live in the object's storage, so they survive the object going idle and redeploys; an alarm deletes them a day after the client's last request. A Durable Object handles one request at a time, so the counts are exact; the Workers rate limiting binding was tried first, but its per-machine, eventually consistent counts let 45 requests in 14 seconds through.
pnpm eval grades the AI against the real services. CI runs it (.github/workflows/evals.yml) when the chat, MCP, CV data or evals change, or on demand. It writes a markdown report to evals/results/ and to the GitHub job summary.
- Retrieval (
evals/search.eval.ts): 18 plain-language queries ("privacy regulations", "reducing video buffering") that should find a specific CV line. It runs the productionsearch_cvcode from Node against the real Vectorize index (evals/cloudflare.tsbacks the Worker bindings with the REST API) and reports hit@5 and MRR@5 for the hybrid search and for keyword matching alone. Fails below the floors (hit@5 0.9, MRR@5 0.75) or if the hybrid search ranks worse than keywords. - Mayor behaviour (
evals/mayor.eval.ts): 13 requests through the real prompt, model (Claude Haiku 5.5) and CV search, with the city tools stubbed as a running city (evals/mayor.ts). Code checks cover what can be checked exactly: the right tool and arguments ("Make it night" →set_time_of_daynight, a UFO →stage_eventufo_attack, a giant robot → a validstage_custom_eventspec with acrusheffect over Downtown), the tour asking first and then flying the recruiter route once, the fit-check format, no follow-up questions. An LLM judge (Claude Sonnet 5.5, structured output,evals/judge.ts) reads the reply against the CV and lists any claim the CV doesn't support, which covers invented facts, prompt injection and speaking as Adam.
Calls skip the AI Gateway cache, so each run samples the models again. Locally, put CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_EVALS_TOKEN (Workers AI read, Vectorize edit, AI Gateway run) in .env.evals.local; CI reads the CLOUDFLARE_EVALS_TOKEN secret. The evals have already caught real faults: the Mayor calling Adam a senior engineer at Synspective (he was Chief Technology Lead), stretching his 13-year career onto one skill, and ending a refusal with a question. Each was fixed in the prompt and the case re-run until it passed every time.
Try it in Claude: Claude → Settings → Connectors → Add custom connector, URL https://adamgoodapp.com/mcp (no login), then turn the connector on in a chat and ask, e.g. "Using AdamGoodApp mcp, show me the relevant work history where Rust is used." Claude Desktop without connectors: add {"mcpServers":{"adamgoodapp":{"command":"npx","args":["-y","mcp-remote","https://adamgoodapp.com/mcp"]}}} to claude_desktop_config.json (text answers only; no card).
The site is callable by AI agents three ways, all built from one set of TanStack AI toolDefinitions (src/mcp/definitions.ts):
- Remote MCP server at
https://adamgoodapp.com/mcp(Streamable HTTP, stateless, no auth). Add it as a custom connector in Claude or ChatGPT, or point the MCP Inspector at it. Tools:get_profile,list_districts,get_district_content,search_cv(the semantic search above),list_experience,list_skills,list_projects,get_contact,get_site_guide; resourcescv://profileandcv://sections/{district}(markdown). - MCP Apps card. Six of those tools carry
_meta.ui.resourceUri = ui://adamgoodapp/cv-widget.html: hosts that support MCP Apps render the answer as the site's own 8-bit CV card inline in the chat (src/mcp/apps/, built into one HTML file byvite.widget.config.ts; its font loads from/fonts). - In-page WebMCP tools on
document.modelContextfor browser agents (native WebMCP, or the MCP-B polyfill and extension): the nine data tools plus city control —get_city_state,focus_district,set_view,reset_view,open_district,close_district,highlight_district,highlight_spot(ring a landmark or point),set_time_of_day,control_simulation,show_message(a message bubble) andrun_tour(a guided camera tour with captions) — and city life:get_city_events(a news feed the simulation writes,src/city/events.ts: fire flare-ups, fire engine runs, bus arrivals, helicopter flights, festivals, disasters, plus landmarks),stage_event(fire flare-up, fire engine dispatch, helicopter launch, park festival, UFO attack, tornado, black hole, tsunami) andstage_custom_event(an event designed from a spec: actor parts, motion, effects).
curl -s https://adamgoodapp.com/mcp -H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_profile","arguments":{}}}'TanStack Start (React 19, file-based routing, SSR, experimental React Server Components via @vitejs/plugin-rsc) on Cloudflare Workers · three.js r186 (three/webgpu, TSL) · TanStack Store · TanStack Pacer · TanStack AI (chat, tool definitions, Anthropic adapter) via Cloudflare AI Gateway · Workers AI embeddings + Vectorize · MCP TypeScript SDK v2 + MCP Apps + MCP-B (WebMCP) · Tailwind CSS v4 · shadcn/ui + AI Elements + 8bitcn/ui · liquid-glass-react · Biome · Vitest · Playwright + axe · lefthook · GitHub Actions.
corepack enable pnpm
pnpm i
pnpm dev # http://localhost:3000 (?tier=webgl2|fallback forces a renderer, ?time=day|night pins the clock); MCP at /mcp, chat at /api/chat (needs CF_AIG_TOKEN in .dev.vars). Workers AI and Vectorize run remotely, so dev and preview need `wrangler login` or CLOUDFLARE_API_TOKEN; with CI set they are off and search_cv uses keywords
pnpm test # unit + component tests (builds the MCP Apps widget first)
pnpm build && pnpm e2e
pnpm eval # model and retrieval evals against real Cloudflare services (needs .env.evals.local)
pnpm preview & pnpm capture # re-render public/city.jpg and public/og.jpg.github/workflows/ci.yml runs on every push and pull request:
- check —
biome ci,tsc, Vitest, production build. - e2e — Playwright (desktop, mobile and fallback specs, axe scan) against
pnpm previewwith SwiftShader (no remote bindings in CI, so search is keyword-only there). - deploy — on
mainonly:wrangler deployto theadamgoodappWorker, which owns the custom domainsadamgoodapp.comandwww.adamgoodapp.com(www301s to the apex).
Required repository secrets: CLOUDFLARE_API_TOKEN (Workers Scripts edit + zone DNS/Workers Routes edit for adamgoodapp.com), CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_EVALS_TOKEN for the evals workflow.
src/
city/ three.js city (framework-free): renderer, camera, input, prefabs
world/ district builders (downtown, beach, theme park, …)
sim/ agents: traffic, people, planes, boats, rides, animals
disasters/ event spec, presets, building registry and the director that plays events
components/ React HUD, zone card/drawer, agent message bubble, static fallback
chat/ the Mayor chat dock (glass input bar, history, attachments)
chat/ Mayor chat server: system prompt, AI Gateway adapter, /api/chat handler
data/ CV content, CV queries, district layout, links
mcp/ tool definitions, in-page (WebMCP) and remote (/mcp) implementations
apps/ MCP Apps CV card (single-file widget build)
routes/ TanStack Start routes (/, /mcp, /api/chat)
server.ts Worker entry: TanStack Start's handler + Durable Object exports
start.ts request middleware (www → apex)
e2e/ Playwright specs
evals/ model and retrieval evals (pnpm eval)
docs/media/ README GIFs made with HyperFrames (tech deck, live-site recordings)
scripts/ snapshot capture
three.js · shadcn/ui · 8bitcn/ui · Simple Icons · Press Start 2P by CodeMan38