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-layer

v1.0.0

Published

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

Readme

PeerTube plugin: User Group Privacy Layer

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 (accessible by admins) you can define groups containing user names. The plugin uses a YAML-like structure for that:

- group_name: Group 1
  members:
    - user1
    - user2

After saving the groups every video will have the options to select the groups to share it with. By default no group is checked so noone can see it. Note: Because of how video plugin settings are registered there is a text field with a JSON array wich is the actual setting but below are the dynamicly 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:

  • Give groups IDs so that the name can be changed without deleting and recreating the group
  • Only show groups in video settings if privacy is INTERNAL

Development

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