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

n8n-nodes-plex

v0.1.5

Published

n8n community node for Plex Media Server (libraries, sessions, search, metadata)

Readme

n8n-nodes-plex

npm version npm downloads License: MIT n8n verified

An n8n community node for Plex Media Server. Read your libraries, see what's playing right now, search across your server, and fetch metadata — all from your workflows.

Verified community node — installable directly from the n8n node panel (self-hosted and n8n Cloud).

Installation

This is a verified community node: in n8n click + (Add node), search for Plex, and add it — no manual install needed.

Go to Settings → Community Nodes → Install and enter n8n-nodes-plex.

Credentials

The node authenticates with an X-Plex-Token.

  1. Find your token — see Plex's guide: Finding an authentication token.
  2. In n8n create a Plex API credential:
    • Base URL — your server, e.g. http://plex:32400 (no trailing slash).
    • X-Plex-Token — the token from step 1.

The credential's Test button calls /library/sections to verify the token.

Operations

| Resource | Operations | |----------|------------| | Server | Get Info, Get Identity, Get Media Providers, Get Preferences, Set Preference, Optimize Database, Clean Bundles | | Library | Get Libraries, Get Library, Get Items, Get Recently Added, Get Collections, Scan, Empty Trash, Analyze | | Media | Get Metadata, Get Related, Get Similar, Refresh, Rate, Mark Played, Mark Unplayed, Delete | | Session | Get Active, Get History, Terminate | | Search | Search | | Hub | Get Global, Get Continue Watching, Get Promoted, Get Section Hubs | | Playlist | Get Many, Get, Get Items, Delete | | Butler | Get Tasks, Run All Tasks, Run Task, Stop All Tasks | | Updater | Get Status, Check For Updates, Apply Update |

Read operations return each element of the Plex MediaContainer (Metadata, Directory, Hub, Setting, …) as a separate n8n item. Write/action operations (Scan, Rate, Terminate, Set Preference, Apply Update, …) return { "success": true }.

⚠️ Some operations are destructive or administrative (Media → Delete, Library → Empty Trash, Session → Terminate, Updater → Apply Update). Use them deliberately.

Usage example

"What's playing on Plex right now?"

  1. Add the Plex node with the Plex API credential.
  2. Set Resource = Session, Operation = Get Active.
  3. Execute. Each current stream is returned as an item, e.g.:
{
  "title": "Interstellar",
  "type": "movie",
  "year": 2014,
  "User": { "title": "jdoe", "id": "123456789" },
  "Player": { "product": "Plex Web", "state": "playing", "address": "192.0.2.50" },
  "Session": { "id": "abcdef", "bandwidth": 5212, "location": "lan" }
}

A common follow-up: connect a Discord or Telegram node to be notified whenever someone starts watching something.

To list your libraries first, use Library → Get Libraries; take the key of a section and feed it into Library → Get Items (Library Section ID) to page through its content.

Compatibility

Tested against Plex Media Server API 1.x. Node.js 20+.

Resources

License

MIT