Introducing... Umami
Monday, April 20, 2020
Tags:Web DevelopmentJavaScript
Umami is a simple, opinionated static site generator. It's what powers this blog. It's also very much pre-alpha software.
When I sat down to create myself a new website, I first tried Gridsome - which is awesome btw - but it didn't quite fit what I wanted. So I started writing something from scratch, and fairly early on I decided to separate the generator code from the content. That generator code grew up into Umami.
I wrote elsewhere about this site and my intentions for it, and that's very much tied up with where I see Umami going. At the moment it's a static generator, but it's probably going to evolve towards a static generator/SSR hybrid. It's primary use case is to be my platform on the IndieWeb.
Umami uses Pug for templating, Markdown and Yaml for content, and supports PostCSS and Babel transformations for CSS and JavaScript/TypeScript. It generates Brotli and Gzip precompressed outputs, suitable for static servers. Configuration is fairly straightforward.
The major area I'm working on right now is the asset handling pipeline: finding the best way to handle images, media, webfonts, etc.
When I talked about this website, I said I wanted to implement ActivityPub further ahead, as well as the underlying LDN and LDP standards.
That's further ahead, but a key enabler is going to be incremental generation - that means only generating those outputs which depend on new/changed inputs. It's not a particularly novel concept, but putting it into Umami is going to be the next major architectural work I do. Watch this space... I feel a library coming on...