2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00
2025-12-08 20:54:02 +01:00

Form Generator

A lightweight application for generating dynamic form websites and storing user responses. The form fields, labels, and behavior are fully configurable via a TOML configuration file.

Usage

The server will listen on 127.0.0.1:8081 by default. You can override with:

SERVER_PORT=8082 form-generator

Configuration

The application is configured via a TOML file (default: config.toml).

See config.toml for an example.

Configuration Fields

  • json_output: Path to the JSON file where responses are stored.

  • submit_button: Text displayed on the forms submit button.

  • fields: List of form fields

    • name: Internal key for storage.
    • title: Label displayed in the form.
    • description: Short description displayed below the field.
    • answer_type: Type of input (text, number, email, password, url, tel, textarea).
    • html_before (optional): HTML snippet rendered before the field.
    • html_after (optional): HTML snippet rendered after the field.

Lib

This crate also provides a library so you can run the form server alongside another app.

Description
No description provided
Readme 331 KiB
Languages
HTML 55.1%
Rust 28.8%
Fluent 6.1%
Nix 5.9%
CSS 4.1%