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

flakify

v1.0.1

Published

Unmask flaky tests by running them multiple times with beautiful real-time feedback

Readme

⚡ Flakify

Unmask flaky tests with style

A powerful CLI tool to detect flaky tests by running them multiple times with beautiful real-time progress tracking and detailed failure analysis.

npm version License: MIT

🎯 Why Flakify?

Flaky tests are a nightmare. They pass sometimes and fail other times, making your CI/CD unreliable. Flakify helps you identify these tests by running them multiple times and tracking their behavior.

✨ Features

  • 🔄 Run tests multiple times - Sequential or parallel execution
  • 📊 Real-time progress tracking - Watch your tests run with live stats
  • 🎨 Beautiful UI - Animated spinners and color-coded results
  • 📝 Detailed failure reports - See exactly which tests failed, in which file, and at which line
  • 🎯 Flaky test detection - Automatically identifies tests that pass sometimes and fail other times
  • 🚀 Works with any test runner - Jest, Vitest, Mocha, and more

📦 Installation

npm install -g flakify

🚀 Usage

Basic Usage

Run your tests multiple times:

flakify "yarn test" 10

Parallel Mode

Run tests in parallel for faster execution:

flakify "npm test" 5 --parallel

Real Examples

# Run Jest tests 10 times
flakify "yarn test" 10

# Run Vitest tests 20 times in parallel
flakify "yarn test:storybook" 20 --parallel

# Run specific test file 5 times
flakify "npm test -- Button.test.ts" 5

📖 Output Example

╔═══════════════════════════════════════════════════════════╗
║  ⚡ Flakify - Unmask Flaky Tests                           ║
╚═══════════════════════════════════════════════════════════╝

Command: yarn test
Runs: 10
Mode: → Sequential

  ✓ Run #1: Passed [147/147 files 560/560 tests]
  ✓ Run #2: Passed [147/147 files 560/560 tests]
  ⠹ Run #3: Running 5.3s [45/147 files]
  ○ Run #4: Pending
  ...

╔═══════════════════════════════════════════════════════════╗
║  Summary                                                  ║
╚═══════════════════════════════════════════════════════════╝

  ✓ Passed:       7/10
  ✗ Failed:       3/10
  ◈ Success Rate: 70.00%
  ⏱  Duration:     182.50s

🔥 FLAKY TEST DETECTED!

Failed Tests by Run:

Run #4:
  ✗ Button should handle click events
    src/components/Button.test.ts:42

Unique Failed Tests:
  ✗ Button should handle click events
    File: src/components/Button.test.ts:42
    Failed in run(s): 4, 7, 9

💡 Tip: yarn test src/components/Button.test.ts

🎛️ Options

| Option | Description | Default | | ------------ | ------------------------------- | ---------- | | <command> | Test command to run (in quotes) | Required | | <times> | Number of times to run | Required | | --parallel | Run tests in parallel | Sequential |

🧪 Supported Test Runners

  • ✅ Jest
  • ✅ Vitest
  • ✅ Mocha
  • ✅ Any test runner that outputs to stdout

💡 Tips

Finding the Perfect Number of Runs

  • 5-10 runs: Quick check for obvious flakiness
  • 20-50 runs: Thorough investigation
  • 100+ runs: Extreme cases or CI environment testing

Sequential vs Parallel

  • Sequential (default): Safer, prevents resource contention, easier to debug
  • Parallel (--parallel): Faster, good for independent tests, may stress system resources

Best Practices

  1. Start with sequential mode to understand the flakiness pattern
  2. Use parallel mode once you've identified the problematic tests
  3. Run flaky tests in isolation to debug more easily
  4. Fix root causes (timing issues, shared state, race conditions)

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT © Marco Trevisani

🙏 Acknowledgments

Built with love to make testing more reliable for everyone.


Made with ⚡ by Marco Trevisani