Skip to content

About

LIVR Playground

Resources

Stars

10 stars

Watchers

2 watching

Forks

Repository files navigation

LIVR Playground

Interactive web app for testing LIVR (Language Independent Validation Rules) validators.

Live Demo

Features

  • Write rules and data in editors with syntax highlighting; the result updates as you type
  • The result shows the output, the error codes, or where the rules or data can't be parsed (the line is marked)
  • Examples for LIVR 2.0, LIVR 2.5 and aliases
  • All rules of LIVR 2.0 and LIVR 2.5 (livr 2.13)
  • Plus the rules of livr-extra-rules that LIVR doesn't define (ipv4, md5, is, list_items_unique)
  • Relaxed JSON input (unquoted keys, single quotes, trailing commas)
  • Shareable links: the state is kept in the URL hash, and "Copy link" copies it
  • Light and dark themes follow the system setting

Development

npm install
npm start         # http://localhost:1234

Production Build

npm run build     # outputs to dist/

Deploy

The live demo is served by GitHub Pages from the gh-pages branch, which holds the contents of dist/. Build, then replace the files of gh-pages with dist/ and push it.

Links

About

LIVR Playground

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages