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

@hs-x/cli

v0.2.7

Published

HS-X CLI — init, validate, connect, dev, deploy, promote, rollback, doctor, sync. Installs the `hs-x` command.

Downloads

2,092

Readme

@hs-x/cli

The command-line tool for HS-X, a type-safe HubSpot app framework that deploys to Cloudflare Workers. Installing this package puts the hs-x command on your PATH: it scaffolds projects, runs the local dev loop, and deploys to your own HubSpot developer app and your own Cloudflare account.

Install

npm i -g @hs-x/cli
hs-x --version

Node 20+ and Bun can both run it. The npm package is @hs-x/cli; the installed command is hs-x. If you prefer not to install anything globally, every command also works through bunx @hs-x/cli <command>.

Thirty seconds

hs-x init deal-tagger     # scaffold a project (default template: workflow action)
cd deal-tagger
bun install
hs-x connect              # bind a HubSpot developer account and a Cloudflare account
hs-x dev                  # local dev loop
hs-x deploy               # deploy to your HubSpot app and your Cloudflare account

The CLI works direct-to-HubSpot out of the box. You provide the HubSpot and Cloudflare credentials, the CLI talks to both platforms directly, and nothing requires an HS-X platform account. The control plane, dashboard, and billing are opt-in: hs-x login authenticates an HS-X account and hs-x link attaches an already-deployed project to it.

Deployed Workers run in your Cloudflare account, and the generated .hs-x/alchemy.run.ts (checked into your repo) describes the Cloudflare resources your app owns — the app keeps running even if you stop using HS-X.

Commands

Grouped the way hs-x help prints them.

Start:

| Command | What it does | | --- | --- | | hs-x init [name] | Create a new HS-X project | | hs-x connect | Link this project to HubSpot and Cloudflare | | hs-x doctor | Diagnose local setup | | hs-x check | Validate project source |

Develop:

| Command | What it does | | --- | --- | | hs-x dev | Start the local dev server | | hs-x api <path> | Call HubSpot or the HS-X control plane | | hs-x flags | Manage feature flags | | hs-x migrate | Migrate legacy HubSpot apps |

Deploy:

| Command | What it does | | --- | --- | | hs-x deploy | Deploy the project | | hs-x promote | Promote a deploy to an environment | | hs-x rollback | Roll back an environment | | hs-x routes | Show active deploy routes |

Observe:

| Command | What it does | | --- | --- | | hs-x status | Show project health | | hs-x logs | Stream runtime and deploy telemetry | | hs-x drift | Show project drift | | hs-x audit list | List redacted account audit rows | | hs-x history | Show recent command runs |

Account:

| Command | What it does | | --- | --- | | hs-x login | Authenticate with an HS-X account token | | hs-x accounts | Manage HS-X accounts | | hs-x whoami | Show the active HS-X account | | hs-x logout | Remove the active HS-X account | | hs-x link | Attach this project to your HS-X account | | hs-x unlink | Clear the session; keep local project state |

Config:

| Command | What it does | | --- | --- | | hs-x secrets | Store app secrets for runtime deploys | | hs-x completion <shell> | Generate shell completion (bash, zsh, fish) | | hs-x update | Check for a newer CLI release | | hs-x help | Show command help |

Run hs-x <command> --help for command-specific flags. Most commands accept --json for machine-readable output, and prompts can be skipped in scripts with --yes where a command confirms before changing anything.

Connecting accounts

hs-x connect walks HubSpot and Cloudflare setup back to back; each side is also available on its own.

hs-x connect hubspot      # HubSpot developer account: PAK, or discovered from `hs accounts auth`
hs-x connect cloudflare   # Cloudflare: browser OAuth flow, or --auth-method api-token

For HubSpot, the CLI discovers credentials from the official HubSpot CLI config when you have run hs accounts auth, or accepts a developer personal access key via --pak. For Cloudflare, an interactive run uses a browser authorization-code flow by default; --auth-method api-token accepts a scoped API token you create in the Cloudflare dashboard and paste back, which also suits CI and headless shells.

Migrating an existing app

hs-x migrate run takes a legacy HubSpot app (platform versions 2023.2, 2025.1, or 2025.2) and generates a 2026.03 HS-X project as a net-new duplicate you can test with hs-x dev. Your original app keeps running untouched until you cut over. See hs-x migrate --help for the inspect, report, cards, and swap-cards subcommands.

Docs

Guides and reference live at hs-x.dev/docs. The getting-started guide goes from an empty directory to a live HubSpot card in about fifteen minutes.

License

Apache-2.0