I plan to iterate on my feedback Membrane program—maybe starting with a Hono router—and write more about it here. In the meantime, feel free to give me a nudge or lmk what you think with the new form below.
Writing a feedback form with Membrane
- Planted:
I added a feedback form at the bottom of each post in my garden using membrane.io. You can skip to the bottom of this page to test it out, or watch a demo on Twitter.
With Membrane it’s simple to deploy HTTP endpoints and email yourself programmatically (among many other features). This is the bare bones code I wrote in a Membrane program to handle form submission:
Every Membrane program comes with an endpoint URL, which you can use to write an API, serve some markup, handle webhooks, etc. Right now my little feedback program is just handling form submissions on POST
, but I could also serve the form on GET
requests (using vanilla HTML or a framework like HTMX or Hono).
Backlinks
Reply
Respond with your thoughts, feedback, corrections, or anything else you’d like to share. Leave your email if you’d like a reply. Thanks for reading.