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

testhub-app

v0.2.1

Published

Local-first test management tool — lightweight alternative to cloud testing platforms

Downloads

117

Readme

TestHub

Local-first test management tool. Lightweight alternative to cloud testing platforms.

Let AI agents auto-generate test cases via API, then review and execute them in a clean Web UI.

Quick Start

npx testhub-app

Open http://localhost:4010 in your browser. Done.

Data is stored in ~/.testhub/ by default (SQLite database + API token).

Features

  • Zero config — One command to start. No database setup, no Docker, no cloud account.
  • Full REST API — CRUD for projects, test cases, plans, and execution. Automate everything.
  • Web UI — Organize test cases in directories with tags, execute test plans, track results.
  • Agent-friendly — Built-in /skill.md guide and OpenAPI spec (/api/docs) for AI agent integration.
  • Local-first — All data stays on your machine in SQLite. No network dependency.

Configuration

| Variable | Default | Description | |---|---|---| | PORT | 4010 | Server port | | HOST | 127.0.0.1 | Bind address | | TESTHUB_DATA_DIR | ~/.testhub | Data directory (database + API token) | | TESTHUB_DB_PATH | <data_dir>/testhub.db | Full path to SQLite database file | | TESTHUB_API_TOKEN | (auto-generated) | Fixed API authentication token |

# Custom port
PORT=3000 npx testhub-app

# Custom data directory
TESTHUB_DATA_DIR=./my-project-tests npx testhub-app

API Authentication

All /api/v1/* endpoints require the x-testhub-token header.

The token is printed to the console on startup and saved in ~/.testhub/api-token.

curl http://localhost:4010/api/v1/projects \
  -H "x-testhub-token: <TOKEN>"

Optional headers:

  • x-testhub-operator — Operator identifier (default: web-user)
  • x-testhub-source — Source tag: api | ui | system (default: api)

AI Agent Integration

After starting the server, send the skill guide URL to your AI agent:

http://localhost:4010/skill.md

The guide includes data models, workflow examples, and ready-to-use curl commands with the current server address and token injected.

  • Swagger UI: http://localhost:4010/api/docs
  • OpenAPI Spec: http://localhost:4010/api/docs/json

API Overview

Prefix: /api/v1

Projects       GET/POST        /projects
Libraries      GET/POST        /projects/:id/libraries
Directories    GET/POST        /libraries/:id/directories     (tree structure)
Cases          GET/POST        /libraries/:id/cases
Cases (batch)  POST            /libraries/:id/cases/batch
Tags           GET/POST        /libraries/:id/tags
Plans          GET/POST        /projects/:id/plans
Plan Cases     GET/POST/PATCH  /plans/:id/cases

Quick API Example

# 1. Create a project
curl -X POST http://localhost:4010/api/v1/projects \
  -H "x-testhub-token: <TOKEN>" \
  -H "content-type: application/json" \
  -d '{"name":"My Project"}'

# 2. Create a test library
curl -X POST http://localhost:4010/api/v1/projects/1/libraries \
  -H "x-testhub-token: <TOKEN>" \
  -H "content-type: application/json" \
  -d '{"name":"Core Tests","code":"CORE"}'

# 3. Batch create test cases
curl -X POST http://localhost:4010/api/v1/libraries/1/cases/batch \
  -H "x-testhub-token: <TOKEN>" \
  -H "content-type: application/json" \
  -d '{"cases":[{"title":"Login works","priority":"P1","caseType":"functional","contentType":"text","textContent":"Enter valid credentials and verify login"}]}'

# 4. Create a test plan and add cases
curl -X POST http://localhost:4010/api/v1/projects/1/plans \
  -H "x-testhub-token: <TOKEN>" \
  -H "content-type: application/json" \
  -d '{"name":"v1.0 Regression","status":"in_progress"}'

Development

git clone <repo-url>
cd testhub
pnpm install
pnpm dev          # Hot-reload dev mode (Vite + Fastify)
pnpm build        # Build all packages
pnpm test         # Run all tests
pnpm typecheck    # TypeScript type check

Tech stack: Fastify + React + SQLite (Drizzle ORM) + TypeScript monorepo (pnpm + Turborepo).

See CLAUDE.md for full project documentation.

Requirements

  • Node.js >= 20

License

MIT