npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zohair-abbasi/formmaster

v2.2.7

Published

Ultra-lightweight, modular, and intelligent form validation library with multi-language support, AI-powered suggestions, gamified feedback, and accessibility-ready error handling.

Readme

FormMaster 🧩

License: MIT npm (scoped) npm downloads

Ultra-lightweight, dependency-free JavaScript form validation library.
Smart UX-focused, AI-assisted, accessible, and gamified.

Current Version: 2.2.6


Features

1. Smart UX Validator

  • Human-friendly error messages instead of generic “invalid input.”
  • Suggests corrections for common mistakes (e.g., Gmail typos).
  • Auto-formats names, phone numbers, and other fields for better UX.

2. Password Strength Companion

  • Provides strength score: Weak / Medium / Strong.
  • Detects repeated characters or common passwords.
  • Offers actionable tips for creating stronger passwords.

3. Auto-Formatter Validator

  • Trims, capitalizes, or formats inputs automatically (phone numbers, names, credit cards).
  • Validates and formats simultaneously.

4. Async Validator

  • Supports real-time async checks (e.g., username/email availability).
  • Ideal for live form feedback in modern web apps.

5. Schema + Chainable Validator

  • Lightweight alternative to Yup or Zod.
  • Chain rules easily:

validate(username).min(3).max(12).alphanumeric().validate();

6. Multi-Language Validator

Built-in i18n support for global apps.

7. AI-Assisted Suggestions

Optional AI-powered tips for fields like passwords or usernames.

Can integrate with OpenAI or small local ML models.

8. Accessible Validator

Returns ARIA-compliant messages for screen readers.

Fully compatible with form accessibility standards.

9. Domain / Business Rules Validator

Validates email domains, phone codes, credit cards, IBANs, VAT numbers, etc.

10. Fun / Gamified Validation

Progress bars for password strength or form completion.

Makes validation interactive and engaging.

11. Tiny & Dependency-Free

Ultra-lightweight (<3 KB)

Works in both browser and Node.js environments.

Installation

bash
Copy code
npm install @zohair-abbasi/formmaster

or

yarn add @zohair-abbasi/formmaster

or

pnpm add @zohair-abbasi/formmaster

Usage

Copy code
import {
  // core
  required,
  // smart UX
  smartEmail, smartPassword, autoCapitalize, smartPhone,
} from "@zohair-abbasi/formmaster";

// Required field
const nameValidation = required("");

// Smart email (with typo suggestions)
const emailValidation = smartEmail("[email protected]");

// Password strength (weak/medium/strong)
const passwordValidation = smartPassword("password123");

// Auto-capitalize name
const formattedName = autoCapitalize("john doe").formattedValue;

// Phone number suggestion (adds country code if missing)
const phoneValidation = smartPhone("1234567890");

Return shape: All validators return { valid: boolean, message?: string }. Some also include helpful extras like formattedValue (e.g., autoCapitalize, smartPhone) or strength (e.g., smartPassword).

Available Validators / Modules

core – required, minLength, maxLength, regex, plus Smart UX helpers.

email, password, format, async, schema, i18n, ai, accessibility, gamify, domain.

You can import functions directly from the package entrypoint.

License

MIT License © 2025 Zohair Abbasi

See the LICENSE file for details.