
Security News
pnpm 12’s Rust Rewrite Cuts Install Times by Up to 90%
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.
form-builder-nextjs
Advanced tools
One-command installer: copies the Form Builder engine + fields + shadcn primitives + theme into a consumer project as a single self-contained, editable form-builder/ folder. See docs/adr/0003-packaging-split-distribution.md.
One-command installer for the Form Builder engine — a config-driven, conditional, multi-step form engine for React 19 / Next.js, built on React Hook Form 7 + Zod 4 + Tailwind 4.
It works like shadcn CLI: it does not add a runtime dependency. It copies
real, editable source into your project as a single self-contained
form-builder/ folder that you own and can modify freely.
npx form-builder-nextjs
core/, components/, hooks/, ui/, store/)components/ui/--fb-space-* sizing tokens) merged
into your globals.cssnpm install, run for you)Everything lands under <base>/form-builder/, where <base> is auto-detected:
src/ wins over app/, falling back to the project root with a warning.
form-builder # install everything (engine + all fields + primitives + theme)
form-builder add text email # install only the named fields + their dependency closure
| Flag | Effect |
|---|---|
--cwd <dir> | Target project directory (default: current directory) |
--no-install | Skip npm installing leaf deps; print them instead |
--no-theme | Skip the theme / cssVars injection step |
--force | Overwrite existing files and theme block (default: skip, preserving your edits) |
-h, --help | Show help |
Re-running is safe: files that already exist are skipped and listed, so your
edits survive. Use --force only when you want the pristine source back.
addtext select checkbox radio date time phone country otp
masked signature rating segmented slider file group hidden
static submit
Each pulls in its transitive engine + primitive closure automatically.
A React 19 project with Tailwind CSS v4. These peer packages must be present (the CLI reminds you at the end of an install, but does not install them):
npm install react react-dom react-hook-form zod date-fns lucide-react
Node.js >= 18.
Register the built-in field renderers once, then render a FormConfig:
"use client";
import { defineForm, FormRenderer, registerBuiltInFields } from "@/form-builder";
registerBuiltInFields();
const config = defineForm({
id: "contact",
fields: [
{ name: "email", type: "email", label: "Email", required: true },
{ name: "message", type: "textarea", label: "Message" },
],
});
export function ContactForm() {
return <FormRenderer config={config} onSubmit={(values) => console.log(values)} />;
}
form-builder/index.ts is the only supported entry point — nothing outside it
is public API. The example uses the @/* path alias Next.js sets up by
default; a relative import works just as well. The installed tree itself is
alias-free, so it compiles regardless of your tsconfig paths.
Some install names cover more than one type value — text carries text,
email, password, textarea, and number; checkbox also carries
switch. 19 install names, 24 field types.
"use client".
It is not an RSC form solution.onSubmit; autosave (opt-in)
writes only to the visiting browser's localStorage.signature field is pointer/touch-only and has no keyboard fallback.release-cli.yml GitHub
Actions workflow — never a local npm publish — and carries an npm
registry signature plus a SLSA v1 build provenance attestation. Verify with
npm view form-builder-nextjs dist or the
Socket package page.cli/vendor/ (this package's install payload) is a generated mirror of
this repo's own form-builder/ engine and shadcn primitives — first-party
source, not a third-party dependency.MIT © YoussefNesafe
FAQs
One-command installer: copies the Form Builder engine + fields + shadcn primitives + theme into a consumer project as a single self-contained, editable form-builder/ folder. See docs/adr/0003-packaging-split-distribution.md.
The npm package form-builder-nextjs receives a total of 7 weekly downloads. As such, form-builder-nextjs popularity was classified as not popular.
We found that form-builder-nextjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.

Research
/Security News
Thirteen malicious Packagist themes expose visitors on unpatched iPhones to a WebKit-to-kernel exploit chain that steals device data and wallet seeds.