Skip to content

Repository files navigation

Validators

A modern browser-based string validation toolkit built with React, Vite, and validator.js.

Validators provides a searchable collection of common validation utilities with instant feedback, practical examples, and a responsive interface.

Validators

Live Demo

https://a2rp.github.io/validators/

Features

  • 34 string validators
  • Searchable validator library
  • Live validation feedback
  • Neutral, valid, and invalid result states
  • Ready-to-use examples
  • Responsive desktop, tablet, and mobile layout
  • Keyboard-friendly controls
  • Accessible validation feedback
  • Fixed responsive header
  • Mobile navigation
  • Back-to-top control
  • Dark monochromatic interface
  • Client-side validation with no backend required

Validators

The toolkit includes validators for:

  • Alpha and alphanumeric strings
  • ASCII and Base32
  • Credit cards and EAN codes
  • Email addresses
  • Floating-point numbers and integers
  • Fully qualified domain names
  • Freight container IDs
  • Hexadecimal values and colors
  • HSL and RGB colors
  • IBAN and IMEI numbers
  • IP and MAC addresses
  • ISBN numbers
  • JSON and JWT values
  • Latitude and longitude coordinates
  • MD5 hashes
  • MIME types
  • Mobile phone numbers
  • Numeric and octal values
  • Port numbers
  • Slugs
  • Strong passwords
  • URLs
  • UUIDs

Tech Stack

  • React
  • Vite
  • JavaScript
  • SCSS Modules
  • validator.js
  • React Icons
  • ESLint
  • GitHub Pages

Project Structure

validators
├── public
│   ├── favicon.ico
│   ├── logo.png
│   └── preview.png
├── src
│   ├── components
│   │   ├── backToTop
│   │   ├── footer
│   │   ├── header
│   │   ├── validatorInput
│   │   ├── validatorList
│   │   ├── validatorResult
│   │   └── validatorTool
│   ├── data
│   │   └── validators.js
│   ├── utils
│   │   └── validateValue.js
│   ├── App.jsx
│   ├── App.module.scss
│   ├── index.css
│   └── main.jsx
├── eslint.config.js
├── index.html
├── LICENSE
├── package.json
├── README.md
└── vite.config.js

Run Locally

Clone the repository and install the dependencies:

git clone https://github.com/a2rp/validators.git
cd validators
npm install

Start the development server:

npm run dev

Create a production build:

npm run build

Run lint checks:

npm run lint

Deployment

The project is configured for GitHub Pages.

Deploy the production build with:

npm run deploy

Accessibility

The interface includes semantic controls, keyboard navigation, visible focus states, accessible labels, responsive navigation, and live validation feedback using ARIA attributes.

Future Prospects

Possible future additions include validator categories, validation options, input history, copied result feedback, and additional validator.js utilities.

License

This project is licensed under the MIT License.

Links

Support

About

Searchable string validation toolkit built with React, Vite, and validator.js with instant browser-based feedback.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages