Introduction
TEKUEI is my personal website. It holds my projects and writing, and it is where I try out interaction, visual design and front-end engineering. No part of it comes from a ready-made template, from the brand identity and interaction design to the front end, back end and deployment. This page records how it was built.
Starting points
The site is a piece of work in its own right, so before building it I wrote down five things it had to do:
I want to write one draft, in Chinese, and have AI help with the English.
Every detail should be as good as I can make it, worked over slowly the way a Japanese craftsman shapes a piece.
The site is the archive of my digital assets. Projects, writing, photos and videos all live on my own site.
Publishing should take no effort. A post or a case study takes a few minutes, so there is no separate admin.
Performance cannot suffer. Most readers tap through from Threads, Instagram and LINE on a phone, and however much motion there is, the PageSpeed performance score has to stay above 90.
Visual style
The palette is deep black, ivory and a little warm gold, set in Instrument Serif and Noto Serif TC for the feel of a printed publication. Each of these choices is a rule. Colors come only from variables, and gold marks only the current page, focus and hover, about 5% of the screen. Weights are only 300 and 400, because only those two weights of Noto Serif TC are loaded, and anything heavier becomes a bold the browser fakes.
Project pages are laid out like a printed catalogue, and each heading becomes a chapter. In the contents, each chapter's dimension line is as long as that chapter really is on the page. The browser measures it live and measures again when the layout changes, so readers know how long each chapter is before they start.
Motion and interaction
Tap the koi pond on the home page and the text across the page bends with the ripple. The bend is an SVG filter, and it can only sit on <html>, because a filter on any other container breaks position: fixed inside it. The root element is the one exception.
The language button sends the same ripple and swaps the language at 0.3 seconds, when the ripple is strongest. Chinese and English have separate URLs, but switching counts as the same page. It does not scroll back to the top, move focus or fetch the data again, so the text changes right at the peak of the ripple.
Code as a design medium
The character koi on the home page is the site's signature experiment. I wanted to see whether characters, which normally carry information, could become the units a picture is built from. Each koi is drawn in monospace characters, denser where it is brighter.
An algorithm computes each koi's shape and swimming, following the physics of real fish. A tail beat gives thrust, and drag grows with the square of speed, so a fast koi slows quickly while a slow one glides for a long time. Each koi switches between four states, cruising, drifting, darting and startled. The koi make way for each other and turn early to keep clear of the text in the corners.
// Drag grows with speed squared, so a fast koi slows quickly and a slow one glides for a long time.
// Spread fins (braking for a koi or a wall) and a bent body add drag.
const drag = 1 + 0.6 * Math.max(crowded, walled) + 0.5 * Math.abs(k.turn)
k.speed = Math.max(0, k.speed + ((thrust * thrust - drag * pace * pace) * k.cruise * dt) / GLIDE_S)
if (k.stroke) k.phase += dt * TAU * (BEAT_HZ + (thrust * k.cruise) / (STRIDE * L))The grainy glow under the koi is drawn live in WebGL, and its light and shade drift slowly.
Motion must not slow the page down, and the pond is the heaviest part of the site. The loop used to draw at the screen's refresh rate, and under Lighthouse's 4x CPU slowdown it took 3.4 to 4.6 seconds of main-thread time in a 3-second trace. Drawing 30 times a second, with the simulation still on fixed steps, brought that down to 0.9 seconds. The koi still appear right after the page loads, and the score does not come from hiding them. The live site scores 97 to 98 on mobile and 97 to 100 on desktop in PageSpeed. When the system asks for reduced motion, the koi stay still.
From design to engineering
3 photosMotion and interaction are hard to show in a static mock-up, so some of the design was done directly in code. Most of the code was written with AI. AI writes fast and drifts from the rules easily, so I set up the component library and the rules first and let the repo check the code AI hands in. I don't have to hunt for problems myself every time.
Before building any interface, the AI checks the Component Library in development mode. It uses a component that exists, adds a variant when one almost fits, and asks me before creating a new one.



The whole site is strict TypeScript with no any or @ts-ignore, and data from R2 is parsed once at the boundary, so a wrong guess about a type fails the build instead of shipping. AI-written code tends to carry section banners, dated comments and words like "seamless", so I wrote a custom lint rule that blocks them. The same script checks CSS for raw colors, weights and spacing, and it runs on every change:
const CHECKS: [RegExp, string][] = [
[/(──|-{3,}|={3,})\s*\S.*?(──|-{3,}|={3,})/, '區塊橫幅:刪掉,或改成一般註解'],
[/\b20\d\d-\d\d-\d\d\b/, '日期:決策歷史寫在 commit message'],
[/eslint-disable|@ts-ignore|@ts-expect-error/, 'lint 抑制:改程式碼讓規則通過'],
[/—/, 'em dash:英文改用句號或逗號,中文寫「──」'],
[/\b(utili[sz]e|leverag|delve|seamless|pivotal|crucial|showcas|testament|tapestry|vibrant|additionally|furthermore)/i, 'AI 用詞:換成簡單的字'],
]What you see is what you get
4 photosA separate admin is one more system to look after, so the site's front end is its back end. In edit mode I change the text right on the page, and what I see is what readers will see.
The editor is Tiptap, and posts are stored as JSON documents. An upload is named after its content, so the same photo uploaded twice is stored once. An unpublished post saves itself 3 seconds after I stop typing. A published post does not autosave, so a half-finished edit never goes live.




One draft
The translate button in the panel sends the Chinese draft to the Qwen model on Cloudflare Workers AI and puts the result into the English draft. The model is called through the Worker's AI binding, so there is no API key. The free allowance is 10,000 Neurons a day, and only a signed-in editor can use it.
Sending the whole document could change attributes or translate code, so the front end takes it apart and sends only the paragraphs, captions and alt text. Bold text and links travel inside tags, and each translation goes back where it came from. Long posts go in batches, and each batch finishes under Cloudflare's 100-second request limit.
The first translation of the About page got my name, a company name and "more than ten exhibitions" wrong, so names and numbers became fixed rules:
- Keep the tags <t0>, </t0>, <br/> exactly as given, around the matching words.
- Keep every number, year and quantity exact. 10 餘場 means "more than ten", never "over a dozen".
- Leave no Chinese characters in the translation. Use these names exactly:
- 朱德溎 (his full name): Te-Kuei Chu. Wade: Wade Chu when a surname is needed.
- TEKUEI 德溎 or 德溎 alone (the brand): TEKUEI.Cloudflare Worker
The whole site is one Cloudflare Worker. React Router renders the full HTML of every page on the server, so the content reads without JavaScript. The title, canonical, hreflang and JSON-LD come from the server too, so search engines and AI crawlers get the complete page.
All content is one JSON file in R2. When two tabs edit at once, the later save would overwrite the earlier one, so a save passes two checks. The server first compares the ETag the browser loaded, then writes with R2's conditional put (onlyIf), which catches anyone who saved between the read and the write. If either check fails, the server returns 409.
const denied = await adminGate(request, env)
if (denied) return denied
const prev = await prevRead
if (prev?.etag !== bareEtag(request.headers.get('If-Match'))) return json({ error: 'Stale', stale: true }, 409)
const saved = await env.BUCKET.put(DATA, JSON.stringify(merged), {
httpMetadata: { contentType: 'application/json' },
...(prev ? { onlyIf: { etagMatches: prev.etag } } : {}),
})
if (!saved) return json({ error: 'Stale', stale: true }, 409)Screens
7 photosTech
React 19, React Router 8, TypeScript, Vite, Tiptap, Canvas 2D, WebGL, Cloudflare Workers, R2, Workers AI, SEO, AEO, GEO
