Ana Sayfa / Kod ve Scriptler / Formcraft - Conditional Forms and Drafts

Formcraft - Conditional Forms and Drafts

Formcraft; devam ettirilebilir taslaklar, gönderim gelen kutusu ve CSV dışa aktarma ile koşullu formlar oluşturur.

  • Yayın tarihi10 Kasım 2026
  • Paket içeriği.css, .html, .ts, .tsx, .json, JavaScript .js
  • Son güncelleme10 Kasım 2026
  • Canlı demoVar
Formcraft - Conditional Forms and Drafts

Overview

Ask only what matters.

Formcraft is a self-hosted form builder where conditional logic runs while the respondent types. A half-finished answer set can be saved and resumed on another device with one signed link — no account, no cookie, no email step.

What you get

  • Conditional rules with fixed precedence: any hide wins, show rules combine with OR, hidden sources become inert
  • Cross-device draft resume via an HMAC-SHA256 token over a base64url payload
  • Field types: text, textarea, select, checkbox, rating
  • Submission inbox with All / Unread / Starred, unread badges and cursor pagination
  • CSV export that includes every response, with formula-injection neutralisation
  • Anti-spam trio: honeypot, minimum fill time, per-IP rate limit
  • Live preview that shows the rule wiring as readable sentences
  • One JSON file, atomic writes; no database

Why the draft link is different

Most form builders lose a half-finished response when the tab closes. Formcraft saves each answer in place and issues a signed token that is the only credential needed to resume. The server verifies the HMAC before trusting the payload, updates the same draft on every save, and deletes it when submitted. That makes long forms usable on a phone without forcing an account.

Stack

React 18 + Vite + TypeScript, Express 4, one atomic JSON store. Dockerfile and docker-compose included. 84 automated tests.

Run it

docker compose up -d --build
# http://localhost:30300

Or locally: npm ci && npm run build && PORT=30300 npm start.

API

GET/POST /api/forms · POST /api/forms/:id/fields · POST /api/forms/:id/publish · GET /api/public/forms/:slug · POST /api/public/forms/:slug/drafts · POST /api/public/forms/:slug/submissions · GET /api/forms/:id/submissions.csv

Features

Conditional show/hide rules with fixed precedence and inert hidden sources Half-finished drafts saved with an HMAC-SHA256 token; resume on another device Submission inbox: All / Unread / Starred, cursor pagination, unread badges CSV export with RFC-4180 quoting and formula-injection neutralisation Anti-spam: honeypot, 2.5s minimum fill time, 5/IP/10min rate limit Live preview that renders the rules as sentences One JSON file, atomic writes; 84 tests; Docker included

Requirements

Node.js 20+ (22 recommended) or Docker 24+. No database or external services. A writable data/ directory.