Building features I don't need so others can use Puls
When I released Puls I wrote that you just drop one PHP file on a server and you’re done. And for me that’s true. I run it on Forge like everything else.
But I have thought about it for a while. If it’s only easy for me, it’s not really for anyone else. So during the spring I built a bunch of things I don’t use myself.
Docker
I don’t run Puls in Docker. I don’t need to.
But a lot of people who self-host things do it with Docker and nothing else. If there’s no image, there’s no Puls for them. Simple as that.
So now there is a Dockerfile. It’s built on Alpine with PHP’s built-in server and ends up around 110 MB. The entrypoint
sets everything up on the first start and creates an admin user from an ADMIN_PASSWORD environment variable. I also
added a docker-compose.yml so it’s one command to run it locally.
Every release is a ready-made image on GitHub’s registry too, so you don’t even have to build it.
One-click deploys
It’s the same reason here. Some people don’t want a server at all, so there are configs for Render, Railway and Fly.io and a deploy button in the install guide.
Since I host most of my stuff on DigitalOcean, that was the first one I set up. But their App Platform doesn’t have persistent disks for Docker apps, and Puls uses SQLite, so the database would disappear on every deploy. I replaced it with Fly.io, which has volumes.
White-label
If you run Puls for clients, maybe you don’t want it to say Puls. So APP_NAME, APP_TAGLINE and APP_ACCENT in
.env change the name, the tagline and the colour on the login, the dashboard, the manifest and the favicon. A small
“Powered by Puls” stays in the footer.
A CLI you don’t have to read docs for
Every command you type yourself works without arguments now. Run php puls share:create and it asks which site and when
the link should expire, instead of failing because you forgot a flag.
I added it because I kept forgetting the arguments myself. But it’s even more important for someone who has never used it before.
Shareable dashboards
This one I did need. Clients want to see their stats without getting an account. So now there are read-only links with a token, scoped to one site or a group of sites. It turned out to be useful for other things too. Odlingsguiden pulls its monthly report through one.
Accessibility
The dashboard scored 71 on accessibility in Lighthouse. Not great for something I want others to use.
I started with the quick wins: labels on icon buttons, a skip link, reduced motion and better contrast on muted text. Later I did the bigger parts: tabs that work with arrow keys, dialogs that keep focus inside and give it back when you close them, every clickable row reachable from the keyboard and a status line for screen readers.
None of it changed how the dashboard looks.
Why bother
To be honest, I don’t know how many people run Puls. It doesn’t phone home, so I have no way of knowing, and that’s kind of the point.
On GitHub Puls has 11 stars and two forks, and since October I have had some real help: bug reports for things I had missed and pull requests that are part of Puls now.
But if someone finds it and wants to try it, I don’t want them to give up in the first ten minutes. Every one of these things removes one reason to do that.
And it’s the same thing we’re learning with Odlingsguiden. It doesn’t matter how good something is if people can’t get to it.
Puls is on GitHub if you want to try it. Ten minutes should be enough.