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

assets-tracker

v1.0.2

Published

A modern, high-performance CLI tool to identify and remove unused assets in your codebase. Automatically scan for unreferenced images, fonts, and media files to optimize your project size.

Downloads

47

Readme

🚀 Assets Tracker

npm version License: MIT

The ultimate unused assets detector for React, React Native, Web, and Mobile apps.

assets-tracker is a modern, high-performance CLI tool designed to identify and remove unreferenced assets from your project. Whether you're building a React Web App, a React Native Mobile App (iOS/Android), or an Expo project, this tool helps you keep your repository lean and efficient.


✨ Features

  • ⚛️ React & React Native Optimized: Built-in support for common patterns in modern frontend and mobile frameworks.
  • 📱 Cross-Platform: perfect for Web, Mobile (iOS/Android), and Desktop applications.
  • 🔍 Deep Scan: Identifies unused images, videos, fonts, and more across your entire project.
  • 🛠️ Smart Analysis: Scans your source files (JS, TS, JSX, TSX, HTML, CSS, etc.) to detect asset references.
  • 🏢 Modern CLI: Beautiful, interactive terminal interface with progress indicators and formatted reports.
  • 🧹 Interactive Cleanup: Choose to delete all unused assets at once or select specific files to remove safely.
  • ⚙️ Fully Configurable: Customize extensions and ignore patterns via .assettracker.json.

🚀 Installation

Install it as a dev dependency in your project:

npm install --save-dev assets-tracker
# or
yarn add -D assets-tracker
# or
pnpm add -D assets-tracker

📖 Usage

🔍 Scan for Unused Assets

Run a full scan to see what can be removed:

npx assets-tracker scan

🧹 Clean Up Unused Assets

Start an interactive session to select and delete unused files:

npx assets-tracker clean

⚙️ Configuration

Create a .assettracker.json in your project root to customize the behavior:

{
  "assetExtensions": ["png", "jpg", "svg", "webp", "gif"],
  "sourceExtensions": ["js", "jsx", "ts", "tsx", "html", "css"],
  "ignorePatterns": [
    "**/node_modules/**",
    "**/dist/**",
    "**/.expo/**",
    "**/ios/build/**",
    "**/android/app/build/**"
  ]
}

Options

| Option | Description | Default | | :--- | :--- | :--- | | assetExtensions | Array of file extensions to treat as assets. | ["png", "jpg", ...] | | sourceExtensions | Array of file extensions to scan for references. | ["js", "ts", "jsx", "tsx", ...] | | ignorePatterns | Glob patterns of directories/files to ignore. | ["node_modules", "dist", ...] |


📂 Supported Asset Types

  • Images: .png, .jpg, .jpeg, .gif, .svg, .webp, .ico
  • Video/Audio: .mp4, .webm, .ogg, .mp3, .wav, .flac, .aac
  • Fonts: .woff, .woff2, .eot, .ttf, .otf

🧠 How It Works

  1. Discovery: The tool builds a list of all asset files in your project (excluding ignored paths).
  2. Analysis: It parses your source code files (including JSX/TSX) to search for any mention of the asset's filename or relative path.
  3. Reporting: Assets that aren't mentioned anywhere are marked as "unused".
  4. Action: You get a detailed report and the interactive option to delete them safely.

👥 Authors

  • Dheeraj & Vaibhav

🤝 Contributors

Feel free to check the issues page.

📄 License

This project is MIT licensed.