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

@srivtx/snip

v1.1.1

Published

Beautiful code snippet cards from your terminal. Like Carbon, but faster.

Readme

snip

A fast, local CLI tool for generating high-quality code snippets, social cards, mockups, and diagrams. It runs entirely on your machine without making API calls to third-party services.

npm version

Installation

We heavily recommend using bun because it skips the slow Puppeteer Chromium download time.

Using Bun (Fastest)

bun add -g @srivtx/snip --trusted

Using npm

npm install -g @srivtx/snip

Ultra-Fast Execution (Highly Recommended)

Add this alias to your ~/.zshrc or ~/.bashrc to run the tool through Bun's engine. This makes execution near-instant by skipping Node's startup overhead:

alias snip="bunx --bun @srivtx/snip"

To remove the alias, run unalias snip or delete the line from your shell profile.


## Setup & Configuration
You can set your default author name, social handle, and profile picture so you don't have to type them as flags every time.
```bash
snip config --init

Commands

1. Code Snippets

Turn local files or clipboard data into syntax-highlighted PNGs.

# Reads file and auto-detects language
snip src/utils.js

# Reads directly from clipboard 
snip --paste --lang python

2. Website Product Tours

Generate professional, cinematically scrolling videos of any landing page.

# Standard tour with MacOS window frame
snip tool product-video my-site.com --duration 12000

# Professional linear tour (perfect constant speed)
snip tool product-video my-site.com --linear

# Pure tour (real website only, no frame)
snip tool product-video my-site.com --no-window

3. Open Graph & Social Cards

Generate social share images or text-based achievement cards.

# Open Graph (OG) Image
snip tool og "How to Build a CLI" --description "A deep dive into Node.js"

# Achievement Post
snip post "Just reached 1000 stars on GitHub!" --bg candy

4. Mockups & Screenshots

Wrap elements in high-quality hardware frames.

# Wrap a screenshot in a MacOS frame
snip mockup screenshot.png --type macos

# High-res website screenshot
snip site google.com --full

5. Diagrams

Render Mermaid.js diagrams to high-res PNGs.

snip diagram architecture.mmd
snip diagram --paste

Image & Developer Utilities

Local, privacy-first processing tools. No data ever leaves your machine.

  • snip image bg-remove profile.jpg (Remove background with AI)

  • snip image compress heavy.png --quality 80

  • snip image ocr screenshot.png (Extract text)

  • snip image resize hero.png --width 1200

  • snip image palette photo.jpg (Extract hex codes)

  • snip tool qr https://google.com

  • snip tool svg logo.svg (SVG to PNG)

  • snip tool favicon logo.png (Generate all favicon sizes)

  • snip tool color #ff0055 (Color analysis)

  • snip tool diff file1.js file2.js (Visual code diff)


Themes & Backgrounds

Most commands support the --bg flag. Available presets:

  • ocean, sunset, aurora, neon, midnight, dawn, candy, emerald, boring.

License

MIT