Built for developers who demand reliability, performance, and ease of use across multiple programming languages.
Consistent API across TypeScript, Go, Java, and Python. Write once, validate everywhere with the same intuitive syntax.
Full type safety with intelligent IntelliSense support. Catch validation errors at compile time, not runtime.
Optimized for speed with minimal overhead. Validate thousands of inputs per second without breaking a sweat.
Create custom validation rules and chain them together. Build complex validation logic with simple, readable code.
Works seamlessly on web, mobile, desktop, and server environments. One library for all your validation needs.
Intuitive API design with comprehensive documentation and examples. Get up and running in minutes, not hours.
MobiKit provides consistent validation across all major programming languages with native performance and idioms.
mobikit-typescript
Full type safety with excellent IntelliSense support for modern web development.
mobikit-go
High-performance validation for Go applications with zero dependencies.
mobikit-java
Enterprise-grade validation for Java applications with Spring Boot integration.
mobikit-python
Pythonic validation with support for FastAPI, Django, and Flask frameworks.
Simple, powerful validation examples across all supported languages. Copy, paste, and start validating!
npm install mobikit-typescript
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();
go get github.com/debuggers-dev/mobikit-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")
}
}
Join thousands of developers who trust MobiKit for their validation needs. Get started in minutes with your favorite programming language.