Skip to content

Repository files navigation

StackVerify Logo

StackVerify Forms

npm versionnpm downloadsTypeScriptLicenseBundle Size

A lightweight JavaScript and TypeScript SDK for submitting forms to StackVerify.

Collect submissions from any website or application without building your own backend. Every submission is securely stored, delivered to your StackVerify dashboard, and can trigger email notifications, webhooks, WhatsApp workflows, and future automations.


Why StackVerify Forms?

Building and maintaining infrastructure for a simple contact form shouldn't slow down your product.

StackVerify Forms gives you:

  • Instant form endpoints
  • Submission storage
  • Dashboard for managing responses
  • Email notifications
  • Webhook support
  • WhatsApp automation
  • TypeScript support
  • Framework-agnostic SDK
  • Zero runtime dependencies

Instead of building APIs, databases, and notification systems, simply submit your data and let StackVerify handle the rest.


Installation

NPM
npm install @stackverify/forms
yarn add @stackverify/forms
pnpm add @stackverify/forms

Quick Start

Create a form from your StackVerify dashboard.

You'll receive a unique Form ID.

import{submitForm}from"@stackverify/forms";awaitsubmitForm({formId: "frm_xxxxxxxxx",data: {name: "Jane Doe",email: "jane@example.com",company: "Acme Inc.",message: "I'd like to schedule a demo."}});

Your submission is immediately available inside your StackVerify dashboard.


React

import{submitForm}from"@stackverify/forms";exportdefaultfunctionContactForm(){asyncfunctionhandleSubmit(e){e.preventDefault();constdata=Object.fromEntries(newFormData(e.target));awaitsubmitForm({formId: "frm_xxxxxxxxx",
data
});}return(<formonSubmit={handleSubmit}><inputname="name"/><inputname="email"/><textareaname="message"/><button>Send</button></form>);}

Next.js

import{submitForm}from"@stackverify/forms";awaitsubmitForm({formId: process.env.NEXT_PUBLIC_FORM_ID!,data: {
email,
message
}});

Vue

import{submitForm}from"@stackverify/forms";awaitsubmitForm({formId: "frm_xxxxxxxxx",data: {
name,
email
}});

Svelte

import{submitForm}from"@stackverify/forms";awaitsubmitForm({formId: "frm_xxxxxxxxx",
data
});

Node.js

import{submitForm}from"@stackverify/forms";awaitsubmitForm({formId: "frm_xxxxxxxxx",data: {userId: 123,event: "signup"}});

Vanilla JavaScript

import{submitForm}from"@stackverify/forms";submitForm({formId: "frm_xxxxxxxxx",data: {email: "john@example.com"}});

HTML

Every form automatically includes a public endpoint.

<formaction="https://stackverify.site/api/f/YOUR_FORM_ID" method="POST"><inputname="name"
required><inputtype="email"
name="email"
required><buttontype="submit">
Submit
</button></form>

No backend required.


API

submitForm({
formId,
data,
timeout,
baseUrl,
fetch
});
OptionTypeDescription
formIdstringStackVerify Form ID
dataRecord<string, any>Form data
timeoutnumberRequest timeout
baseUrlstringCustom API URL
fetchFetchCustom fetch implementation

TypeScript

Built-in TypeScript definitions are included.

importtype{SubmitOptions}from"@stackverify/forms";

Supported Frameworks

FrontendBackend
ReactNode.js
Next.jsExpress
VueBun
NuxtDeno
AngularFastify
SvelteNestJS
SvelteKitCloudflare Workers
Astro
Remix
SolidJS
Vite
Vanilla JavaScript

Typical Workflow

Application
│
▼
StackVerify Forms SDK
│
▼
StackVerify API
│
├── Stores submissions
├── Dashboard
├── Email notifications
├── Webhooks
└── Automation

Use Cases

  • Contact forms
  • Newsletter subscriptions
  • Lead generation
  • Landing pages
  • SaaS onboarding
  • Product orders
  • Event registration
  • Customer feedback
  • Internal business tools
  • Booking requests
  • Waitlists

Why Use the SDK?

You could send requests manually using fetch.

The SDK provides:

  • Consistent API
  • TypeScript support
  • Validation
  • Better error handling
  • Cleaner code
  • Future compatibility as StackVerify evolves

License

MIT


Built for developers who want to ship forms, not infrastructure.

About

StackVerify Forms is a developer-friendly form submission SDK for JavaScript and TypeScript that lets you build contact forms, lead capture forms, and registration forms without a backend. Send form data directly to your StackVerify dashboard and trigger email alerts, webhooks, and automation workflows instantly.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages