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

peertube-plugin-category-manager

v1.0.1

Published

A plugin for managing video categories in PeerTube. Allows administrators to define a custom list of categories and/or remove default categories.

Downloads

9

Readme

PeerTube plugin — Category Manager

A small PeerTube plugin that lets administrators define additional video categories from the admin settings (as JSON) and optionally remove PeerTube's default categories (IDs 1–18). The plugin registers those categories on the server and on clients so they appear in the category list like built-in categories.

Features

  • Add arbitrary extra categories via a JSON array in the plugin settings.
  • Optionally remove/replace the PeerTube default categories (IDs 1–18).
  • Exposes a simple server endpoint so client code can fetch the configured categories.

Configuration (plugin settings)

The plugin exposes two settings in the PeerTube admin UI:

  • additionalCategories (textarea): a JSON array of category objects. Each object must contain:

    • key (number): the numeric ID of the category. Avoid using 1–18 unless you intentionally want to replace a core category.
    • label (string): the display label for the category.

    Example value for additionalCategories:

    [
    	{ "key": 19, "label": "Cooking" },
    	{ "key": 20, "label": "Kids" }
    ]
  • replaceDefaultCategories (checkbox): When enabled, the plugin will attempt to delete the PeerTube default categories listed in the plugin (IDs 1–18) before adding your custom categories. This is optional — use it only if you want to hide/replace the default categories.

Behavior notes:

  • The plugin is careful not to delete anything outside the known default list. It only attempts to remove keys present in the built-in defaultCategoryKeys (1–18 by default).
  • Invalid JSON in additionalCategories is treated as an empty list (no categories will be added).

Troubleshooting

  • If categories don't show up on clients:
    • Ensure the plugin is enabled in the PeerTube admin UI and you restarted the server.
    • Confirm additionalCategories contains valid JSON and valid key/label values.
    • Check server logs for messages from the plugin and client browser console for warnings prefixed with category-manager:.

Contributing

Contributions are welcome. Please open issues or merge requests in the repository hosting this plugin.

License

See the LICENSE file included with this repository.