I have a confession. For the longest time, whenever a simple project needed a contact form, I'd just use a mailto:
link and call it a day, because I couldn't be bothered to set up a whole backend just for that.
When I did it "properly," it always felt like a chore. Writing a serverless function meant boilerplate. Pulling in a full BaaS felt like bringing a cannon to a knife fight.
So, I finally built a little utility for myself to solve this: formcare.io.
It's basically just an endpoint that you can point any existing HTML form to.
How it works
- Sign up and create a new endpoint.
- It gives you a unique URL.
- You stick that URL in your
<form action="...">
attribute. Done.
Here's an example:
<form
action="https://formcare.io/api/submit/your-unique-slug"
method="POST"
enctype="multipart/form-data"
>
<input type="text" name="name" placeholder="Your Name" />
<input type="email" name="email" placeholder="Your Email" />
<input type="file" name="attachment" />
<button type="submit">Send</button>
</form>
It handles multipart/form-data
(so file uploads work out of the box) and also application/json
for JS-heavy sites. The submissions just show up in a simple dashboard.
I'd love your feedback
I'm posting this here because I'm genuinely not sure if this is just a 'me' problem or if other devs find this as annoying as I do. I'd love for you to take a look and tell me what you think.
Is it solving a real problem? Is something totally broken? Did I just reinvent the wheel for the 1000th time?
Maybe it helps someone save some time at least. Thanks to everyone who reads this.
Top comments (0)