How it's built
Every number on this sheet comes from this build or from your own request. None of it is typed by hand.
1 · Your request, up close
How this page reached you
This site deploys itself: every push is tested, then goes live in about a minute.
Connecting…
- Last deploy
- 11 Oct, 04:03 am IST, from main
- Push to live
- 66 s, typical of the last 10
- Visits today
- –
Revision4.7
Build7d79112
Statusstatic
2 · How it got here
git push · main → GitHub Actions → wrangler deploy · see the run
3 · What shipped with this build
- 7d79112Footer: own class names so the project cards' .foot row stops picking up its styles11 Oct 2026
- 892557aProject cards: tidy the bottom row with a rule, smaller arrow, handwritten note on its own line on phones11 Oct 2026
- 1a5f578Footer: a bar that mirrors the nav and closes the sheet11 Oct 2026
- 4136878Footer: one mono line under a drawing-scale ruler10 Oct 2026
- a04a763modifed .gitignore10 Oct 2026
- c096f94Footer: one slim title-block strip instead of the tall panel10 Oct 2026
- 032de1eFooter drawn as the bottom of the sheet: general notes, contact buttons, title block from the real build10 Oct 2026
- beaa442updated resume10 Oct 2026
- 0eab1deDeploy story top to bottom, sheet margin on wide screens, clearer links, new preview image9 Oct 2026
- ca45814Cards: round case study arrow instead of the strip; honest 300+ sign-ups wording; bigger photo9 Oct 2026
4 · What the homepage weighs
- HTML
- 10.5 KB
- CSS
- 5.3 KB
- JavaScript
- 138.2 KB of a 150.0 KB budget
- Fonts (preloaded)
- 91.6 KB
- Total, gzipped
- 245.6 KB
the build fails if JavaScript goes over budget
5 · The Worker, annotated
01 The two endpoints
The page asks the Worker for the live numbers. The ping never counts as a visit, and if the counter breaks, the endpoint still answers so the page does not.
See the codeHide the code worker/handlers.ts · 31 lines
const NO_STORE = { 'cache-control': 'no-store' };
const json = (body: unknown, status = 200, headers: Record<string, string> = {}) =>
new Response(JSON.stringify(body), { status, headers: { 'content-type': 'application/json', ...NO_STORE, ...headers } });
export const utcDay = (d: Date) => d.toISOString().slice(0, 10);
// The browser times this round trip. It never counts as a visit.
export function handlePing(req: Request): Response {
if (req.method !== 'HEAD' && req.method !== 'GET') return json({ error: 'method not allowed' }, 405, { allow: 'GET, HEAD' });
return new Response(null, { status: 204, headers: NO_STORE });
}
export async function handleVisit(
req: Request,
hit: (day: string) => Promise<number>,
build: { sha: string; time: string; tests?: number | null },
now = new Date(),
): Promise<Response> {
if (req.method !== 'GET') return json({ error: 'method not allowed' }, 405, { allow: 'GET' });
const colo = (req as Request & { cf?: { colo?: string } }).cf?.colo ?? null;
let visitsToday: number | null = null;
try {
visitsToday = await hit(utcDay(now));
} catch (err) {
console.error('visit counter failed', err); // the panel shows "–"; the rest still works
}
return json({ colo, visitsToday, build });
}
export const notFound = () => json({ error: 'not found' }, 404);02 Today's count
The count lives in a Durable Object, so two visits at the same moment never overwrite each other and no count is lost.
See the codeHide the code worker/visit-counter.ts · 12 lines
import { DurableObject } from 'cloudflare:workers';
import { nextCount, type DayCount } from './counter';
// One global instance. Durable Object storage is strongly consistent, so two
// visits at the same moment never overwrite each other's count.
export class VisitCounter extends DurableObject {
async hit(day: string): Promise<number> {
const next = nextCount(await this.ctx.storage.get<DayCount>('today'), day);
await this.ctx.storage.put('today', next);
return next.count;
}
}6 · Decisions
- Chose A static export over a Next.js server, because every page is the same for every visitor, so plain files are faster and have nothing to patch.
- Chose Cloudflare Workers over Pages, because one deploy serves the files and the two small APIs, and it is where Cloudflare is putting new features.
- Chose A Durable Object over KV, because KV is eventually consistent, so two visits at once could lose a count; a Durable Object cannot.
- Chose Plain CSS over a CSS framework, because the design has a handful of components, and tokens in custom properties cover them.
- Chose A native <details> toggle over a JS accordion, because the code is readable with JavaScript off and ships zero bytes of script.