Repository navigation
formd is a self-hosted form backend for static sites: one Go binary next to your site that accepts submissions, filters out bots without a captcha, stores them in SQLite and sends email through your SMTP server or Amazon SES.
Website with a live demo: https://formd.top
What's new: English and Polish
formd now speaks English by default and Polish on request.
- Panel, emails to you and the CLI follow the new
FORMD_LANGsetting:en(default) orpl. New forms get default field labels and email texts in that language; existing forms keep their own. - Visitors get messages in the language of your page.
formd.jsreads thelangattribute nearest to the form (usually<html lang>), shows its messages in English or Polish, and passes the language to the server so that field errors match. A plain form post without JavaScript uses the browser'sAccept-Language. No configuration is needed on a Polish or an English site. - Other languages still work through the
data-formd-*attributes on the form. - Polish mode shows exactly the same texts as before: every English message has a Polish entry, and a test fails if one is missing.
- The example form is now in English (
examples/contact.html), with the Polish one inexamples/contact.pl.html.
Upgrading from v0.2.0
The panel is now in English by default. To keep it in Polish, add this to /etc/formd/formd.env:
FORMD_LANG=plThen replace the binary and restart: sudo systemctl restart formd. There are no database changes. Existing forms keep their labels and email texts.
Visitor messages on Polish pages (<html lang="pl">) stay Polish. If your pages have no lang attribute, or an English one, visitors now get English messages; set lang="pl" on the page to keep Polish.
Install
# Linux x86-64 (for ARM use formd-linux-arm64)
curl -LO https://github.com/dc9-dev/formd/releases/download/v0.3.0/formd-linux-amd64
curl -LO https://github.com/dc9-dev/formd/releases/download/v0.3.0/SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS
sudo install -m 0755 formd-linux-amd64 /usr/local/bin/formd
formd version # v0.3.0Or from source: go install github.com/dc9-dev/formd/cmd/formd@v0.3.0 (Go 1.27.2+). Full guide: formd.top.
Files
| File | Platform |
|---|---|
formd-linux-amd64 |
Linux x86-64, statically linked |
formd-linux-arm64 |
Linux ARM64, statically linked |
SHA256SUMS |
checksums |
Built from commit f5a7f5c with Go 1.27.2 (CGO_ENABLED=0, -trimpath).
