Hall
A personal website I built for myself. It serves as a portfolio with all the projects I've built, along with my writing and other content. Built with Astro and plain CSS, mostly in OpenCode.
The rooms
- - Projects: a list of my solo projects.
- - Writing: my posts pulled directly from Substack and LessWrong.
- - Letterboxd: my Letterboxd diary.
- - Music: a shelf with some of my favorite albums.
- - Tools: usable stuff.
Building it with agents
The website was built mostly in OpenCode. I basically didn't touch the code at all — most of my input, other than what to build where, was for iterating over the designs, most of the writing, and doing research to debug some hard-to-pin-down technical problems (like making the pointer trail work properly).
Stack
The site is built with Astro and TypeScript, with no UI framework and vanilla JavaScript where something needs to be interactive. The site is static and rebuilds automatically every hour, which re-fetches whatever comes from an API, like the film diary or the blog posts, and once a day the prices used by the DCA simulator.
The music shelf
The music room is a curation of some of my favorite records.
The front cover faces left, and clicking a record "pulls it out" to show it, clicking it again rotates it to show the back and the title with a Spotify link appears. The state is tracked with radio buttons: each record has one for its front and one for its back, and they all share the same name, so that only one can be checked (open) at a given time. CSS then reads the :checked state to move and rotate the record.
The data lives in a JSON file generated by a build script, which pulled the cover art and tracklists from MusicBrainz. Records off screen are hidden, which keeps a long shelf cheap to render and allows us to scale.
The DCA simulator
I put in the tools room a dollar-cost averaging simulator. You decide an allocation across the S&P 500, NASDAQ 100, Magnificent 7, gold, bonds and Bitcoin, than you can choose either a lump sum spread over a fixed duration or a fixed amount per month, and set a start date for the back test. It then shows what that schedule would have done historically: portfolio value against invested capital, monthly returns, the distribution of those returns and the average return by year, plus stats like the annualized return and the drawdown.
Everything runs in the browser, and the simulation runs in a web worker so the page stays responsive. A build script updates the daily prices once per day and saves them as a static JSON file.
OpenCode