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

loke

v0.1.0

Published

Your all-time trickster and provider of fakes and mocks for protyping, testing, and fun!

Readme

loke

Your all-time trickster and provider of fakes and mocks for prototyping, testing, and fun!

Quick Start

CLI

Generate fake data from the command line:

# Random hex values
loke hex                    # 7f693620
loke hex --length 32        # 859a70bc75691a13dc88ad44c5f2d82e

# SHA256 hashes
loke sha256                 # b4014e5e435233cbf1825f241b9337590d3775f3c1df8e242f77b2174d5e8fe9

Library

Use loke in your TypeScript/JavaScript projects:

import { fake, hex, sha256 } from 'loke';

const randomHex = await fake('hex');
const randomHash = await fake('sha256');
const customHex = await hex({ length: 16 });

Planned Features ✨

The following features don't exist yet, but Claude got a little excited and imagined them while Maria was deciding what to build next. Consider them "aspirational documentation".

Realistic Data Generation

  • Personal Data: Names, email addresses, phone numbers, addresses with locale support
  • Financial: Credit card numbers (test-safe), IBANs, BIC codes, currency amounts
  • Network: MAC addresses, IP addresses (v4 & v6), UUIDs, URLs
  • Temporal: Timestamps, durations, recurring event patterns with timezone support
  • Documents: SSNs, passport numbers, license plates, ISBNs

Weighted & Seeded Generation

  • Seed-based generation for reproducible test data
  • Weighted random selection for realistic distributions
  • Correlation between generated fields (e.g., country-specific data)

Data Ranges & Constraints

  • ISO date ranges with complex filtering (e.g., "weekdays only", "business hours")
  • Numeric ranges with custom distributions
  • Pattern-based generation (regex, format strings)

Composable Schemas

  • Define reusable fake data schemas
  • Generate complete objects matching your data models
  • Validation against schemas

MCP Integration

  • Use loke as a Model Context Protocol server for Claude and other AI assistants
  • Generate realistic test data directly from conversation with Claude
  • Integrate fake data generation into AI-assisted development workflows

Data Persistence & Replay

  • Generate and save fake data datasets
  • Replay datasets for consistent testing across runs
  • Export to JSON, CSV, SQL, or other formats

Current Version

This is version 0.1.0 - the absolute MVP. We're just getting started! The core library and CLI infrastructure are in place, with basic hex and SHA256 generators ready for immediate use.

Contributing

Contributions welcome! This project is in active development and there's plenty of room to build out the vision above.