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

guide-mark-ii

v1.1.1

Published

CLI tool for measuring LLM inference performance against any OpenAI-compatible server

Readme

Guide Mark II

TypeScript port of mlx-chronos benchmark suite for measuring LLM inference performance against any OpenAI-compatible server on Apple Silicon.

Features

  • Measures throughput (tok/s), TTFT (cold + cached), RAM usage, and thermal state
  • Background monitoring during benchmark runs
  • Two profiles: baseline (fast) and sustained (throttling detection)
  • JSON and Markdown result reports with styled terminal output
  • HTTP retry with exponential backoff

Installation

npm install -g guide-mark-ii

Usage

Run a benchmark against a local inference server:

guide-mark-ii run --url http://localhost:8000/v1 --model Qwen3.5-4B

Required Options

| Option | Description | |--------|-------------| | --url <url> | URL of a running OpenAI-compatible server (e.g. http://192.168.1.50:8000/v1) | | --model <model> | Model name exactly as shown in the engine (e.g. Qwen3.5-4B-OptiQ-4bit) |

Benchmark Options

| Option | Default | Description | |--------|---------|-------------| | --trials <n> | 5 (baseline) / 1 (sustained) | Number of trials per metric. Max: 30 | | --profile <p> | baseline | baseline for quick runs, sustained for throttling detection | | --max-tokens <n> | 100 (baseline) / 1000 (sustained) | Max tokens per throughput trial | | --min-tokens <n> | — | Min tokens per throughput trial (engines that support it) |

Monitoring Options

| Option | Default | Description | |--------|---------|-------------| | --ram-sample-interval <s> | 0.05 | Seconds between RAM samples | | --cooldown-seconds <s> | 0 | Wait this long since last run before starting |

Output Options

| Option | Default | Description | |--------|---------|-------------| | --format <f> | json | json, markdown, or all | | --output-dir <dir> | ./results/local | Directory for result files |

Metadata Options

| Option | Default | Description | |--------|---------|-------------| | --engine <name> | generic | Engine label stored in results (no functional effect) |

Examples

Basic benchmark:

guide-mark-ii run --url http://localhost:8000/v1 --model my-model

Sustained profile with Markdown output:

guide-mark-ii run \
  --url http://localhost:8000/v1 \
  --model my-model \
  --profile sustained \
  --format all

Custom trials and cooldown:

guide-mark-ii run \
  --url http://localhost:8000/v1 \
  --model my-model \
  --trials 10 \
  --cooldown-seconds 300

Output

Results are saved to --output-dir (default: ./results/local/). JSON files contain full benchmark data including raw trial values, hardware info, thermal monitoring, and phase timings.

When using --format markdown or --format all, the results are also rendered to the terminal with styled formatting.

Development

bun install         # Install dependencies
bun run dev         # Watch mode
bun run build       # Build for production
bun test            # Run tests
bun run typecheck   # Type checking
bun run lint        # Lint code

Project Structure

src/
├── cli.ts            # CLI entry point (commander)
├── benchmark.ts      # Core benchmark orchestration
├── engines.ts        # OpenAI-compatible HTTP client
├── constants.ts      # Prompt pools, protocol builders, config
├── schema.ts         # Zod schemas for result validation
├── stats.ts          # Statistical computation (mean, stddev, p95)
├── detect.ts         # Hardware detection (Apple Silicon)
├── trackers.ts       # Background RAM/thermal monitoring
├── httpRetry.ts      # HTTP retry with exponential backoff
├── reporters.ts      # JSON and Markdown report generation
└── index.ts          # Public API exports