Hacker News new | ask | show | jobs
Show HN: Self-Hosted Contact Forms for Your Web App in Go (github.com)
3 points by Lord_Zero 17 days ago
I have been moving off of large complex CMS platforms and I realized most of my sites could be static sites with a contact form. There are paid SaaS options out there, but miform is free self-hosted MIT!

It is built on PocketBase https://pocketbase.io/, so you get sqlite db, backups, email, API, logging and ability to extend it in any way you can imagine via hooks.

I have considered combining it into one project with mistatic, so you get the static website hosting component, and the forms handling in one binary/container

1 comments

I'm not sure if you're aware of Hugo, but it is a static website generator built in GoLang. The basic gist is that you build out the templates and then a build process does all the work for you. I took some of my websites a step forward in implementing a data repeater that integrates with the templates via a JSON file. The reason I bring this up is because I believe they tend to recommend formsubmit.co which looks to be super similar to what you're doing, but it feels much simpler in that all I had to do after setting up an account was set my form method to POST and the action to "https://formsubmit.co/{whatever account here}".
Yes you got it exactly! Formsubmit is free but it is not self hosted. You send them your data, you can't costomize or change anything. Miforms is for self-hosters who want to retain and control their data, logs, choose where to host their containers and more.

I am familiar with static site generators like Hugo, you can use any static site you want with my form just like you could with formsubmit. I actually have another free and open source product called mistatic which allows you to self-host your static sites as opposed to using cloudflare pages or AWS S3 or whatever. Check it out.

That's really cool, thank you for telling me about this.