Build Tally
YESreplaces $29/mosaves $348/yrback to the verdict
A personal form builder on your own server: create forms and fields in an admin, publish each at a public URL that works without JavaScript, store answers in SQLite with file uploads on disk, get an email or webhook per response, and export CSV. Your respondents' data stays in your file.
Before step 1
Everything below is assumed from the first step. Tick each one when you actually have it, not when you plan to.
- installfree
Why Everything in this build runs on it: the server, the scripts, the tests.
Get it Download the LTS installer from nodejs.org, or install with your package manager (brew install node, or nvm install 22). Restart the terminal afterwards. open ↗
Verify
node --version prints v22 or higher - installfree
Why Every step below is a command you type or a file you edit.
Get it VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal. open ↗
Verify
You can open a folder and run a command in its terminal - installfree
Why History for your code, and the way most hosts deploy.
Get it Install from git-scm.com or with your package manager, then run git init in the project folder once it exists. open ↗
Verify
git --version prints a version - decidefree
Why The admin is protected by a single token, no user accounts.
Get it openssl rand -base64 32 into .env as ADMIN_TOKEN. Store it in your password manager.
- API keyfree tiers exist
Why Phase 7 emails you each response. Any SMTP provider works; without one, use the webhook or just read the admin.
Get it Fastmail, Postmark, Resend or your mail host: create an app password or SMTP credential, note host, port, user, password.
- have readyfree
Why The other notification path: a Zapier or Make hook, or webhook.site while testing.
Get it Create one at webhook.site to test with; replace with the real target later. open ↗
- accountabout $5 a month
Why This needs one process running all the time with a public address. Uploads need disk that persists across deploys.
Get it Hetzner Cloud (from about 4 EUR), DigitalOcean or Fly.io. Ubuntu 24.04, the smallest size. You need SSH access and a public IP. Only needed for the deploy phase; develop locally first. open ↗
- accountroughly $10 a year, or free on an existing domain
Why A public address you own, so links you share never break when a provider changes.
Get it Register at Cloudflare Registrar, Porkbun or Namecheap, or use a subdomain of one you already own. You add one DNS record in the deploy phase. open ↗
- installfree
Why Automatic HTTPS in front of the Node process. Without TLS the browser features this relies on (and your visitors' trust) do not work.
Get it On the VPS: follow the install steps at caddyserver.com/docs/install for Ubuntu. One Caddyfile with your domain and a reverse_proxy line is the whole config. open ↗
Verify
caddy version prints a version on the server
Data model
Create these before the first phase that stores anything. Changing a table later is the expensive kind of change.
- `forms`: id, slug (unique), title, description, accent, published (bool),
notify_email (nullable), webhook_url (nullable), created_at
- `fields`: id, form_id, position, kind ('text' | 'textarea' | 'email' | 'select'
| 'checkbox' | 'file'), label, help, required (bool), options (JSON, for select)
- `responses`: id, form_id, submitted_at, ip_hash, user_agent_class
- `answers`: id, response_id, field_id, value, file_path (nullable)
Answers go in their own table rather than a JSON blob on `responses`. A form's
fields change over time, and a blob keyed by label silently loses the history the
moment someone renames a question. Store `field_id` and keep deleted fields as
soft-deleted rows so old responses still render.Environment variables
These go in a .env file the app reads at startup. The pack's .env.example is this table as a file · copy it, never commit the filled-in version.
| Variable | Needed | Example | Where the value comes from |
|---|---|---|---|
PORT | required | 3000 | Any free port. |
DATABASE_PATH | required | ./data/forms.db | SQLite file. |
UPLOAD_DIR | required | ./data/uploads | Where files land, per form slug. |
ADMIN_TOKENsecret | required | base64-from-openssl | openssl rand -base64 32. The only admin credential. |
SITE_URL | required | https://forms.yourdomain.com | Public base URL. |
SMTP_URLsecret | optional | smtps://user:pass@smtp.fastmail.com:465 | SMTP connection string from your provider. |
NOTIFY_FROM | optional | forms@yourdomain.com | From address for notifications. |
MAX_UPLOAD_MB | optional | 10 | Per-file cap, enforced while streaming. |
The build, in order
Form definition and admin auth
An admin you can log into with the token, and forms you can create.
forms (id, slug, title, description, accent, published, notify_email, webhook_url), fields (id, form_id, position, kind, label, help, required, options JSON, deleted), responses (id, form_id, submitted_at, ip_hash, user_agent_class), answers (id, response_id, field_id, value, file_path).
terminalmkdir forms && cd forms && git init && npm init -y && npm pkg set type=module npm install express@4 better-sqlite3@13 mkdir -p data/uploads && cp .env.example .env
POST the token; compare with a constant-time function; set an HttpOnly cookie. Never accept the token in a URL.
done when · tick each as it passesField editor
Every field kind, reorderable, soft-deleted so old responses keep rendering.
Kinds: text, textarea, email, select, checkbox, file. Explicit buttons work on mobile and are testable; drag can come later.
At least one option, no duplicates, trimmed.
done when · tick each as it passesPublic form rendering
Accessible, single column, works without JavaScript, unpublished forms 404.
Labels with for attributes, one question per block, single column, mobile-first. Unpublished forms return 404.
prefers-color-scheme with the same custom properties overridden.
done when · tick each as it passesSubmission and validation
Validate on the server against the stored definitions and never lose what someone typed.
Required, email shape, select values drawn from the stored options, length caps. Never trust the client copy of the rules.
Re-render with inline errors and the answers intact; losing a long answer is the worst thing this app can do.
So a renamed or soft-deleted field still renders in past responses.
done when · tick each as it passesFile uploads
Safe uploads: streamed, capped, sniffed, stripped.
Cap at MAX_UPLOAD_MB while streaming; check MIME against the decoded header; strip EXIF from images with sharp.
terminalnpm install busboy@1 sharp@0.35.3
done when · tick each as it passesSpam controls
Honeypot, minimum fill time, per-IP limits in SQLite.
Survives restarts, unlike memory.
done when · tick each as it passesNotifications and export
Email and webhook that can never make a respondent wait, and a streamed CSV.
- terminal
npm install nodemailer@6
done when · tick each as it passesDeploy
Live, backed up including uploads, documented.
Files
deploy/forms.serviceCaddyfile.env keys, the Caddy snippet, where the database and uploads live, and the honest line that Tally's free tier is generous and the reason to build this is data ownership.
Files
README.md
done when · tick each as it passesOperate it like a productproduct builder
Only for the product-builder path: know when the form server is down, never lose the database, and keep the server patched.
Answer 200 with the build id and a quick database read. Point a free uptime monitor (or your own, from the Healthchecks entry on this site) at it so an outage is noticed before a user notices.
One JSON line per request: method, path, status, duration, no raw IPs. Rotate weekly with logrotate, keep eight.
SQLite's .backup command makes a consistent copy while the app runs. Copy it to object storage or a second machine; then, once, restore it into a fresh checkout and confirm the app reads it.
terminalsqlite3 data/app.db ".backup '/tmp/app-$(date +%F).db'" rclone copy /tmp/app-$(date +%F).db remote:backups/
Firewall allowing only 22, 80 and 443; unattended security updates on; the app running as an unprivileged user under systemd with Restart=on-failure.
done when · tick each as it passes
That is the whole plan for Tally. What it deliberately does not cover is below · check the gaps before you call it a replacement.
- Conditional logic, partial submissions, payments.
- A template gallery.
- Team workspaces and custom domains per form.
- beautiful editor
- unlimited free usage
- partial submissions
- custom domains
- integrations
- team workspaces
- anti-spam
- Conditional visibility for one field based on another's value
- A Slack notification adapter
Need the files? The project pack on the verdict page hands your agent the whole brief · more forms.