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

@vielzeug/illusionist

v2.3.1

Published

Typed, deterministic, locale-aware fake data generator with seeded PRNG

Readme

@vielzeug/illusionist

Typed, deterministic, locale-aware fake data generator with seeded PRNG.

npm version License: MIT

Installation

pnpm add @vielzeug/illusionist
npm install @vielzeug/illusionist
yarn add @vielzeug/illusionist

Quick Start

import { createIllusion } from '@vielzeug/illusionist';
import { en } from '@vielzeug/illusionist/locales';

const illusion = createIllusion({ seed: 12345, locale: en });

illusion.person.fullName();      // "Ashley Harris"
illusion.internet.email();       // "[email protected]"
illusion.commerce.price();       // Money<USD>
illusion.date.past({ years: 5 }); // Temporal.ZonedDateTime
illusion.finance.iban();         // "IT0649896243786776403271206"
illusion.location.city();        // "Denver"
illusion.lorem.paragraph();      // "Dolor in fugiat anim dolor aute officia irure sunt..."
illusion.system.semver();        // "7.4.0"

illusion.dispose();              // [Symbol.dispose]() also works

Entry Points

  • @vielzeug/illusionist — curated root exports + createIllusion factory
  • @vielzeug/illusionist/person — names, genders, job titles
  • @vielzeug/illusionist/internet — emails, URLs, IPs, user agents
  • @vielzeug/illusionist/commerce — product names, prices, departments
  • @vielzeug/illusionist/date — past/future dates, birthdays, weekdays
  • @vielzeug/illusionist/finance — IBANs, credit cards, crypto addresses
  • @vielzeug/illusionist/location — cities, streets, coordinates
  • @vielzeug/illusionist/lorem — lorem ipsum text generation
  • @vielzeug/illusionist/system — file paths, semver, UUIDs, cron
  • @vielzeug/illusionist/seedcreateSeed, mulberry32 PRNG
  • @vielzeug/illusionist/locales — locale objects (en, de); tree-shakeable, import only what you use

Seeded Determinism

Pass a seed for reproducible output — same seed always produces the same sequence across all categories. Omit seed for cryptographic randomness via crypto.getRandomValues.

const a = createIllusion({ seed: 'test-fixture', locale: en });
const b = createIllusion({ seed: 'test-fixture', locale: en });

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

Locale Support

Initial locales are explicit, tree-shakeable objects exported from @vielzeug/illusionist/locales. Locale data ships only for locales you import; the root package includes no default locale.

import { de } from '@vielzeug/illusionist/locales';

const illusion = createIllusion({ seed: 42, locale: de });

illusion.person.firstName();  // "Mathilda"
illusion.location.city();     // "Bielefeld"

For dynamic app switching, load the locale before creating the synchronous instance:

const { de } = await import('@vielzeug/illusionist/locales');
const illusion = createIllusion({ locale: de });

Documentation

License

MIT © Helmuth Saatkamp — part of the Vielzeug monorepo.