npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

indofaker

v0.1.0

Published

Generate realistic Indonesian dummy data.

Readme

indofaker

Generate realistic Indonesian dummy data: names, addresses, phone numbers, and emails — with authentic Indonesian characteristics such as ethnicity-based naming, village & district addressing, and local mobile number prefixes.

Works in JavaScript, TypeScript, Node.js, and Bun.


Installation

npm

npm install indofaker

pnpm

pnpm install indofaker

bun

bun add indofaker

Import and Usage

import {
  getRandomName,
  getRandomAddress,
  getRandomPhone,
  getRandomEmail
} from "indofaker";

console.log(getRandomName());
console.log(getRandomAddress());
console.log(getRandomPhone());
console.log(getRandomEmail());

Name Generator

getRandomName(options?: {
  gender?: "male" | "female";
  ethnicity?: "common" | "jawa" | "sunda" | "batak" | "minang" | "bugis" | "bali" | "papua" | "tionghoa" | "arab" | "random";
});

Ethnicity Options

| Key | Description | |-----------|-------------| | common | Neutral Indonesian names | | jawa | Javanese | | sunda | Sundanese | | batak | Batak (auto surname/marga) | | minang | Minangkabau | | bugis | Bugis | | bali | Balinese | | papua | Papuan | | tionghoa | Indonesian Chinese naming + surnames | | arab | Arab-Indonesian naming |

Examples

getRandomName();
// "Dimas Handoko Santoso"

getRandomName({ gender: "female" });
// "Rahayu Sri"

getRandomName({ ethnicity: "batak" });
// "Togar Simanjuntak"

getRandomName({ ethnicity: "tionghoa", gender: "female" });
// "Celine Tan"

Address Generator

getRandomAddress(options?: {
  lang?: "id" | "en"; // default: "id"
});

Format (id)

Jl. Mawar No. 24, RT 03/RW 05, Kel. Sukamaju, Kec. Bojongloa, Kota Bandung, Jawa Barat, 40231

Format (en)

24 Mawar St, Sukamaju Village, Bojongloa District, Bandung City, West Java, 40231

Phone Number Generator

getRandomPhone(options?: {
  provider?: "all" | "telkomsel" | "indosat" | "xl" | "tri" | "smartfren";
  format?: "local" | "intl"; // default: local
});

Examples:

getRandomPhone();
// "085712345678"

getRandomPhone({ provider: "xl" });
// "087812345678"
getRandomPhone({ format: "intl" });
// "+6285712345678"

Email Generator

getRandomEmail(options?: {
  domain?: string; // default: "gmail.com"
});

Rules:

  • Takes result from getRandomName()
  • Converts to lowercase
  • Randomly uses underscore or no separator
  • Random chance to append 1–4 digit number

Example:

getRandomEmail();
// "[email protected]"

getRandomEmail({ domain: "company.org" });
// "[email protected]"

License

MIT

Support Us

If you find this project useful and would like to support its development, you can do so here:

  • Saweria: https://saweria.co/elbuho1315
  • Ko-fi : https://ko-fi.com/elbuho1315

Thank you for your support.