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

@litocodes/persona-test

v1.3.0

Published

AI User Testing with Personality - Simulate real users breaking your website

Readme

🌍 Persona: The Lagos Test

Your app works on a MacBook Pro on Fiber. It breaks for the other 5 billion people.

Persona is Chaos Engineering for UX. It spawns adversarial AI agents with distinct psychological profiles to attack your app under real-world conditions.

npm


🔥 The Lagos Test

Silicon Valley builds software for perfect internet. Persona tests for the real world:

# Test your site as an emerging market user on 3G
npx @litocodes/persona-test --url="https://your-site.com" --agent="lagos" --network="lagos-3g"

What happens:

  • 🌐 400ms latency, 400 Kbps bandwidth (real Lagos conditions)
  • 📱 Simulated $50 Android phone behavior
  • 🖱️ Double-clicks (because first click "didn't work")
  • 🔄 Aggressive refresh when spinners hang
  • 😤 Immediate distrust of popups and data collection

🎭 The Agents

| Agent | Personality | The Test | |-------|-------------|----------| | 🌍 Agent Lagos | Emerging market user on $50 phone, 3G | Survives your bloated JS bundle | | 👴 Grandpa Joe | 70yo, low tech literacy | Finds the phone number | | 🏎️ Zoomer Zoe | 20yo, rage-clicks, impatient | Signs up in <5 clicks | | 🕵️ Skeptical Sam | Privacy paranoid, reads fine print | Finds and rejects cookies | | 💀 Hacker Harry | Security researcher | SQL injection testing | | 🧭 Explorer Emma | Methodical, maps everything | Full site exploration |


🌐 Network Chaos Modes

--network="wifi"         # No throttling
--network="4g"           # 4 Mbps, 20ms
--network="3g"           # 1.5 Mbps, 100ms
--network="lagos-3g"     # 400 Kbps, 400ms (Nigerian 3G)
--network="lagos-tunnel" # 200 Kbps, 800ms (tunnel effect)
--network="chaos"        # 100 Kbps, 1200ms (worst case)
--network="edge"         # 50 Kbps, 800ms (2G)

🚀 Quick Start

# Run instantly
npx @litocodes/persona-test --url="https://your-site.com" --agent="lagos" --network="lagos-3g"

# Run ALL agents in parallel (Mission Control)
npx @litocodes/persona-test --url="https://your-site.com" --all

# Set your Cerebras API key (free)
export CEREBRAS_API_KEY=csk-xxxxx

📦 Output

Every session produces:

  1. 🎥 Video Recording - Watch the AI break your site
  2. 📝 QA Report - AI-generated friction analysis
  3. 📋 Action Log - Step-by-step decision trail
videos/Agent_Lagos_lagos-3g_2026-01-25_ABANDONED.webm
reports/REPORT_Agent_Lagos_2026-01-25.md

🎯 Why This Exists

"If you pass the Lagos Test, you're ready for the world." "If you fail, you're just a US-only toy."

Most testing tools check if buttons work. Persona checks if buttons are frustrating.

We test for:

  • Confusion, not correctness
  • Trust, not just functionality
  • Global readiness, not just US/EU

🛠️ CLI Options

persona --url="<URL>" --agent="<AGENT>" [options]

Options:
  --url, -u       Target URL (required)
  --agent, -a     lagos, boomer, zoomer, skeptic, hacker, explorer
  --all           Run ALL agents in parallel
  --network, -n   wifi, 4g, 3g, lagos-3g, lagos-tunnel, chaos, edge
  --record        Record video (default: true)
  --headless      Run without visible browser

📜 License

MIT © 2026


Built for the next billion users. 🌍