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 🙏

© 2026 – Pkg Stats / Ryan Hefner

fakeforge

v1.0.0

Published

Zero-dependency, seedable fake data generator — names, emails, phones, addresses and full person records for testing and prototyping.

Readme

fakeforge

Zero-dependency, seedable fake data generator for tests, demos, and prototypes. Generate names, emails, phone numbers, addresses, and full person records — with the option to make output fully reproducible.

Why another fake-data library?

  • Zero dependencies — nothing to audit, tiny install.
  • Seedable — pass a seed and you get the same data every run, so your test snapshots don't break.
  • Simple API — one class, intuitive methods.

Install

npm install fakeforge

Quick start

const FakeForge = require('fakeforge');

const fake = new FakeForge();

fake.fullName();   // "Sofia Martinez"
fake.email();      // "[email protected]"
fake.phone();      // "(415) 892-3310"
fake.address();    // { street, city, state, stateAbbr, zip }
fake.person();     // full record (see below)

Or grab the ready-made default instance:

const { fake } = require('fakeforge');
fake.fullName();

Reproducible data with seeds

Pass a number or string seed. The same seed always produces the same sequence — ideal for deterministic tests.

const a = new FakeForge('my-seed');
const b = new FakeForge('my-seed');

a.fullName() === b.fullName(); // true

API

| Method | Returns | | --- | --- | | firstName() | First name | | lastName() | Last name | | fullName() | "First Last" | | email(first?, last?) | Email, derived from a name if given | | phone(format?) | Phone; format uses # as a digit placeholder | | streetAddress() | "123 Maple St" | | city() / state(abbr?) / zip() | Address parts | | address() | { street, city, state, stateAbbr, zip } | | number(min?, max?) | Integer in range | | bool(probability?) | Boolean | | pick(array) | Random item from your array | | uuid() | v4-style UUID | | date(start?, end?) | Date in range | | words(n?) | n words of lorem ipsum | | person() | Full person record | | array(method, n, ...args) | Array of n results from a method |

Custom phone formats

fake.phone('+1-###-###-####'); // "+1-415-892-3310"
fake.phone('###.###.####');    // "415.892.3310"

Generating many records

const users = new FakeForge('users').array('person', 100);
// 100 deterministic person objects

Example person record

{
  "id": "a4e3c9e8-96c5-49ae-aa78-50692d103f9f",
  "firstName": "Diego",
  "lastName": "Davis",
  "fullName": "Diego Davis",
  "email": "[email protected]",
  "phone": "(352) 762-6744",
  "address": {
    "street": "3432 Cedar Way",
    "city": "Salem",
    "state": "Georgia",
    "stateAbbr": "GA",
    "zip": "55495"
  },
  "birthDate": "1999-09-24"
}

License

MIT