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

@sa-community/addons-data

v1044.3.0

Published

Scratch Addons’ addons data

Readme

@sa-community/addons-data

This repository contains the script used to auto-generate @sa-community/addons-data.

Usage

The package exports an array of objects { addonId: string, manifest: AddonManifest }[]. For example, to get all addon manifests with the forums tag:

import addons from "@sa-community/addons-data";

addons.filter((addon) => addon.manifest.tags.includes("forums")).map((addon) => addon.manifest);

Addon IDs are not included in the manifest itself. To get them:

import addons from "@sa-community/addons-data";

addons.filter((addon) => addon.manifest.tags.includes("forums")).map((addon) => addon.addonId);

@sa-community/addons-data uses CommonJS, meaning that it can also be used via require:

const addons = require("@sa-community/addons-data");

addons.filter((addon) => addon.manifest.tags.includes("forums")).map((addon) => addon.manifest);

Versioning

This package is versioned based off Scratch Addons itself. The versioning schema is SA major + SA minor (3-digit zero-padded) + "." + SA patch + "." + data patch. In other words, for SA version 1.2.3, you would install @sa-community/addons-data@~1002.3.0, or for SA version 1.40.0, you would install @sa-community/addons-data@~1040.0.0.

Please note that in version 1.41.0 and prior, the version number of this package was identical to that of Scratch Addons instead.

Types

The package is fully typed, including all addon manifests. The addon manifest typedef is based off manifest-schema, and I try to keep them as similar as possible.

All addon manifests on Scratch Addons's master branch are typechecked against that typedef every 12 hours. If there are any errors, an issue is automatically created. Issues indicate either that the typedef needs to be updated or a mistake in an addon manifest.

I try my best to keep the typedef updated. However, only the latest released is guaranteed to be accurate. If mistakes with a version's types are found only once it is no longer the latest version, I will not retroactively rerelease.

Typedef vs JSON Schema

Everything the typedef checks is also checked by the JSON Schema, but there are a few small things the typedef can't check easily:

  • Patterns for colors, links, and IDs
  • Minimums for numerical values
  • Minimum lengths for string values
  • Minimum item counts for array values
  • Minimum property counts for record values
  • No extraneous properties
  • Every addon having one of the "main" tags (community, editor, player, popup)

Ease of maintenance is the typedef's main advantage over the schema for manifest verification. TypeScript typedefs are also more portable and could be used in more contexts than a JSON schema could be.

Importing a single addon's data

You can also import just one addon by its ID:

import addon from "@sa-community/addons-data/addons/semicolon";

console.log(addon.name); // Semicolon glitch
console.log(addon.credits[0].name); // GrahamSH

Note that while the package is typed, each addon is typed generically to prevent breaking changes. Meaning, the type of each addon is the generic AddonManifest, and the types do not define specific keys for specific addons.

Importing the manifest

This package also exports the extension manifest:

import manifest from "@sa-community/addons-data/manifest.json" with { type: "json" };

console.log(manifest.version); // 1.42.0
console.log(manifest.homepage_url); // https://scratchaddons.com