Localpane Forms: Accessible form validation that works in any framework, or none
Most form validation either ignores accessibility or ties you to one framework. Errors pop up while people are still typing, screen readers never hear them, and focus is left wherever it was when the submit failed.
Localpane Forms gives you a pure validation core that runs in browsers, Node.js and workers, so the same schema checks your form and your API. A DOM binding then does the accessibility work for you: aria-invalid, aria-describedby that keeps your hint ids, focus on the first problem, an optional error summary, live announcements and calm "reward early, punish late" timing, following WCAG 2.2.
Async checks such as "is this username free?" are debounced, cancelled with AbortSignal, and stale results are thrown away. Messages ship in English, Spanish, French, German and Portuguese with real plural rules.
It is for developers who want production-ready, accessible forms in vanilla JavaScript, React, Vue or on the server, without adding a dependency tree.
Features:
- 23 validation rules: email, URL, numbers, dates, files, confirm password and more
- Schemas with nested (address.city) and array (items[*].qty) fields
- Transforms (trim, toNumber, toLowerCase, custom) applied before rules
- Conditional rules with when() and cross-field validation
- Async validators with AbortSignal, debouncing and stale-result handling
- Messages in 5 languages with CLDR plurals and per-field overrides
- Accessible DOM binding: aria-invalid, aria-describedby, focus management
- Error summary with links, live announcements and aria-busy states
- "Reward early, punish late" timing for kinder validation
- Build a schema straight from native HTML attributes
- Same schema in the browser and on your Node.js server
- Zero runtime dependencies, TypeScript declarations included
What's included:
- Complete source code
- TypeScript declarations
- 232 automated tests (162 unit, 70 Playwright browser)
- Examples: styled signup demo, Node.js server, React and Vue guides
- Free 1.x updates
Requirements:
- Node.js 18+ or any evergreen browser
- No runtime dependencies
- ES modules (no build step required)
Licence
Commercial licence, single developer: one licence covers one individual developer, and you can use it in unlimited projects you build for yourself or clients. Don't redistribute the source. Team or company licences: contact the seller for a quote (the support email is in LICENSE.md and on the purchase receipt). Full text is in LICENSE.md inside the download. Summary: https://localpane.atrosen1.workers.dev/license/
Updates and refunds
Free updates for all 1.x releases through your purchase link. If the package doesn't work as documented and we can't fix it, you get a full refund within 30 days.
This product's licence terms (in the download and summarised on our site) supplement Payhip's standard terms of use.