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-user-group-privacy-enhanced

v1.1.1

Published

A Peertube Plugin to define groups of users and then share videos only with certain groups

Readme

PeerTube plugin: User Group Privacy Enhanced

About

This plugin will add a privacy layer that allows very fine-grained privacy settings for every video. In the Plugin Settings as administrator you can define groups of use names. Every video will then have the option to select any number of groups and the video will then only be accessible to a user if the user is part of any selected group.

How it works

In the Plugin Settings, you define your user groups and map their channel routing rules using simple YAML text areas.

After creating your groups in the settings, every video edit page will display a set of dynamic checkboxes. Simply select the groups you want to share the video with! By default, no group is checked, meaning the video will fall back to its native PeerTube visibility (e.g., everyone can see it if it's explicitly set to Public).

God Mode (Global Bypass)

If you name a group exactly admin or superuser, any user located within that group will instantly bypass all restrictions and have permanent access to view every video on your PeerTube server.

Automatic Channel Auto-Assignment

Instead of manually assigning groups on every single upload, you can configure automatic routing rules inside the Plugin Settings!

  • Channel Map: Use the Channel to Group Auto-Assignment Map to map PeerTube channel names to their respective privacy groups (e.g. kid1-channel -> kid1).
  • Global Fallback Group: Use the Fallback Group setting to optionally catch unmapped videos and route them to a holding group.

Note: Because of how video plugin settings are registered there is a text field with a JSON array which is the actual setting but below are the dynamically created checkboxes. Maybe not ideal but it works.

Limitations

  • If the standard video privacy setting it set to public the video files will be served publicly enen though the video will not appear in the frontend! It's highly recommended to use only the privacy setting "Internal" and maybe even disable the public and unlisted option (see this plugin)
  • If a video is the first in a playlist it will be visible in the playlists thumbnail. This is a loophole that currently cannot be closed; there is to plugin hook for that. Because of that this plugin will disable the privacy options "Public" and "Unlisted" for playlists so that noone else can cause a privacy leak by adding a video to a playlist. (I mainly developed this plugin for my purposes. If someone wants to use it and dislikes this decision, feel free to create a GitHub issue regarding a feature toggle.)
  • If someone had access to a video before and watched it it will continue to show up in the watch history even though it cannot be watched again. (Also currently no Plugin Hook to filter that)
  • Notifications of new videos appear to subscribers if they have a current session. If not it's deleted in time and not shown. There's a feature request asking for a hook to solve this issue.

Future Ideas

Ideas how to improve this plugin: (All original features mapped out have been successfully fulfilled!)

Development

To quickly update the plugin in the debugging instance run npm run cli:reinstall