chr15m 7 hours ago

A few weeks ago I wanted to enter the js13k game competition with ClojureScript and Reagent but I couldn't get builds to fit under 13kb. So I forked a Reagent-like library (Mr Clean) and ported it to a ClojureScript-like language called Squint-cljs.

I used an LLM-driven process:

1. Find valid Reagent forms that don't work. 2. Create an isolated failing test case. 3. Coach the LLM through fixing it.

Eucalypt is the result: a Reagent-compatible-ish library that produces ~10kb single-HTML-file builds. It supports r/atom, r/render, and form-1/form-2 components.

If you want to try it yourself:

npm create eucalypt myapp cd myapp npm install npm run watch

This has been super fun to work on. It feels like magic being able to use a LISP to compile a self-contained web app in a tiny single HTML file artifact. I hope you find it useful. I'm still hacking on this and PRs are most welcome!