Building Humpff with Astra and Emdash
How I rebuilt Humpff.com with Astro, EmDash and Coolify
The first version of Humpff.com ran on Laravel, with Twill as the CMS and Coolify handling deployment. I wrote about that setup when it went live, and it did its job. Then a designer gave me a new prototype for the site, and I used that as a reason to look at the whole stack again. Two of the three pieces changed. Coolify stayed.
Here's how the site is built now, and why.
Why I moved away from Laravel and Twill
Laravel and Twill are still good tools. For an application with heavy business logic, I'd pick them again. But Humpff.com is a portfolio and a journal, and the new design is built almost entirely from content blocks: on the home page, the about page and every case study.
That changed what I needed from a CMS. I wanted the content model and the front end in one typed codebase, so that adding a block type without building it is caught before it ships. With Twill, the block definitions and the templates that render them lived in different places, and nothing checked that they matched. EmDash does that check, and it's one of several reasons I list below under "What sold me".
Astro for the front end
Astro renders every page on the server and sends plain HTML. An .astro component is HTML with a small script block on top, so if you know Blade you'll feel at home quickly. Styling is Tailwind CSS v4. The design tokens (colours for the dark and light themes, the type scale, spacing) live in one CSS file.
I kept the JavaScript small on purpose. There's one module per behaviour: the header, the theme toggle, the filters, code copy, the article contents list and the contact form. Each one checks whether its elements are on the page and does nothing if they aren't. The whole bundle is about 50 KB gzipped. Everything you read works with JavaScript turned off. The one exception is the contact form. It uses Cloudflare Turnstile against spam, which needs JavaScript, so without it the form doesn't appear. My email address stays visible next to it, so you can always reach me.
The motion uses GSAP, with one strict rule: content can never stay hidden. Visitors who prefer reduced motion get no animation. If the script fails or takes too long to load, everything simply shows up. A hidden headline is worse than a missing animation.
EmDash for content
EmDash is a CMS built on Astro, with a full admin UI. This part made the rebuild worth it for me.
What sold me:
- The schema lives in code. One seed file defines the collections, fields, taxonomies, menus and block types. A fresh install starts with the full structure, not an empty admin.
- Types come from the schema. Every page block maps to a component, and the type check fails until each block has one. I can't add a block type in the admin and forget to build it.
- Content is structured. Articles are stored as Portable Text instead of HTML blobs, so code blocks get syntax highlighting and a copy button without any copy-pasted markup.
- SEO is built in. Every entry has an SEO panel, and the sitemap and
robots.txtcome out of the box. I only added fallbacks: the summary becomes the meta description, and the card image becomes theog:image. - Plugins are first-class. The contact form is an EmDash plugin. It validates input with rules shared between the browser and the server, checks Cloudflare Turnstile and a rate limit, and stores messages in the admin instead of a public collection.
The content model is small. There are projects (case studies), posts (this journal), pages (home, about, contact and anything I add later) and one entry with site details such as my email, location and availability. Pages are built from blocks, so I can rearrange the home page without touching code. Case studies have their own blocks: text, images, splits, architecture diagrams, code, galleries, quotes and results.
Coolify for hosting
Coolify is the one piece that didn't change. It builds the site from a Dockerfile and deploys every push to main. The container runs Node on Debian, and the database is SQLite on a persistent volume, so there's no database server to manage. Media lives in a Cloudflare R2 bucket on its own subdomain, and the admin uploads files straight to it. Cloudflare sits in front of everything.
Before anything reaches main, GitHub Actions runs the tests, the type check and a production build on every pull request. Dependabot opens weekly update PRs, so the dependencies don't quietly fall behind.
What broke along the way
Every rebuild has its own surprises. These were mine:
- The honeypot that ate real messages. The contact form's spam trap was a hidden field named
website. Browser autofill and form-filling extensions treated it as a normal field and put text in it. Real visitors got a friendly "Message received" while their messages went nowhere. The field now has a name no autofill recognises. Lesson: test your forms without extensions that fill them in. - Slow deploys. Node running as the container's main process ignores the shutdown signal, so Docker waited 10 seconds and then killed it, on every deploy. One Docker option,
--init, fixed it. - Search decided the base image. Full-text search needs SQLite's FTS5 extension. The container runs on
node:26-trixie-slim, which is Debian 13, and that version includes FTS5. That's why the site runs on Debian. - A health check that lied. With the storage settings missing, media requests failed while the health endpoint kept returning 200. Now the storage variables are set before a deploy, and the deploy notes say so. A green health check doesn't prove the site works.
- A 404 page that lived on localhost. Canonical URLs were built from the request origin, which on the production 404 page was
localhost:4321. They now always use the public site URL.
Would I recommend this stack?
For a portfolio, a blog or a marketing site that one or two people edit: yes. Astro gives you fast pages with very little JavaScript. EmDash gives you a real admin and a typed content model without a separate backend. Coolify lets you run your own hosting without spending your evenings on it.
One honest caveat: EmDash is young. Version 1.0 came out in April 2026, so there are fewer plugins, examples and answers online than you'd find for Laravel or WordPress. Expect to read the source now and then.
If you want to try it yourself, start with the Astro docs, Astro's own EmDash guide and the EmDash documentation. The code is on GitHub.