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

snapfu

v1.16.0

Published

Command line interface for Snap!

Readme

Snapfu

snap · fu - "the way of snap"

Snapfu is the scaffolding command line tool for the Athos Commerce Snap SDK. This tool creates a new Athos Commerce project from one of our existing Snap scaffolds and bootstraps a development environment. These scaffolds include a GitHub action that when triggered will build and deploy Snap bundles to our infrastructure (permissions required).

Installation

npm install -g snapfu

Usage

snapfu <command> <args> [--options]

Commands

init - Create a new snap project

Creates a new snap project (optional directory)

snapfu init <directory>

badges - Badge template management

Manage badge templates for your project

snapfu badges <command> <args> [--options]

Subcommands:

  • init - Initialize badge template in current project
  • list [local | remote] - Display list of badge templates (local or remote)
  • archive <name> - Remove remote badge template
    • --secret-key <key> - Secret key for authentication
  • sync [<name> | locations.json] - Synchronize badge template and parameters with remote
    • --secret-key <key> - Secret key for authentication

recs - Recommendation template management

Manage recommendation templates for your project

snapfu recs <command> <args> [--options]

Subcommands:

  • init - Initialize recommendation template in current project
  • list [local | remote] - Display list of recommendation templates (local or remote)
  • archive <name> <branch> - Remove remote recommendation template (optional branch)
    • --secret-key <key> - Secret key for authentication
  • sync <name> <branch> - Synchronize recommendation template and parameters with remote (optional branch)
    • --secret-key <key> - Secret key for authentication

secrets - Project secret management

Manage secrets in your snap project

snapfu secrets <command> <args> [--options]

Subcommands:

  • add - Adds secrets to snap project
  • update - Update secrets in snap project
  • verify - Verify secrets in snap project

patch - Apply patches to update project

Apply patches to update your project

snapfu patch <command> <args> [--options]

Subcommands:

  • apply - Apply patch version (version or latest)
  • list - List available versions for project
  • fetch - Fetch latest versions of patches

login - OAuth with GitHub

OAuths with GitHub to allow for creating repositories when using the init command

snapfu login

logout - Remove login credentials

Removes login credentials

snapfu logout

org-access - Review organization access

Review and change organization access for the tool

snapfu org-access

whoami - Show current user

Shows the current user

snapfu whoami

about - Show versioning

Shows versioning information

snapfu about

help - Display help text

Display help text (optional command)

snapfu help [<command>]

Getting Started

  1. Install snapfu globally:

    npm install -g snapfu
  2. Login (optional):

    snapfu login
  3. Create a new project:

    snapfu init my-awesome-website
  4. Run the project:

    cd my-awesome-website
    npm install
    npm run dev

Deployment

This tool integrates with the Athos Commerce build and deploy process. In order to take advantage of this you must have access to the snap-implementations GitHub organization and select it during init command. (Requires login & invitation to the organization upon request).

The tool uses GitHub actions to copy files to our AWS S3 backed CDN (Cloudfront).

When you commit to the main branch (production), the github action will deploy all the files that build into ./dist to a publicly readable S3 bucket which can be accessed at the following URLs:

https://snapui.athoscommerce.io/<siteId>/bundle.js
https://snapui.athoscommerce.io/<siteId>/production/bundle.js

Similarly, if you push a branch to github called my-branch that will be available at

https://snapui.athoscommerce.io/<siteId>/my-branch/bundle.js

Deploying to other places

You can modify the file deploy.yml in your generated project under my-awesome-website/.github/workflows/deploy.yml to complete different actions if you don't want to use the Athos Commerce build process or don't have access to it.

SCP

Deploy the built artifacts using scp. https://github.com/marketplace/actions/scp-command-to-transfer-files

Google Cloud

Deploy to GCP using gcloud. https://github.com/marketplace/actions/setup-gcloud-environment

SFTP

Deploy a built artifacts through SFTP. https://github.com/marketplace/actions/sftp-deploy