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

storyblok-check-unreferenced-assets

v1.0.12

Published

CLI tool for Storyblok: find unreferenced assets

Readme

Storyblok Unreferenced Assets Checker

A CLI tool to find unreferenced assets in your Storyblok space. This tool helps you identify assets that are no longer being used in any of your stories across all languages.

Installation

You can run this tool directly using npx:

npx storyblok-check-unreferenced-assets

Usage

The tool requires three parameters:

npx storyblok-check-unreferenced-assets \
  --token YOUR_CONTENT_TOKEN \
  --oauth-token YOUR_OAUTH_TOKEN \
  --space-id YOUR_SPACE_ID

Required Parameters

  • --token: Your Storyblok Content Delivery API token
  • --oauth-token: Your Storyblok OAuth token
  • --space-id: Your Storyblok space ID

How it Works

  1. Fetches all available languages from your Storyblok space
  2. Retrieves all stories across all languages
  3. Fetches all assets from your space
  4. Analyzes each asset to check if it's referenced in any story
  5. Generates a JSON file (unreferenced-assets.json) containing all unreferenced assets

Output

The tool will create an unreferenced-assets.json file in the current directory, containing details of all assets that are not referenced in any story. Each asset entry includes:

  • Filename
  • Asset ID
  • Creation date
  • Last modified date
  • File size
  • Content type

Getting the Required Tokens

  1. Content Delivery API Token:

    • Go to your Storyblok space settings
    • Navigate to the "Access Tokens" tab
    • Create or use an existing Content Delivery API token
  2. OAuth Token:

    • Go to your Storyblok account settings
    • Navigate to "Personal Access Tokens"
    • Create a new token with the necessary permissions

License

MIT