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

@glubean/cli

v0.2.6

Published

The Glubean command-line tool. Run tests, sync results to Cloud, scaffold projects, manage environments.

Downloads

608

Readme

@glubean/cli

The Glubean command-line tool. Run tests, sync results to Cloud, scaffold projects, manage environments.

npm install -g glubean

Or invoke once without installing:

npx glubean <command>

Both glubean and the short alias gb are installed.

Quick start

glubean init                    # interactive wizard
glubean run                     # run all tests in testDir
glubean run path/to/file.test.ts
glubean run --filter checkout --tag smoke
glubean run --ci --upload       # CI mode + push results to Cloud
glubean migrate                 # preview v0.1.x -> v10 contract changes

See the full project README at the repo root for the broader Glubean story (SDK, MCP, agent workflow).

Commands

init

Scaffold a new Glubean project. The interactive wizard asks what mode you want and writes the right config.

glubean init
glubean init --contract-first         # contracts/ + tests/ layout
glubean init --ai-tools               # also configure MCP server + AI skill
glubean init --hooks --github-actions # git hooks + CI workflow
glubean init --no-interactive --base-url https://api.example.com

run [target]

Run tests from a file, a directory, or a glob. Defaults to the project's testDir.

glubean run                                # everything in testDir
glubean run tests/checkout.test.ts         # one file
glubean run tests/checkout                 # one directory
glubean run --explore                      # use exploreDir instead of testDir
glubean run --filter login                 # name or id substring
glubean run --tag smoke,critical           # by tag (comma or repeatable)
glubean run --tag-mode and                 # all tags must match
glubean run --pick happyPath               # specific test.pick example
glubean run --fail-fast                    # stop on first failure
glubean run --result-json                  # write .result.json
glubean run --reporter junit               # JUnit XML
glubean run --ci                           # shorthand: --fail-fast + JUnit
glubean run --upload --project <id>        # push to Glubean Cloud
glubean run --inspect-brk                  # attach a debugger

Useful flags:

| Flag | Effect | |------|--------| | --env-file <path> | Load a specific .env file | | --config <paths> | One or more config files (comma-separated or repeatable) | | --verbose | Show traces and assertions inline | | --log-file | Write per-test logs to disk | | --emit-full-trace | Include full headers and bodies in HTTP traces | | --infer-schema | Infer JSON Schema from response bodies | | --trace-limit <n> | Cap trace files per test (default 20) | | --meta key=value | Attach custom metadata to the run (repeatable) | | --no-session | Skip session setup/teardown | | --no-update-check | Skip the npm update check |

scan

Statically analyze a directory and emit metadata.json describing the test suite (used by IDE integrations and Cloud upload). Also extracts contract metadata when .contract.ts files are present.

glubean scan tests/
glubean scan --upload --project <id>      # push contract metadata without running

migrate

Preview or apply v0.1.x -> v10 project migrations. The command rewrites safe legacy patterns and reports anything that needs manual review.

glubean migrate
glubean migrate --dir path/to/project
glubean migrate --apply

Current automatic changes:

| Pattern | Migration | |---------|-----------| | contract.http("id", spec) | Adds a scoped contract.http.with(...) instance and calls it | | import "@glubean/grpc" / import "@glubean/graphql" | Moves plugin installation into glubean.setup.ts |

Manual review items are reported for removed case-level setup / teardown, legacy definePlugin((runtime) => ...), and cases with needs that should be wrapped in defineHttpCase<Needs>(...).

validate-metadata

Verify that a previously generated metadata.json still matches the local files.

glubean validate-metadata metadata.json

login

Authenticate with Glubean Cloud. Stores a token under ~/.glubean/.

glubean login

patch <spec>

Merge an OpenAPI spec with a sibling .patch.yaml and write the resolved spec.

glubean patch openapi.yaml

spec split <spec>

Dereference all $refs and split a spec into per-endpoint files. Useful for feeding individual endpoints to an agent.

glubean spec split openapi.yaml

redact

Preview how the redaction policy would transform a .result.json before uploading.

glubean redact tests/checkout.result.json

config mcp

Install and configure the Glubean MCP server for your editor (Claude Code, Cursor, Windsurf, and others). Auto-detects installed tools.

glubean config mcp

env

Manage which .env.<name> file is active for glubean run.

glubean env list                # show available environments
glubean env use staging         # activate .env.staging
glubean env                     # print current active env
glubean env reset               # clear active env (use default .env)

upgrade

Self-upgrade to the latest published version.

glubean upgrade

Environment variables

| Variable | Purpose | |----------|---------| | GLUBEAN_CWD | Override the working directory (useful for shell aliases) | | GLUBEAN_PROJECT_ID | Default Cloud project for --upload | | GLUBEAN_TOKEN | Auth token for Cloud (alternative to glubean login) | | GLUBEAN_API_URL | Override the Cloud API URL |

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Test failure or CLI error |

Links

  • Glubean repo — SDK, runner, scanner, plugins
  • Docs — full documentation
  • Cloud — hosted run history and analytics