Open-source project
airform/airform avatar
airform/airform

Airform for Static HTML Contact Forms

Functional HTML forms for Front-End Developers.

512 stars31 forksTypeScriptMIT

At a glance

What is it?
Airform accepts submissions from a standard HTML form through a hosted endpoint. The sender's page controls the markup while the endpoint handles the POST.
Who is it for?
Airform fits a static site that needs an ordinary contact form and can use the hosted POST endpoint. Teams that need to control submission storage, error responses, or downstream processing should use a handler they operate.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 78 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

Editorial analysis

The form stays in the page

Airform addresses a particular gap in a static site. A developer can write the contact form alongside the rest of the site, but the deployment may serve only files and have nowhere to process a visitor's message. The Airform example puts the form on the developer's page and sends the submission to an endpoint under airform.io. This is useful for a small project page or portfolio whose form collects a name and a message. The same HTML file still owns the labels, layout, and order of those fields. Changing the presentation needs a change to the site, while changes to how the hosted endpoint handles a submission happen on the service side. That division matters when a team has an existing static deployment and wants to add a contact route without introducing an application runtime there.

The action URL and named fields define the request

The example declares POST as the form method and puts the intended email address in the action URL. When the visitor presses the button, the browser submits the form to that destination. The text input has the field name name, and the text area has the field name message. Those names are the keys the endpoint receives. Labels help someone fill out the form and can be changed independently of those names. The same naming rule applies if the page adds a select element. A choice may be visible and usable in the browser even when the corresponding control lacks the name needed for submission. For a form linked from several static pages, check the action and the field names in each copy when you change which inbox the form targets.

Trying the upstream two-field form

Start with the plain HTML usage example from the Airform repository. It uses the browser's ordinary form submission and requires no application package in the static page.

html
<form method="post" action="https://airform.io/[email protected]">
  <input type="text" name="name">
  <textarea name="message"></textarea>
  <button>Send</button>
</form>

Replace the example address in the action with an inbox you control. Add visible labels to the two controls when adapting the example for visitors. From a preview of the page, enter a synthetic name and a short message that you can identify in the destination inbox. Verify that both fields arrive as expected and observe the page shown after submission. A rendered form confirms the markup appears on the page. Checking the request and the inbox exercises two additional stages that a visual preview alone cannot cover.

The hosted destination owns the next step

The action sends visitor data across a service boundary. The destination address is visible in the form markup, and the hosted handler receives the named values. Those choices suit a contact form where the destination is meant to be public and the contents are ordinary inquiries. An internal service request form may have different requirements, such as writing an auditable record to a database or presenting a custom error message after downstream processing. The repository's usage example establishes the request shape and destination. It leaves storage duration, delivery retries, and the response contract unspecified. These details affect the decision to send a particular category of information through the endpoint. A site owner should resolve them before using the same action for anything more sensitive than the initial contact workflow.

An application POST handler moves responsibility in-house

A team with an existing application server can implement a form handler on its own domain. The page can keep the same form submission model. Its action would point to a route that the team operates, and that route would parse the fields, apply validation, and decide whether to send email or persist a record. The team then owns the mail configuration, response behavior, and delivery investigation when a message fails to arrive. Airform moves the receiving endpoint out of the site's deployment. That changes where a maintainer can inspect a failure. With an application handler, the maintainer can inspect how the request is handled inside the application. With the hosted endpoint, the maintainer can inspect the markup, the outgoing browser request, the response, and the destination inbox.

The native form avoids the component packages

The repository also points to packages for Angular, AngularJS, Aurelia, React, and Vue. The root package manifest is private and describes repository tooling, including a formatting script and development dependencies. Its Node and npm engine fields belong to that manifest. The plain HTML example uses the browser to submit the form and has no dependency on those repository tooling versions. A framework application considering a wrapper should inspect the particular component and its compatibility before adding it. The repository carries the MIT license, which asks distributors to preserve the copyright and permission notice in copies or substantial portions of the software. That license covers the repository code. The hosted service remains a separate dependency for a form whose action points to airform.io.

Editorial conclusion

Airform fits a static site that needs an ordinary contact form and can use the hosted POST endpoint. Teams that need to control submission storage, error responses, or downstream processing should use a handler they operate. Verify receipt with a benign test message sent to an address your team controls before routing inquiries through the endpoint.

Frequently asked questions

Does Airform require JavaScript for its basic form?

The repository's plain HTML example uses a native form that submits by POST.

Where does an Airform form specify the recipient?

The documented form puts the recipient email address in the action URL.

Which controls need a name in Airform?

The Airform usage notes call for a name attribute on input, select, and textarea elements inside the form.

Official sources

  1. airform/airform on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases

Was this useful?