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

spa-cli

v1.15.0

Published

SPA CLI to create SPA JS (https://spa.js.org) App and Components with default content

Readme

Command Line Interface (CLI) to support Single Page Application(js) framework.

INSTALL

npm install -g spa-cli


#USAGE:

spa arguments

OR

spa-cli arguments

Create a new app

spa-cli appName

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName --new


Create a new component

NOTE: Use . instead of 'appName' if 'appName' directory is current working directory.

spa-cli appName componentName

OR

spa-cli appName/componentName

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName/componentName --new

spa-cli appName componentName --new

Create multiple components

NOTE: Use . instead of 'appName' if 'appName' directory is current working directory.

spa-cli appName componentX,componentY

OR

spa-cli appName/componentX,componentY

OR use --new option to download and use the latest boilerplate bundle from SPA.js repository.

spa-cli appName componentX,componentY --new

spa-cli appName/componentX,componentY --new


To use your own boilerplate bundle for new app and components.

spa-cli your-custom-app-bundle.zip --app

spa-cli your-custom-component-bundle.zip --component

your-custom-component-bundle.zip must contain the following files with custom content:

  • componentX.js
  • componentX.html
  • componentX.css (optional)

NOTE: The string 'componentX' will be replaced with actual componentName, including the file name and the content inside the files during a new component creation.

To create boilerplate bundle from a folder

spa-cli your-custom-boilerplate-folder --bundle

This will create your-custom-boilerplate-folder.zip file. Use this zip file to update the default boilerplate for new --app or --component creation.

Reset to default bundle

Reset bundles with the latest boilerplate bundle(s) from SPA.js repository.

spa-cli --reset

spa-cli --reset --app

spa-cli --reset --component


Backup app

spa-cli appName --zip


Update SPA JS Bundle with the latest version

spa-cli appName --update


LiveServer Options

###Requires live-server (run install command as root/Administrator)

npm install -g live-server

To start LiveServer for an app, use --start option at the end of spa-cli command.

Example:

spa-cli appName --start

Along with --start option, use --ch OR --chrome OR --ff OR --firefox OR --ie OR --iexplore to open respective browser.

Example:

spa-cli appName --start --ch

spa-cli appName --start --chrome

spa-cli appName --start --ff

spa-cli appName --start --firefox

spa-cli appName --start --ie

spa-cli appName --start --iexplore


LINKS

SPA JS (Web) | SPA JS (GitHub)