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 🙏

© 2025 – Pkg Stats / Ryan Hefner

4snap

v1.1.0

Published

#### Discover, Share, & Execute Commands Anytime Anywhere

Readme

4snap

Discover, Share, & Execute Commands Anytime Anywhere

4snap image

Overview

4SNAP is a command snippet manager designed to simplify and streamline your development workflow. It allows you to save and organize your frequently used command snippets, making it easy to retrieve and execute them whenever needed. With 4SNAP, you can increase your productivity, reduce repetitive typing, and improve code consistency.

Table of Contents

Getting Started

  • Account Creation
  • Install 4Snap CLI
  • Authenticate 4Snap CLI
  • Create Commands
  • Executing Commands
  • Synchronization
  • View Saved Commands
  • Sharing Command

Getting Started

Follow the steps below to get started with 4Snap.

1. Account Creation

Get started by creating an account on 4Snap using this LINK. This will allow you to access and manage your commands.

2. Install 4Snap CLI

After creating an account on 4Snap, you need to install the 4Snap CLI npm package. Use the following command to install it:

# npm users
$ npm install 4snap

# yarn users
$ yarn add 4snap

3. Authenticate 4Snap CLI

Before you can execute any command, you need to authenticate the 4Snap CLI. Use the following command to authenticate:

$ 4snap login

This command will prompt you for a 4Snap token, which can be obtained from your settings page on 4Snap if you are currently logged in.

4. Create Commands

You can create commands or collections of commands either using the web interface or the CLI. To create a command using the CLI, run the following command:

$ 4snap create

This command will guide you through the steps needed to create your favorite command or collections of commands. Collections of commands are created by separating them with a comma (,).

5. Executing Commands

You can execute both local and public commands using the 4Snap CLI. To execute a local command, use the following command:

$ 4snap run [COMMAND_NAME]

For executing a public command, use the following command:

$ 4snap run -p [COMMAND_NAME]

Replace [COMMAND_NAME] with the name of the command you want to execute.

6. Synchronization

Sometimes, the commands created via the web interface may not be available on your local machine. To synchronize all created collections of commands and make them available on your local machine, use the following command:

$ 4snap sync

This command will ensure that all your created commands are synchronized.

7. View Saved Commands

To view your saved commands or collections of commands locally, use the following command:

$ 4snap list

This command will print out all available saved commands in a table format on your terminal.

8. Sharing Command

If you want to share your saved commands with others, whether publicly or privately, you can do so using the following command:

$ 4snap share -u [USER_NAME] [COMMAND_NAME]

Replace [USER_NAME] with the recipient's username and [COMMAND_NAME] with the name of the command you want to share.

Examples

  1. 👷🏻 Command meant to ease the process at which developers start a new project. for eg mkdir project_name, cd project_name, touch file_name can be shorten into 4snap run setup.

Here are lists of commands you could try out with 4snap.

  1. mkdir $project_name,cd $project_name,touch $file_name
  2. npm list -g
  3. yarn create vite $appName --template $templateName