---
title: Plugins
description: How plugins extend Playactor, which ones ship with it, and what a plugin is made of.
---

A plugin adds to the app: a page in the sidebar, a tab on a title, outside clips in clip search, results in ⌘K, a source for albums, picks in a Similar to panel, a free service a movie plays from. It runs in the app's own React tree, so its pages are real components with the app's player, images and toasts.

Built-in plugins are compiled into the app: each is a workspace package in `plugins/<id>`, listed in `apps/desktop/src/plugins/builtins.ts`. An [external plugin](/docs/plugins/external) is built outside the app and added in **Settings › Plugins › Add plugin**, from a `.playactor-plugin` file or a linked folder. There is no install-from-URL yet.

## Built-in plugins

| Plugin | Adds | Signs in to |
| --- | --- | --- |
| YouTube | A home of your subscriptions' newest videos and what they have live; pages for channels, videos (with their description and comments) and its downloads; a review for pruning subscriptions; a tab of videos about a film; pasted YouTube links; ⌘K results | Google (OAuth) |
| Podcasts | Imports your Pocket Casts shows; the films an episode covers, on its page; a tab of podcasts about a film | Pocket Casts (email and password) |
| Soulseek | A source for wanted albums, through a native half | Soulseek, VPN required. Off by default |

## External plugins

| Plugin | Adds | Signs in to |
| --- | --- | --- |
| Adult | Tube sites behind one set of pages, xHamster and Pornhub. Home spans both: a line of categories under the search box (pinned ones, then the ones you watch, then each site's trending), continue watching, the performers and channels you pin or watch most with their pictures, For you (videos similar to what you last played or saved, never one you have), Watch later, and the best of the week, month or all time from both sites; search across both sites (a row each, See all for one site's), Downloads, every category on either site, and each channel, performer and category, any of which can be pinned; a preview on hovering a video; similar videos (xHamster's load more as you scroll) and the channel, performers and categories in the player, with a Performers tab of each one's videos; pasted xHamster and Pornhub links; ⌘K results | Nothing. Off by default. Built from `methodacting/playactor-plugins` |
| Internet Archive | Videos: continue watching and Watch later, For you (Archive's own similar items for what you last played or saved, never one you have), and Archive's collections; Music's collections and LibriVox; each collection by subject, decade, language and creator; search over videos or audio; concerts and records play as albums; a source for public-domain movies and albums; pasted archive.org links; ⌘K results | Nothing |
| Sports | NBA, NFL, NHL, MLB, college football and NCAA basketball: games, box scores, play-by-play and standings from ESPN | Nothing |
| Clip.Cafe | A section of movie clips in clip search | An API key |
| ListenBrainz | An album's Similar to: albums by similar artists, then the artists | Nothing |
| Spotify | Actions on identified songs | Spotify (OAuth) |
| Tubi | Movies that are free on Tubi in your country play from it, found through JustWatch | Nothing |
| Photos | Your Photos library, its albums and its named people, read where it is with [`api.local`](/docs/plugins/api#apilocal). See [Photos](/docs/photos) | Nothing. Needs Full Disk Access |
| Messages | The conversations in Messages with videos and photos, each one's attachments, and Add to Home for its videos, read where they are with [`api.local`](/docs/plugins/api#apilocal). See [From Messages](/docs/library#from-messages) | Nothing. Needs Full Disk Access, and Contacts for names |
| Twitch | Home: live channels you follow as stream cards, then everyone else you follow in one line; one search for channels (live first, by viewers) and categories; two full rows each of categories (pinned ones first), popular live streams and this week's clips (from channels you follow, or popular); stream cards show the channel's picture and the game as a tag with its box art; each category’s streams, clips and past broadcasts; Pin on a category’s page or in its card's corner; a default stream language in its settings, and clip-period filters. Following, everyone you follow; each channel's live stream with its chat beside it (read and send, signed in), past broadcasts and clips; past broadcasts resume and save in Watch › Web; Downloads, the past broadcasts and clips downloaded, with the newest on Home; pasted Twitch links; ⌘K channels | Twitch (activation code) |

Add one in **Settings › Plugins › Add plugin**, under **Playactor plugins**, and turn any of them on or off there. Disabling a plugin removes everything it added and clears its cached queries.

## What a plugin is made of

- plugins/quotes/
  - package.json
  - src/
    - manifest.ts what it reaches, what the user sets up
    - index.tsx its behaviour: `definePlugin`
    - search.ts

- **The manifest** is data. It declares the services the plugin talks to and the hosts each may reach, the accounts and preferences the user sets up, the pages it opens and the data it syncs. The host builds the settings page, health chips and keychain storage from it without running plugin code.
- **The definition** is behaviour. `accounts`, `pages` and `collections` supply what the manifest declared, keyed the same way; a missing or extra key is a type error. Beside them, the plugin declares what it adds (title tabs, links, search, clip sources, song actions, sources to play or download from, shelves, episode panels, podcast imports), keyed by id. An optional `activate(api)` runs setup, and what it returns is `api.state`.
- **`api`** is the plugin's handle on the app, typed by its manifest: service fetches, preferences, queries, navigation. Host components (`PageLink`, `Image`, `Player`, …) are imports beside it.

The plugin never sees a token or a keychain name. It calls `api.services.<key>.account.fetch` and the host adds the bearer token, refreshes it on a 401, and keeps every request on the service's declared hosts.

**[Your first plugin](/docs/plugins/quickstart)**

Build a clip source end to end.

**[Manifest](/docs/plugins/manifest)**

Services, accounts, preferences, pages, collections.

**[Contributions](/docs/plugins/contributions)**

Every place a plugin adds to the app.

**[The api handle](/docs/plugins/api)**

Fetch, data, queries, navigation and host components.
