Search DevTools

Jump to any tool or page

dForms

Unexplored

Form builder for AI agents: build, publish and analyze forms, quizzes and lead qualifiers.

Dapta-Tech51 stars13 forksDesign & UX
View source

Install

mcp_config.json

{
  "mcpServers": {
    "ai-dforms-dforms": {
      "url": "https://mcp.dforms.ai/mcp",
      "type": "streamable-http"
    }
  }
}

Documentation

Open-source forms that qualify, score and route your leads. Build a multi-step form, score every answer, book the meeting and sync the lead to your CRM. Self-host it anywhere.

Website · Quickstart · Self-hosting · Contributing

What is dForms?

dForms is a form builder for teams that sell. A respondent answers a few questions; dForms scores each answer, decides which outcome they reach (a thank-you message, a redirect, or a calendar to book a call), and delivers the lead to HubSpot or any webhook. You see where people drop off and which answers convert.

It is a Turborepo monorepo: a Next.js 16 web app (public forms, admin and builder) and a NestJS API. Postgres is the source of truth in CI and production; SQLite lets you clone and run it in a minute with no infrastructure.

The public form, in the author's own brand
One question per screen, keyboard-friendly

https://github.com/user-attachments/assets/d78fb38b-31ca-4845-9a46-4a5457a28910

Features

Build13 question types: short and long text, name, email (with a work-email check), phone, URL, dropdown, single and multiple choice (list or cards, with emoji or logos), slider, file upload, message, reveal screen and an embedded scheduler. Slides or one-page layout, live WYSIWYG canvas, desktop and mobile preview.
LogicShow/hide conditions and jumps on any answer, numeric operators (equal, greater, less, between), hidden fields filled from ?param=value, and @ recall of earlier answers in question text. A visual map of the whole flow.
Score and routePoints per option (negatives allowed), per-question scoring switch and score ranges mapped to outcomes. Each outcome shows its own message, redirects, or opens a booking step (HubSpot Meetings or Calendly).
CapturePartial submissions from a point you choose, one submission per session (upgraded in place when the respondent finishes), and file answers with permanent signed links.
IntegrationsHubSpot (contact upsert, note on the contact, a mirrored HubSpot form submission for attribution), signed JSON webhooks (HMAC-SHA256), owner and respondent emails with editable templates. Every delivery goes through a durable outbox with retries and a visible delivery history.
TrackingPer-form Google Tag Manager, Meta Pixel, PostHog and HubSpot tracking code. UTM parameters are captured automatically and can be mapped to CRM properties.
DesignTheme presets, any brand color, 9 font families or your own font, background styles, corner radius, button and progress styles, logo, cover screen with badge, headline and trust line, and a workspace brand kit.
AnalyticsViews, starts, submissions, completion rate, time to complete, partial submits, daily trends and question-by-question drop-off.
ShareReadable links (/{account}/f/{slug}) with editable slugs, a QR code, and an embed.js helper that auto-resizes iframes and carries redirects to the host page.
OperateResponses table with header filters, search, time zone and CSV export; folders; workspaces with members and roles; Cloudflare Turnstile spam protection; English and Spanish across the app and the forms.

Screenshots

Build. Questions, live canvas and per-question settings, with points on every option.
Logic. The whole flow on one canvas, branching into scored outcomes.


Design. Language, layout, theme and brand, with a live device preview.
Connect. Webhook, HubSpot and tracking pixels per form.


Submissions. Complete and partial responses with their score, filters and CSV export.
Analytics. Funnel metrics, daily trends and question-by-question drop-off.


Forms. Every form with its status, submissions and completion rate.
Mobile. The same form, sized for a phone.

The brand in these screenshots, "Pulse", is fictional, and so are the respondents.

Quickstart

git clone https://github.com/Dapta-Tech/dapta-forms.git dforms && cd dforms
pnpm install          # Node >= 20.9, pnpm >= 10
pnpm dev              # builds packages, creates and seeds a SQLite DB, starts both apps

Then open:

No Docker, no Postgres, no accounts. The database is a file at .data/dev.db, email is log-only (notices print to the API log), and pnpm db:reset restores the demo data.

Two dev modes

ModeCommandDatabaseUse it for
Fastpnpm devSQLite file (.data/dev.db)Zero-infra onboarding
Paritypnpm dev:pgPostgres in DockerThe same engine as CI and production

pnpm dev:pg starts Postgres from docker-compose.yml, migrates, seeds and runs both apps against it. If port 5432 is taken, run PG_PORT=5433 pnpm dev:pg. Ports, Windows shells and running each app on its own are covered in CONTRIBUTING.md.

Architecture

apps/
  web/            Next.js 16 (App Router, RSC): public forms, admin, builder
  api/            NestJS: public + admin API, outbox worker, OpenAPI
packages/
  engine/         pure form logic: skip-logic, validation, scoring, outcomes (no I/O)
  types/          zod contracts shared by web and api (form config v1, submissions, events)
  db/             Drizzle schema for Postgres and SQLite, migrations, seed, repositories
  destinations/   SubmissionDestination port + webhook, HubSpot and log-only adapters
  notifications/  EmailProvider port + log-only, noop, SMTP and HTTP adapters
  mcp/            the dForms MCP server (tools, HTTP door, agent guide), mounted by the api at /mcp
  shared/         i18n (EN/ES), handle utils, growth attribution, design tokens
  config/         zod env schema + shared tsconfig and prettier presets
  • The web app reaches the API only over HTTP, so the two deploy independently.
  • The engine is pure and shared, so the client preview and the server verdict always agree. Scores are always recomputed on the server.
  • One submission per session is enforced twice: an app-level upsert and a unique index on (form_id, session_id) on both dialects. CI asserts it on Postgres on every PR.
  • Side effects go through an outbox: emails, webhooks and CRM syncs are enqueued in the same transaction and drained with retries and backoff.
  • Every integration sits behind a port (auth, email, destinations, storage, captcha) and falls back to a safe no-op, so a bare fork runs with nothing configured.

ARCHITECTURE.md has the request-flow diagram and the package boundaries.

Configuration

Every variable has a safe default; .env.example documents all of them. Copy it to .env to override (a real environment variable always wins).

VariableDefaultWhat it does
DATABASE_URLfile:./.data/dev.dbA postgres:// URL switches to Postgres
PUBLIC_APP_URL(empty)The public URL of the web app; set it on every real deploy
API_URLNEXT_PUBLIC_API_URLWhere the web server reaches the API, read at runtime
NEXT_PUBLIC_API_URLhttp://localhost:4000Where the browser reaches the API, baked in at build time
AUTH_PROVIDERlocallocal stub for dev, or workos
EMAIL_PROVIDERlog-onlynoop, smtp or http
HUBSPOT_PRIVATE_APP_TOKEN(empty)Enables the HubSpot destination
CALENDLY_API_TOKEN(empty)Enriches bookings made through Calendly
STORAGE_BUCKET(empty)Any S3-compatible bucket; enables file uploads
CAPTCHA_SITE_KEY / CAPTCHA_SECRET_KEY(empty)Both set enables Cloudflare Turnstile

When one Docker image is promoted across environments, set API_URL per environment: NEXT_PUBLIC_* values are frozen into the image at build time.

Scripts

CommandWhat it does
pnpm dev / pnpm dev:pgBuild packages, migrate and seed, run web and api (SQLite / Postgres)
pnpm buildBuild every package and both apps
pnpm testUnit tests across the workspace (Vitest)
pnpm typecheck / pnpm lintType-check / lint the workspace
pnpm qaEnd-to-end tests with Playwright
pnpm db:migrate / pnpm db:seed / pnpm db:resetDatabase lifecycle

pnpm dev migrates before it starts the apps. If you start an app by hand against a fresh database, run pnpm db:migrate first.

Deploy

dForms runs anywhere Node or Docker runs; it uses no host-specific APIs.

  • apps/web/Dockerfile builds a Next.js standalone image and apps/api/Dockerfile the API image. Point DATABASE_URL at Postgres.
  • docker-compose.prod.yml is a production-shaped smoke test: Postgres, a one-shot migration, the API and the web app.

SELF-HOSTING.md is the full guide: building the images, the complete environment reference, reverse proxy and TLS, auth, email and destination options, upgrades, rollback and troubleshooting.

Embedding a form

Open any form with ?embed=1 inside an iframe and load the helper next to it:

The helper resizes the iframe to fit, follows the form's end-of-form redirect on the host page, and passes the host page's visit along for attribution.

Documentation

DocumentFor
SELF-HOSTING.mdRunning dForms in production
ARCHITECTURE.mdRequest flow, package boundaries, ports and adapters
CONTRIBUTING.mdLocal setup, commit conventions, PR checks
SPEC-METRICS.mdHow every analytics metric is defined
SECURITY.mdReporting a vulnerability (never in a public issue)
CLAUDE.mdGuide for AI coding agents: invariants, commands, file pointers

Contributing

Read CONTRIBUTING.md. In short:

  • Every commit is DCO-signed: git commit -s.
  • PR titles follow Conventional Commits (feat:, fix:, docs: and so on).
  • CI must be green: lint, typecheck, tests on SQLite, the Postgres parity job, a full build, the secret scan and the punctuation check (bash scripts/dash-check.sh).
  • A change to a published package's behavior ships a changeset (pnpm changeset).

Working with Claude Code or another AI agent? CLAUDE.md is loaded automatically, and .claude/agents/ ships a read-only forms-reviewer and a forms-contributor agent.

The internal packages use the @quill/* scope. Quill is the codename; the product is dForms.

For the Dapta team

The hosted product at dforms.ai is built from this repo.

  • Branches. Feature PRs target develop. A release is a PR from develop into main, merged with a merge commit, never squashed, so both branches keep the same history.
  • Changesets. Changesets in .changeset/ become the public CHANGELOG when the release workflow runs on main. They are public text: no internal names, hosts or em dashes.
  • Environments. develop deploys to the dev environment automatically. Production is a manual promotion after the release PR is merged. Database migrations run on their own during the deploy.
  • Before the release PR, run bash scripts/dash-check.sh origin/main and fix what it reports in a small PR to develop first.

License

MIT © 2026 Dapta.

Sourced from the repository README.

More in Design & UX