Self-Hosted Contact Forms for Small Business Web Apps in Go
MiForm gives small businesses a simple, secure way to collect client inquiries while keeping data locally.

MiForm is a lightweight, self‑hosted form backend built on PocketBase that provides SQLite storage, email, and spam protection. It lets small businesses avoid paid services and retain full control over submissions.
Why a Self‑Hosted Form Matters for Small Business
Many small businesses rely on contact forms to capture leads, support requests, and feedback. Hosting these forms with a third‑party service means paying recurring fees, depending on external uptime, and handing over user data to an outside provider. A self‑hosted solution shifts control back in‑house, eliminates subscription costs, and allows the business to keep submission records locally while still delivering a professional experience for visitors.
The need for privacy, data ownership, and cost predictability drives small business owners to look for lightweight alternatives that do not require a full‑blown CMS or extensive development effort.
What MiForm Offers Out of the Box
MiForm is an open‑source, MIT‑licensed contact form backend written in Go and built on PocketBase. It bundles SQLite storage, automated backups, SMTP email delivery, an API, logging, and hooks – all packaged in a single binary. This means a small business can deploy a functional form system without installing a database server, configuring a web framework, or managing multiple services.
The tool accepts submissions via standard HTML form POST, AJAX fetch calls, or PocketBase REST collection hooks. It handles JSON, URL‑encoded, and multipart data, and supports routing through a hidden access key or a URL path like /submit/{access_key}. Email notifications are generated in both responsive HTML and plain text, preserving the exact order of form fields and using humanized labels. An admin dashboard inside PocketBase lets owners set app metadata, SMTP settings, and even schedule S3 backups.
Security and Reliability Features
Spam protection is built into MiForm. A hidden honeypot field catches bots silently, and any submission containing raw HTML links is automatically rejected and flagged. The system verifies the origin or referer domain with wildcard support, integrates Cloudflare Turnstile when needed, and enforces rate limiting on the submit endpoint. Trusted proxy headers are respected, making it easy to work behind Cloudflare or similar services.
Every submission is archived in a PocketBase collection with status tracking – sent, spam, or failed. This audit trail gives business owners visibility into form performance and helps troubleshoot delivery issues. Optional autoresponders let the system send a confirmation email back to anyone who provides an address, reducing manual follow‑up work.
Getting Started Without a Full CMS
Because MiForm runs as a Go binary, installation is straightforward. Developers can clone the repository, copy the example environment file, and run the server locally with Go. For those who prefer container isolation, a Docker image is provided, and a docker‑compose snippet shows how to map ports and persist data. The admin UI is accessed via the PocketBase dashboard, where forms are created, SMTP credentials are entered, and backup schedules are configured.
The form integration is simple: an HTML form points its action to the /submit endpoint, includes a hidden access_key field, and can add optional subject, redirect, or honeypot fields. The same endpoint can be called directly from a URL or via AJAX with a JSON payload. No additional plugins or complex configuration are required to start collecting inquiries.
Takeaways
- MiForm eliminates SaaS subscription costs while giving small businesses full control over contact data and email delivery.
- Built‑in spam protection, rate limiting, and audit logging provide security and reliability without extra tools.
- The solution runs in a single Go binary or Docker container, avoiding the overhead of a full‑stack CMS.
Where would this work in your business?
Take the two-minute AI Opportunity Snapshot and we will point to where automation is most likely to pay off for you.