Skip to content

Packs / forms-and-surveys-public

form-inbox

Take a website form submission safely (validation, honeypot, rate of fill) into a CSV or Google Sheet

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-forms-and-surveys-public

Install

logicpacks pack use forms-and-surveys-public/form-inbox
get_pack forms-and-surveys-public/form-inbox

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-csvformbricksapps-script-sheet
  • Checks: 1 in outcome/checks.yaml
  • Code: form.jsonform_inbox.py
  • Tools: python3, docker

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Take a website form submission safely (validation, honeypot, rate of fill) into a CSV or Google Sheet.

Steps

  1. Describe the form in code/form.json (fields, required, email, options, max length, honeypot, minimum fill seconds).
  2. Serve: python3 code/form_inbox.py serve code/form.json out/inbox.csv; the HTML form posts to /submit with a hidden _started timestamp and an empty website field.
  3. Spam gets a normal-looking redirect and is not stored; invalid input gets 400.
  4. Run python3 code/form_inbox.py selftest code/form.json.

Edge cases

  • Behind a proxy, rate limits per IP need the CF-Connecting-IP header.
  • Google Sheets forwarding adds 1-2 s per submission.

Don'ts

  • Don't log message bodies to stdout.
  • Don't expose the port directly to the internet.

Check

lp pack check forms-and-surveys/form-inbox runs outcome/checks.yaml.