Mobikit Is A Universal Data Validation Library

A powerful, cross-platform validation library for TypeScript, Go, Java, and Python. Validate user input with ease across backend and frontend applications.

Why Choose MobiKit?

Built for developers who demand reliability, performance, and ease of use across multiple programming languages.

Multi-Language Support

Consistent API across TypeScript, Go, Java, and Python. Write once, validate everywhere with the same intuitive syntax.

Type Safety

Full type safety with intelligent IntelliSense support. Catch validation errors at compile time, not runtime.

High Performance

Optimized for speed with minimal overhead. Validate thousands of inputs per second without breaking a sweat.

Extensible

Create custom validation rules and chain them together. Build complex validation logic with simple, readable code.

Cross-Platform

Works seamlessly on web, mobile, desktop, and server environments. One library for all your validation needs.

Developer Friendly

Intuitive API design with comprehensive documentation and examples. Get up and running in minutes, not hours.

Choose Your Language

MobiKit provides consistent validation across all major programming languages with native performance and idioms.

TypeScript

mobikit-typescript

Full type safety with excellent IntelliSense support for modern web development.

6
0
TypeScript
View on GitHub

Go

mobikit-go

High-performance validation for Go applications with zero dependencies.

1
0
Go
View on GitHub

Java

mobikit-java

Enterprise-grade validation for Java applications with Spring Boot integration.

0
0
Java
View on GitHub

Python

mobikit-python

Pythonic validation with support for FastAPI, Django, and Flask frameworks.

0
0
Python
View on GitHub

See It In Action

Simple, powerful validation examples across all supported languages. Copy, paste, and start validating!

Installation

Terminal
npm install mobikit-typescript

Basic Usage

basic-validation.ts
import { Validator } from 'mobikit-typescript';

// Create a validator instance (default locale is 'en')
const validator = new Validator();

// Define your inputs
const inputs = {
  username: 'johndoe',
  email: 'john@example.com',
  password: 'secret123',
  confirmPassword: 'secret123',
  age: 25
};

// Define validation rules
const rules = {
  username: {
    required: { value: true, message: 'Username is required' },
    minLen: { value: 3, message: 'Username must be at least 3 characters' }
  },
  email: {
    required: { value: true, message: 'Email is required' },
    email: { value: true, message: 'Please enter a valid email address' }
  },
  password: {
    required: { value: true, message: 'Password is required' },
    minLen: { value: 8, message: 'Password must be at least 8 characters' }
  },
  confirmPassword: {
    required: { value: true, message: 'Please confirm your password' },
    same: { value: 'password', message: 'Passwords do not match' }
  },
  age: {
    required: { value: true, message: 'Age is required' },
    numeric: { value: true, message: 'Age must be a number' },
    min: { value: 18, message: 'You must be at least 18 years old' }
  }
};

// Validate inputs
async function validateForm() {
  const result = await validator.validate(inputs, rules);
  
  if (result === true) {
    console.log('Validation passed!');
  } else {
    console.log('Validation failed:', result);
    // result will contain error messages for each field that failed validation
  }
}

validateForm();

Installation

Terminal
go get github.com/debuggers-dev/mobikit-go

Basic Usage

main.go
package main

import (
	mobikit_go "github.com/Armnajafi/mobikit-go"
	"github.com/Armnajafi/mobikit-go/rules"
)

func main() {
	validator := mobikit_go.NewValidator()

	emailRule := rules.EmailRule{
		Message: "Invalid email address",
	}

	rulesMap := map[string]mobikit_go.Rule{
		"email": emailRule,
	}

	inputs := map[string]interface{}{
		"email": "test@example.com",
	}
	result := validator.Validate(inputs, rulesMap)
	if !result.IsValid {
		print("email is invalid")
	}
}

Ready to Start Validating?

Join thousands of developers who trust MobiKit for their validation needs. Get started in minutes with your favorite programming language.