Akki BhatAll the builds

For anyone curious about drinks

Bar

A cocktail course and a shelf of my own drinks, on one site.

2025 to 2026
Next.js, TypeScript, Cloudflare Workers, Bar Assistant API

bar.pi.co.nz

A cocktail site in two halves, built with Next.js and TypeScript and served from Cloudflare Workers. Barbook is thirty-seven chapters on what sits behind a bar and what to do with it: how each spirit is made, what beer is, the seven methods, ice, glassware, tools, service, and the small set of structures most cocktails share. Backbar is the drinks I've made up, each with the build in millilitres, the method as steps, and a note on why it's put together that way. It's laid out like a printed menu, with Bodoni for the names, wide small caps for the labels, and measures running to the right edge behind dot leaders. Every page is prerendered, there's no server, and nothing a reader types is uploaded.

The front door. Two halves, each listing what is inside it.
Barbook's contents, set as a printed index: nine parts, thirty-seven chapters.
A chapter opens with its part's numeral hung in the margin.
Backbar: the drinks as menu lines, with the filters kept out of the way.
A drink page, built as a spec sheet with the method and a drawing of the glass.
The spirit explorer, as a ledger rather than a grid of cards.
Which glass: shapes drawn to one set of rules, each drink linked to its page.
Strength and dilution, a calculator printed like a spec.
On a phone: the same pages, in one column.

The problem

I worked my way up from front of house to general manager. Along the way I wanted to take what I’ve learned in hospitality and as a cocktail bartender and share it with anyone curious, and to show the cocktails I’ve created myself.

How it works

The drinks live in a Bar Assistant instance that requires a personal API token, and a static public build can’t hold one. A script on my machine reads the API and writes the results into a committed TypeScript file, so the deployed site makes no API calls at runtime and the token never leaves my laptop. An earlier version proxied every request through its own server routes, which only works for as long as something is running.

Chapters are written and edited in Markdown and imported back into the site. The importer replaces one string literal at a time and checks each appears exactly once, stopping rather than guessing when it doesn’t. That round trip exists because chapters aren’t stored as HTML: they’re an ordered list of typed blocks, which lets a spec sheet or a working dilution calculator render inline between two paragraphs with no markup parsing. The structure suits the site and makes prose awkward to write directly.