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

@bitclaw/loadtest

v1.3.0

Published

Load testing framework for SQLite-backed web applications

Readme

@bitclaw/loadtest

Load testing CLI for sqlite-saas apps. Supports both Bun-native and k6 test engines.

Quick Start

# From repo root
bun run loadtest:bun --app runmist          # Quick Bun-native test
bun run loadtest:k6 --app runmist           # Full k6 test

# From package directory
cd packages/loadtest
bun src/cli.ts run --app runmist --mode quick
bun src/cli.ts report --app runmist

CLI Usage

loadtest run [options]     # Run load tests
loadtest report [options]  # Generate report from results

Run Options

| Flag | Default | Description | |------|---------|-------------| | --app <name> | required | App to test (matches apps/{name}/) | | --mode <mode> | quick | Test mode: quick, full, or stress | | --engine <engine> | bun | Engine: bun (native) or k6 | | --production | false | Test against production URL | | --public-only | false | Skip authenticated endpoints | | --json | false | Output results as JSON | | --tier <tier> | - | Hetzner tier for threshold overrides |

Per-App Configuration

Each app defines a loadtest.config.ts in its directory:

// apps/runmist/loadtest.config.ts
import type { AppLoadTestConfig } from '@bitclaw/loadtest'

export default {
  appName: 'runmist',
  baseUrl: 'http://localhost:3001',
  productionUrl: 'https://runmist.com',

  auth: {
    loginEndpoint: '/api/loadtest/auth',
    emailEnvVar: 'LOADTEST_EMAIL',
    passwordEnvVar: 'LOADTEST_PASSWORD',
    sessionCookieName: 'runmist_session',
  },

  publicEndpoints: [
    { path: '/', method: 'GET' },
    { path: '/api/health', method: 'GET' },
  ],

  authenticatedEndpoints: [
    { path: '/dashboard', method: 'GET' },
    { path: '/servers', method: 'GET' },
  ],

  modes: {
    quick: { concurrencyLevels: [1, 5], durationSec: 5, warmupRequests: 10 },
    full: { concurrencyLevels: [1, 5, 10, 25], durationSec: 15, warmupRequests: 50 },
    stress: { concurrencyLevels: [1, 10, 25, 50, 100], durationSec: 30, warmupRequests: 100 },
  },

  thresholds: {
    p95MaxMs: 50,
    minSuccessRate: 99.5,
    minThroughput: 100,
    tiers: {
      cpx21: { p95MaxMs: 50, minSuccessRate: 99.5, minThroughput: 100 },
      cpx31: { p95MaxMs: 30, minSuccessRate: 99.9, minThroughput: 200 },
    },
  },
} satisfies AppLoadTestConfig

Engines

Bun-Native (--engine bun)

Uses Bun's built-in HTTP client for fast, zero-dependency load testing. Best for quick local validation.

k6 (--engine k6)

Uses k6 for production-grade load testing with detailed metrics. Requires k6 to be installed. k6 scripts are in k6/ directory (e.g., k6/runmist.js).

Thresholds

Tests can define pass/fail thresholds:

  • p95MaxMs - Maximum acceptable P95 latency
  • minSuccessRate - Minimum success rate (0-100%)
  • minThroughput - Minimum req/s at lowest concurrency

Hetzner tier overrides let you set different thresholds per server type.

Testing

cd packages/loadtest
bun test

6 test files covering config loading, runners, auth, and report formatting.