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

@http-forge/cli

v0.2.37

Published

Standalone HTTP Forge launcher and Postman alternative for UI mode, API testing, CI/CD, and MCP server automation

Readme

HTTP Forge CLI

npm version npm downloads VS Code Marketplace license node

The standalone launcher, terminal, and automation CLI for HTTP Forge.

Use it to launch HTTP Forge from terminal, run API collections and suites in CI/CD, manage MCP server lifecycle, and generate JUnit/HTML reports.

Built for Postman-compatible workflows: import Postman collections/environments and run them with Postman-style scripting and assertions.

For the full interactive experience, run http-forge launch. The launcher ensures VS Code and the HTTP Forge extension are installed in the target profile before opening it. Marketplace: HTTP Forge

Who It Is For

  • Developers who want to launch standalone HTTP Forge from terminal.
  • Developers who want to run API collections from terminal.
  • QA teams who need repeatable suite runs and JUnit reports.
  • CI/CD pipelines that need API test gating without a GUI.
  • Agent workflows that need MCP server lifecycle commands.

Why HTTP Forge CLI

  • Launch HTTP Forge in standalone UI mode with one command.
  • Run API tests in CI/CD without a GUI.
  • Use the same HTTP Forge workspace in editor and terminal.
  • Generate JUnit, HTML, and AI-friendly Markdown run summaries for team visibility.
  • Manage MCP server lifecycle for agent workflows.
  • Work with OpenAPI, environments, and Postman-style scripts in one toolchain.

Works With

  • HTTP Forge workspaces and collections
  • OpenAPI specs
  • Postman imports
  • GitHub Actions, Jenkins, GitLab CI, and other pipelines

Postman Compatibility (Import + Run)

HTTP Forge CLI is designed for a full Postman-compatible flow in terminal:

  • Import Postman collection exports.
  • Import Postman environment exports.
  • Run imported requests, folders, collections, and suites in CI/CD.
  • Execute Postman-style scripts/assertions during runs.
# Import Postman collection
http-forge import collection --postman ./MyApi.postman_collection.json

# Import Postman environment
http-forge import env --postman ./MyEnv.postman_environment.json --env staging --overwrite

# Run imported collection using that environment
http-forge run collection "MyApi" --env staging --exit-code

1-Minute Quickstart

# 1) Install
npm install --global @http-forge/cli

# 2) Launch standalone HTTP Forge UI
http-forge launch

# 3) Import a Postman collection
http-forge import collection --postman ./MyApi.postman_collection.json

# 4) (Optional) Import a Postman environment
http-forge import env --postman ./MyEnv.postman_environment.json --env staging --overwrite

# 5) Run imported collection
http-forge run collection "MyApi" --env staging --exit-code

# 6) Run a suite with JUnit report for CI
http-forge run suite "smoke-tests" --env staging \
  --reporter junit:results/junit.xml --exit-code

Install

npm install --global @http-forge/cli

From monorepo:

cd http-forge.cli
npm install
npm run build

Core Commands

| Command | Purpose | |---|---| | http-forge launch | Launch standalone HTTP Forge UI (--test, --dev, --both) | | http-forge run ... | Run a request, folder, collection, or suite | | http-forge mcp ... | Start/stop/status for MCP server | | http-forge list ... | List collections, suites, requests, folders, environments | | http-forge env ... | Get/set/unset environment variables | | http-forge import ... | Import collections and Postman environment files | | http-forge generate ... | Generate typed TypeScript API clients from collections | | http-forge architect ... | Design a complete REST API from a natural-language intent | | http-forge suggest-env ... | Detect hardcoded values and suggest env vars | | http-forge schedule ... | Generate scheduled CI workflow/cron config | | http-forge copy-as ... | Export request as curl/fetch/python snippet |

Design an API from a Natural-Language Intent

http-forge architect designs a complete REST API from a plain-English intent — endpoints, DTOs, and auth — then generates the full test suite, runnable flow, docs, and a round-trip OpenAPI export in one flow:

# Design an API (persists the collection; prints the reviewable package)
http-forge architect "I need a shopping cart"

# Approve: persist the suite and write the flow/docs/OpenAPI byproducts
http-forge architect "a todo list" --name "Todo API" \
  --base-url https://api.todo.dev --apply \
  --flow-out ./todo.flow.js --docs-out ./todo.md --openapi-out ./todo.openapi.json

Requires an AI provider (OPENAI_API_KEY or ANTHROPIC_API_KEY). All generated artifacts are tagged ai_generated: true so the Phase 2b drift machinery keeps them honest when your code changes.

Generate Typed Clients

Use one consistent command for code generation in the HTTP Forge family:

# Generate all collections
http-forge generate --input ./collections --output ./api-clients

# Generate one collection
http-forge generate --input ./collections --output ./api-clients --collection forgerock-login

# Generate one request
http-forge generate --input ./collections --output ./api-clients --request forgerock-login/login-request

This command delegates to @http-forge/codegen under the hood.

Migration notes from http-forge-codegen are in docs/cli-reference.md.

Launch Modes

# Default: standalone HTTP Forge profile
http-forge launch

# Use your normal VS Code profile
http-forge launch --dev

# Open both test and dev profiles
http-forge launch --both

# Open a workspace path
http-forge launch --dev /path/to/workspace

Use http-forge launch when you want the standalone HTTP Forge UI from terminal.

The launcher auto-detects OS/shell and uses the matching script:

  • Linux/macOS: scripts/http-forge.sh
  • Windows: scripts/http-forge.bat

Common Run Patterns

# Collection
http-forge run collection "my-api" --env dev --include perRequest

# Suite
http-forge run suite "smoke-tests" --env staging --exit-code

# Request
http-forge run request "Get Users" --collection "my-api" --env dev

# Folder
http-forge run folder "Auth/Login" --collection "my-api" --env dev

If a folder name itself contains /, keep folder levels separated with / in the CLI input. Example: http-forge run folder "agl-page-composition / TRAY/EPG / AVS5-5304 - TRAY/EPG" --collection "reg-agl-sq5".

CI/CD Example

http-forge run suite "smoke-tests" \
  --env staging \
  --reporter junit:results/junit.xml \
  --exit-code

Use this in CI to fail the pipeline on assertion failures and publish JUnit artifacts.

MCP Port Configuration

For http-forge mcp start, CLI uses mcp.port from http-forge.config.json by default (fallback 3100). Use --port to override for a single run.

# Uses mcp.port in http-forge.config.json (default 3100)
http-forge mcp start

# One-off override
http-forge mcp start --port 3201

Detailed Docs

  • Full CLI reference: docs/cli-reference.md
  • CI guide: docs/ci-guide.md
  • Example workflow: docs/ci-example.yml
  • HTTP Forge docs: https://github.com/hsl1230/http-forge/tree/main/docs/user-guide

License

MIT