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

asset-scout

v1.0.2

Published

A CLI tool to scan and serve assets from a specified directory.

Readme

Asset Scout 🕵️‍♂️

Overview

The Asset Scout is a command-line and web-based tool designed to scan and track asset usage within a project. It provides a user-friendly UI to visualize the assets and their usage frequency, helping developers identify unused or misplaced files.

Features

  • CLI-based asset scanning to analyze project assets.
  • Web UI for asset visualization with an intuitive interface.
  • Filtering by file type and usage status (PNG, JPG, SVG, etc.).
  • Dark mode support for better accessibility.
  • Directly open asset locations in VS Code for quick access.
  • Delete unused assets to clean up your project.

Installation

To install the package globally:

npm install -g asset-scout

To install it in a specific project:

npm install asset-scout

Usage

CLI Commands

1. Scan Assets

To scan and display asset usage:

asset-scout --scan

This will return a JSON output of the detected assets and their usage.

2. Launch Web UI

To start the web UI:

asset-scout --ui

The UI will be accessible at http://localhost:3000.

3. Show Detailed Asset Scan Results

To display detailed information about asset usage:

asset-scout --details

4. Specify a Directory for Scanning

To scan a specific directory:

asset-scout -p /path/to/project

Web UI Overview

When the UI is launched, you can:

  • View all detected assets in an organized table.
  • Filter assets by type (PNG, JPG, SVG, etc.).
  • See how often an asset is used and where it appears.
  • Open asset locations directly in VS Code with one click.
  • Delete unused assets to optimize your project.

Open File in VS Code

Each asset includes a clickable link to open the file directly in VS Code:

<a href="vscode://file/{file-path}" target="_blank">Open in VS Code</a>

API Endpoints

The following API endpoints are available:

1. Get All Assets

GET /api/assets

Response:

{
  "icon.png": { "count": 3, "absolutePath": "/Users/PC/project/static/icon.png", "locations": [...] }
}

2. Delete an Asset

DELETE /api/delete

Request Body:

{ "filename": "icon.png", "absolutePath": "/Users/PC/project/static/icon.png" }

Troubleshooting

1. UI Not Loading on localhost:3000

  • Ensure you have run asset-scout --ui.
  • Check if another service is using port 3000.
  • Try running on a different port if needed.

2. Images Not Showing in UI

  • Ensure asset paths are correctly resolved.
  • Use relative paths when applicable.
  • Verify that the scanning process has completed successfully.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License.