Introduction
Mimic Data is a lightweight, zero-dependency TypeScript library for generating realistic, locale-aware dummy data. Inspired by Faker.js, it is designed to be smaller, tree-shakeable, and focused on accurate localization.
Why Mimic Data?â
| Feature | Description |
|---|---|
| ðŠķ Lightweight | ~650KB bundled with all locales, zero runtime dependencies |
| ð Locale-First | 212 locales covering 150+ countries across 6 continents |
| ðŊ TypeScript Native | Strict types, generics, and full IDE autocompletion |
| ð Seeded Random | Deterministic data with Mulberry32 PRNG for reproducible tests |
| ðĶ Tree-shakeable | Import only the modules you need |
Quick Exampleâ
import { createMimic } from '@fazelstudio/mimic-data';
const mimic = createMimic('id_ID');
const person = mimic.identity.fullName();
// "Budi Santoso"
const address = mimic.location.fullAddress();
// "Jl. Merdeka No. 42, Jakarta Pusat, DKI Jakarta 10110"
Modulesâ
Mimic Data organizes generators into six modules:
- identity â names, gender, age, date of birth
- location â streets, cities, states, zip codes, addresses
- physical â height, weight (metric/imperial aware)
- work â job titles, departments
- contact â email, phone, website
- company â company names, industries, catchphrases
Ready to get started? Head over to the Installation guide.