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

@s-ui/deploy

v2.11.0

Published

CLI to deploy of sui-based projects

Readme

sui-deploy

CLI to deploy of sui-based projects.

It provides:

  • Common way to deploy our projects
  • SPA deployments

Installation

$ npm install @s-ui/deploy --save-dev

CLI

When installed, a new CLI sui-deploy (node_modules/.bin/sui-deploy) is automatically available to deploy your projects.

Deploy a folder as an static SPA:

$ sui-deploy <name-of-project> [build-folder=./public] --now
$ sui-deploy spa <name-of-project> [build-folder=./public] --now

sui-deploy <name> [folder]

Deploys given folder. Handles:

  • docker run if DockerFile is found.
  • npm run start if package.json is found.
  • serve . otherwise.

sui-deploy spa <name> [folder]

Same as previous but deploys app as an SPA, adding the option of auth. A static server is run but not found routes point to index.html to make SPAs routing to work.

Options

--now

Only hosting service available. Deploys to now.sh

$ sui-deploy spa 'test-project' --now -p

Deploys to test-project.now.sh

-a, --auth <user:password> (only for spa)

HTTP authentication user and pass separated by :.

$ sui-deploy spa test-project --now -a 'my-user:my-password'

-p, --public

Force skipping auth to make your deployment public.

CAUTION: if your deployment is public, it's also indexable by search engines.

$ sui-deploy spa test-project --now -p

-b, --branch

Append git branch name to deploy name.

$ sui-deploy spa test-project --now -b -a 'my-user:my-password'

If your branch is my-feature, your code will be deployed to test-project-my-feature.now.sh

-e, --environmentVars

Append multiple env vars that will be passed to our deployer

$ sui-deploy spa test-project --now -b -a 'my-user:my-password' -e NODE_ENV=preproduction -e GH_AUTH_TOKEN=secret

Authentification

When --now option is set, sui-deploy needs a now token to deploy files. The token is obtain from the env variable NOW_TOKEN

You can set your token once with a simple command.

$ export NOW_TOKEN=my-token-from-now

Help

Run the following command for further options:

$ sui-deploy help

or

$ sui-deploy spa --help

Example package.json

{
  "name": "@my-scope/test-project",
  "version": "1.0.0",
  "scripts": {
    "build": "sui-bundler build -C",
    "deploy": "sui-deploy spa test-project --now -a 'my-user:my-password'"
  },
  "devDependencies": {
    "@s-ui/deploy": "2"
  }
}

To deploy your project:

$ npm run build; npm run deploy