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

random-profiles

v1.3.0

Published

Generate fake user profiles and companies from the command line

Readme

random-profiles

Generate fake user profiles and companies from the command line. Powered by the Random Profiles API.

Install

npm install -g random-profiles

Or use directly with npx:

npx -y random-profiles --count 5

Setup

Get a free API key at random-profiles.com, then:

export RANDOM_PROFILES_API_KEY=rp_your_key_here

Or pass it inline:

npx -y random-profiles --key rp_your_key --count 5

Usage

# Get 10 random profiles (default)
random-profiles

# Get 5 US female profiles
random-profiles --count 5 --country US --gender female

# Get profiles as a table
random-profiles --count 5 --format table

# Get profiles as CSV
random-profiles --count 20 --format csv > profiles.csv

# Only specific fields
random-profiles --count 5 --fields name,email,phone

# Small photo URLs
random-profiles --count 5 --photo-size 128

# Deterministic results
random-profiles --count 5 --seed 42

# Get a single profile by UUID
random-profiles --uuid a1b2c3d4-e5f6-7890-abcd-ef1234567890

# Download a random profile photo
random-profiles --image random --size 256 --output photo.jpg

# Download a specific profile photo by UUID
random-profiles --image a1b2c3d4-e5f6-7890-abcd-ef1234567890 --output avatar.jpg

# Pipe image to another command
random-profiles --image random --size 128 | imgcat

# Check your usage
random-profiles --usage

Companies

# 10 random fake companies (default)
random-profiles --companies

# 5 Technology companies from the US
random-profiles --companies --count 5 --industry Technology --country US

# Mid-size healthcare or finance companies in the UK
random-profiles --companies --country GB --industry Healthcare --size 201-500,501-1000

# Only specific groups
random-profiles --companies --count 10 --fields name,industry,leadership,tech,financial

# CSV export
random-profiles --companies --count 50 --format csv > companies.csv

# Compact table
random-profiles --companies --count 10 --format table

# Deterministic
random-profiles --companies --count 3 --seed 42

# Single company by UUID
random-profiles --company-uuid 7d3063d3-b62b-41ef-8e60-f5b50dac8ee0

Field Groups

Profiles: name, email, phone, identity, bio, social, physical, job, address, financial, network, documents, vehicle, contact, digital, interests, education, photo, relationships, meta

Companies: name, industry, size, location, contact, social, financial, tech, leadership, legal, operations, product, relationships, meta

The relationships group exposes the cross-resource graph: profiles have company_uuid and colleague_uuids, companies have employee_uuids. Hydrate with --uuid / --company-uuid.

Output Formats

| Format | Description | |--------|-------------| | json | Pretty-printed JSON (default) | | csv | CSV with flattened nested fields | | table | Compact table with key fields |

Profile Options

| Option | Description | |--------|-------------| | --count <n> | Number of profiles (1-100, default 10) | | --gender <g> | Filter: male, female, non-binary | | --country <codes> | Filter: US,GB,DE,FR,AU,BR,JP,IN,NG (comma-separated) | | --min-age <n> | Minimum age filter | | --max-age <n> | Maximum age filter | | --fields <groups> | Field groups to return (comma-separated) | | --photo-size <n> | Photo size: 64, 128, 256, 512, 1024 | | --photo-format <f> | Image format for photo URL: jpg (default) or webp | | --seed <n> | Seed for deterministic results | | --format <f> | Output: json, csv, table | | --uuid <id> | Get a single profile |

Company Options

| Option | Description | |--------|-------------| | --companies | Fetch companies instead of profiles | | --count <n> | Number of companies (1-100, default 10) | | --industry <name> | Filter by industry (Technology, Healthcare, Finance, etc.) | | --country <codes> | Filter: US,GB,DE,FR,AU,BR,JP,IN,NG (comma-separated) | | --size <brackets> | Filter: 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5000+ | | --fields <groups> | Field groups to return (comma-separated) | | --logo-size <n> | Logo size in meta.logo_url: 64, 128, 256, 512, 1024 | | --logo-format <f> | Image format for meta.logo_url: jpg (default) or webp | | --seed <n> | Seed for deterministic results | | --format <f> | Output: json, csv, table | | --company-uuid <id> | Get a single company |

Shared Options

| Option | Description | |--------|-------------| | --image <id> | Download a profile photo (UUID or random) | | --size <n> | Image size: 64, 128, 256, 512, 1024 | | --output <path> | Save image to file (default: stdout) | | --usage | Show API key usage stats | | --key <key> | API key (or set RANDOM_PROFILES_API_KEY) |

See also

License

MIT