Static and file-based sites are fast and cheap, but they hit one classic wall: forms. A form has to send its data somewhere, and a plain static host has nowhere to send it. The usual answers are to spin up a backend, or to hand the job to a paid third-party form service that puts its branding on your site and your visitors' data on someone else's server.

There is a middle path: a site engine that handles form submissions natively - so you get a working contact form with no separate backend and no external service.

What a form actually needs

Strip a contact form down and it needs three things:

  1. Fields and validation - name, email, message; check they are filled in and well-formed.
  2. Spam protection - so bots do not flood your inbox.
  3. Delivery - send each submission somewhere you will see it: an email, a stored list you can read, or another service.

None of those require your server to run application code, if the engine serving your pages provides them.

The file-based approach

With a form-aware engine, you declare the form inside your page - the fields and a submit button - and point it at a delivery target. The engine renders a real HTML form with built-in anti-spam, accepts the submission, validates it, and delivers it. Your "backend" is the engine you were already using to serve pages.

Delivery options usually include:

  • Email - the submission arrives in your inbox.
  • A file - each submission stored for logging or offline processing, no email setup needed.
  • Another service - pass the data on to a chat channel or a CRM through a connector you set up once.

What you avoid

  • No separate server to build, host, secure and keep alive just for a form.
  • No third-party form SaaS - no per-submission fees, no external branding, no handing your visitors' messages to another company.
  • No database server - submissions can be stored as plain files.

Add one

lazysite has forms built in: write a :::form block in your page's Markdown, list the fields and rules, and name the handlers that deliver it - email, a file, a row in a data table, or a connector to another service. Every submission is also kept for the Submissions page in the manager, where you can read and export it, and a notice can reach you in the manager's bell or over XMPP. A long form can be split into steps, and file and image attachments can be switched on for a form, with spam protection out of the box.