Skip to main content

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?​

FeatureDescription
ðŸŠķ Lightweight~650KB bundled with all locales, zero runtime dependencies
🌍 Locale-First212 locales covering 150+ countries across 6 continents
ðŸŽŊ TypeScript NativeStrict types, generics, and full IDE autocompletion
🔁 Seeded RandomDeterministic data with Mulberry32 PRNG for reproducible tests
ðŸ“Ķ Tree-shakeableImport 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.