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

horizech

v0.1.4

Published

The Horizech command line: sign in, and build, pack and publish Horizech Workspace components

Readme

horizech

The Horizech command line. One install and one sign-in for every Horizech product; today that means building and publishing Horizech Workspace components.

Documentation: cli.horizech.com

npm install -g horizech

horizech login                    # sign in with your Horizech Account (opens the browser)
hws pack                          # build Backend/ + Frontend/ into <CODE>_<version>.zip
hws publish --org acme            # check, build, zip and upload to the dev channel
hws promote [email protected] --to stable

The package installs two commands:

  • horizech is the whole CLI: account commands at the top (horizech login), each product under its own name (horizech hws publish).
  • hws is a shortcut for horizech hws, for the people who live in it: hws publish is horizech hws publish. It also answers the account commands, so hws login works too.

Without installing: npx horizech hws publish.

The design, its decisions and what is still open live in the Horizech monorepo: docs/horizech-cli-plan.md.

Requirements

  • Node.js 22 or later. On an older Node, the CLI stops with a message saying so.
  • .NET SDK for components with a backend, and the frontend's own npm install already run (the CLI never installs packages for you).

Commands

Your Horizech Account

| Command | | |---|---| | horizech login [--no-browser] | Sign in. --no-browser only prints the link. | | horizech logout | Sign out and revoke the session. | | horizech whoami | Who is signed in, and where the session is stored. |

Horizech Workspace (hws … or horizech hws …)

| Command | | |---|---| | hws pack [dir] [--out <file>] [--no-build] | Build and zip. No sign-in, no network. | | hws publish [dir] [--org <slug>] [--channel dev\|beta\|stable] [--notes <text>] [--create [--visibility private\|public]] [--dry-run] [--no-build] | Publish. The channel defaults to dev. | | hws promote <CODE>@<version> --to beta\|stable [--from dev\|beta] [--org <slug>] | Move a version to a later channel. | | hws package list [--search <text>] [--type <type>] [--mine] | Packages you can see. | | hws package info <CODE> [--org <slug>] | One package. | | hws package versions <CODE> [--org <slug>] [--channel <channel>] | Its versions. | | hws download <CODE>[@<version>\|@latest] [--org <slug>] [--channel <channel>] [--out <file>] | Fetch a published zip, checked against the registry's SHA-256. |

  • --json on every command prints a machine-readable result on stdout; progress goes to stderr.
  • --org can be left out when exactly one organization you can see has a package with that code.
  • --no-build zips outputs that already exist (Backend/bin/Release/<tfm>/publish and Frontend/dist), for CI where an earlier step built.
  • --dry-run does everything publish does except create and upload, and lists the zip's contents.
  • --create makes the package if the organization does not have it yet. It is created private unless you pass --visibility public.

Publishing needs the OWNER or ADMIN role in the organization. publish checks the organization, the package, your role and whether the version is already in the channel before building, so a mistake costs a second, not a build.

A Workspace component

my-component/
├── package.hws      the manifest
├── Backend/         built with `dotnet publish -c Release`
└── Frontend/        only with a frontend; built with `npm run build:next`, output in Frontend/dist

A component has a frontend when package.hws names it with Frontend.RemoteEntry (and Frontend.RemoteName). Most providers and many plugins have none: their Frontend section is empty or holds only metadata such as I18nBundles or Actions. Nothing is built for the frontend then, and a Frontend/ folder, if there is one, is skipped with a note.

The zip holds bin/ (the backend's publish output), dist/ (the frontend build, when there is one) and package.hws at its root, exactly as the Workspace launcher and final-build.ps1 expect. The same zip installs by hand and publishes.

package.hws is checked before anything is built: it must be strictly valid JSON (no comments, no trailing commas, no duplicate keys, including keys that differ only in case), with a semantic Version, an AssemblyName ending in .dll, a MainFile, an Info.Type of Core, App, Plugin, Provider or Theme, a Frontend.RemoteEntry wherever there is a Frontend.RemoteName, and no Frontend.RemoteUrlOverride. Every problem is listed in one run.

Sign-in and where the session is kept

horizech login uses OAuth2 with PKCE: your browser signs in to your Horizech Account and hands control back to the CLI on 127.0.0.1. The session is kept in the macOS Keychain, Windows Credential Manager or the Linux secret service (service name horizech). Where none is available it falls back to a file readable only by you, and says so. Tokens refresh by themselves; the CLI never prints them.

Environment

| Variable | | |---|---| | HORIZECH_API_URL | horizech-api (default https://api.horizech.com) | | HORIZECH_AUTH_URL | identity provider (default https://horizech.com) | | HORIZECH_CLIENT_ID | OAuth2 client id, for testing against another provider | | HORIZECH_TOKEN_STORE=file | skip the keychain and use the file | | HORIZECH_CONFIG_DIR | where that file lives (default ~/.config/horizech, %APPDATA%\horizech on Windows) |

Releasing

  1. Bump version in package.json and add the release to CHANGELOG.md.
  2. npm publish (the tests run first), then tag: git tag -a v<version> -m "horizech <version> (npm)".
  3. Update the docs at cli.horizech.com: add the version to VERSIONS and CHANGELOG in apps/cli/lib/docs/versions.ts in the Horizech monorepo, document any new command or option in lib/docs/commands.ts with a since, and redeploy that site.

Developing

nvm use            # Node 22
npm install
npm test           # builds, then runs unit tests and the end-to-end tests
node bin/horizech.js --help
node bin/hws.js --help

The end-to-end tests (src/cli/cli.test.ts) run the real CLI against a local stub of the identity provider and the registry. The stub enforces PKCE, the redirect binding, rotating refresh tokens and organization roles, so a test passes only when the CLI really does them.

src/core holds everything that does the work and never writes to the terminal; src/cli parses arguments and prints. A CI script or an editor extension can import src/core directly. A new product gets its own command group in src/cli/main.ts beside HWS, and reuses the session as it is.