Maanyakaran – Reusable framework for state based form validation( best for react and redux and vue.js)

Most of the modern UI frameworks rely on some form of data state. For example, A simple HTML form in react is actually stored either in redux or internal react state. Many times we have faced situations where we have re written the same validations rules across or within the projects.

Maanyakaran is a sanskrit word which means “validation” is a step towards creating a validation framework which offers

  1. Extensibility and reusability : Create your validation rules as simple JS functions with key as rule name and value as functions and Strategies.

  2. Clean and readable implementation : Configure Maanyakaran once in project and keep reusing it by simply creating a readable constraint map.

  3. Apply multiple rules on a single field and iterate over an array of objects : One of the features of maanyakarn enables you to apply multiple validation by just writing comma separated rules. Also it allows you to hint validation about an array of similar object hence validating all the elements of array by single set of constraints.

  4. Abstract all validation and distribute them as Strategies. : Group all the validation rules in simple strategies and use them across multiple codebases.

  5. Framework agnostic. : Written in vanilla JS and can be used on any framework or environment and supports all build tools.

  6. Open source forever. Will be open source forever : Invite collaborators to review and improve this work.



Github :

Seasons Greetings and Best wishes

Author: Shantun Parmar

2 thoughts on “Maanyakaran – Reusable framework for state based form validation( best for react and redux and vue.js)

  1. Thanks for the tips about credit repair on this blog. Things i would advice people would be to give up the actual mentality that they’ll buy right now and pay out later. Like a society all of us tend to do that for many things. This includes holidays, furniture, as well as items we would like. However, you have to separate your own wants from all the needs. When you are working to improve your credit rating score make some sacrifices. For example you are able to shop online to save money or you can turn to second hand shops instead of costly department stores with regard to clothing.

Thanks for your support, You may click on ads to encourage us which assits to writers.

Leave a Reply

Your email address will not be published.