Version 3 · Zero runtime dependencies

Upgrading from v2? Read the migration guide

Validate the HTML
you already wrote.

NFSFU234FormValidation reads the validation attributes already present on your forms—required, type, pattern, minlength, maxlength, min, max, step and more.

When native HTML validation isn't enough, extend it with one configuration object—or configure an entire website using the same API. Configure one form or an entire website using the same API.

$npm install @nfsfu234/form-validation
Plain HTMLNext.jsReactViteExpo WebTypeScript
0Runtime Dependencies
HTML FirstUses Native Validation
v3Configuration Driven
MITOpen Source
Why it reads different

Built for the form you already have

No rewrite, no component migration. It attaches to markup you've already shipped.

HTML-first validation

Built on top of native HTML validation. The library reads required, type, pattern, minlength, maxlength, min, max, step, and other standard attributes before applying any custom rules.

Configure once. Use everywhere.

Register every form on your website with configureForms(), then initialize only the forms on the current page using autoInit(). Perfect for multi-page applications.

File & image validation

Validate uploads beyond what HTML can do. Restrict file types, image dimensions, file size, number of files, MIME types, and more—all before upload.

One library. Every form element.

Validate inputs, textareas, selects, checkboxes, radio groups, files and custom configurations using one consistent API.

Flexible error handling

Display inline errors, target your own DOM elements, or disable built-in rendering completely and integrate with your own UI.

Zero runtime dependencies

No third-party runtime packages. Smaller bundles, fewer supply chain concerns, easier upgrades, and complete control over your application.

New in Version 3

Built for modern websites, not just forms.

Version 3 introduces configuration-driven validation, automatic form registration, generated API documentation, stronger TypeScript support and a cleaner developer experience from installation to deployment.

configureForms()

Register every form once and keep all validation rules in one place.

autoInit()

Automatically initialize only the forms that exist on the current page.

Async Validation

Both validate() and submit() return promises for cleaner async code.

TypeScript Ready

Ships with full typings and generated API documentation.

See it work

It validates while you type.

Every field on the right is plain HTML — required, type="email", minlength="10". No JavaScript was written for this demo beyond mounting the library.

Read the getting started guide →
live-form.html
type="email" required
minlength="10" required
The NFSFU234 Ecosystem

Focused tools. Better web experiences.

Every NFSFU234 library solves a specific frontend problem while remaining lightweight, dependency-free where possible, and designed to work well alongside the rest of the ecosystem.

FLAGSHIP LIBRARY

NFSFU234FormValidation

HTML-first form validation with configuration-driven rules, AJAX submission, automatic form initialization, file validation, and first-class TypeScript support.

Explore FormValidation →
REACT LIBRARY

NFSFU234TourGuide

Create beautiful onboarding experiences, guided product tours, feature walkthroughs, and user education flows for React applications.

Explore TourGuide →
DEVELOPER TOOL

NFSFU234ShotSweep

Generate beautiful website screenshots for documentation, blogs, portfolios, testing, automation, social sharing, and marketing content.

Explore ShotSweep →
Build with the ecosystem

Build less boilerplate. Ship more software.

Validate forms, guide users through your application, and create beautiful website screenshots—all with lightweight tools built for modern JavaScript applications.

✓ Open Source✓ MIT Licensed✓ Modern JavaScript✓ Developer-first