pkg/

directory
v0.0.0-...-d18ddae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: GPL-3.0

Directories

Path Synopsis
Package agentdomain is the table of agent domains (spec 2026-10-06 §9.1.1, §9.2): which durable consumers each domain drains, whether the manager's HPA reconciler autoscales it and from what floor, which other topology consumers live elsewhere (Fixed), and which consumers keep MaxAckPending at one pod's slots because a limiter downstream bounds them (Throttled).
Package agentdomain is the table of agent domains (spec 2026-10-06 §9.1.1, §9.2): which durable consumers each domain drains, whether the manager's HPA reconciler autoscales it and from what floor, which other topology consumers live elsewhere (Fixed), and which consumers keep MaxAckPending at one pod's slots because a limiter downstream bounds them (Throttled).
Package audioalign aligns two recordings of one programme by their audio, so a dub from one release can be grafted onto another release's video (docs/superpowers/specs/2026-10-06-anime-dual-audio-design.md §7.1).
Package audioalign aligns two recordings of one programme by their audio, so a dub from one release can be grafted onto another release's video (docs/superpowers/specs/2026-10-06-anime-dual-audio-design.md §7.1).
Package binpath names where each clustarr binary lives in its image (spec §3.1, §10.1.1).
Package binpath names where each clustarr binary lives in its image (spec §3.1, §10.1.1).
Package busconn connects a process to the JetStream bus: Connect, the trace-hook option, the readiness check, EnsureTopology and its two leader-only keepers, KeepTopology and WatchDeadLetters, for the manager, and AwaitTopology for everyone else (spec §4.3 step 1.3, §5.9).
Package busconn connects a process to the JetStream bus: Connect, the trace-hook option, the readiness check, EnsureTopology and its two leader-only keepers, KeepTopology and WatchDeadLetters, for the manager, and AwaitTopology for everyone else (spec §4.3 step 1.3, §5.9).
Package cardigann implements the Cardigann v11 indexer-definition engine: YAML definitions validated against the bundled JSON schema, selectors over HTML/JSON/XML bodies, the 25 filter pipeline, login, search and download.
Package cardigann implements the Cardigann v11 indexer-definition engine: YAML definitions validated against the bundled JSON schema, selectors over HTML/JSON/XML bodies, the 25 filter pipeline, login, search and download.
Package crdcheck holds the regression guards for the CustomResourceDefinitions: the install-time check that the generated CRDs load into a real apiserver, and two source walkers over api/ (G4-0) -- one for +kubebuilder:default markers a typed Go client can never reach, one for status lists without a MaxItems.
Package crdcheck holds the regression guards for the CustomResourceDefinitions: the install-time check that the generated CRDs load into a real apiserver, and two source walkers over api/ (G4-0) -- one for +kubebuilder:default markers a typed Go client can never reach, one for status lists without a MaxItems.
Package daily places a key's recurring daily work at a time of day of its own (the ADR-0025 batch, C5; the architect's condition on A1-18): next_due = last + 24h keeps whatever clustering a start gave it, so a start that does every key's work at once makes the same wave every day (MusicBrainz's limiter, about a request a second, turns it into an hour-long queue).
Package daily places a key's recurring daily work at a time of day of its own (the ADR-0025 batch, C5; the architect's condition on A1-18): next_due = last + 24h keeps whatever clustering a start gave it, so a start that does every key's work at once makes the same wave every day (MusicBrainz's limiter, about a request a second, turns it into an hour-long queue).
Package data is the manager's data layer (ADR-0028, design docs/superpowers/specs/2026-12-02-data-service-design.md): every kind the manager serves, read, written and followed one way, whether it is a row of the library store or a custom resource in the apiserver.
Package data is the manager's data layer (ADR-0028, design docs/superpowers/specs/2026-12-02-data-service-design.md): every kind the manager serves, read, written and followed one way, whether it is a row of the library store or a custom resource in the apiserver.
activity
Package activity is the dashboard's and the Activity pages' rules: which list a file's transcode, subtitles and markers, and an item's grab, belong to, the row each is shown as, and the order of each list.
Package activity is the dashboard's and the Activity pages' rules: which list a file's transcode, subtitles and markers, and an item's grab, belong to, the row each is shown as, and the order of each list.
dataclient
Package dataclient connects to the manager's data service (ADR-0028, the design's §3A): the typed services of clustarr.v1 over gRPC, for a process that holds no cache of its own.
Package dataclient connects to the manager's data service (ADR-0028, the design's §3A): the typed services of clustarr.v1 over gRPC, for a process that holds no cache of its own.
dataserver
Package dataserver is the data service (ADR-0028, the design's §3A): the manager's data layer (pkg/data) served over gRPC as one typed service per family of things (clustarr.v1: MovieService, ...), for the ui and any other workload that reads or writes what the manager holds.
Package dataserver is the data service (ADR-0028, the design's §3A): the manager's data layer (pkg/data) served over gRPC as one typed service per family of things (clustarr.v1: MovieService, ...), for the ui and any other workload that reads or writes what the manager holds.
datatest
Package datatest serves the manager's data service to a test (ADR-0028): the real layer and the real typed services over a client the test owns, on an in-memory listener, with a client of them.
Package datatest serves the manager's data service to a test (ADR-0028): the real layer and the real typed services over a client the test owns, on an in-memory listener, with a client of them.
lookup
Package lookup is what the Plex provider's reads look items up by (the stateless ui design, 2026-12-03, phase 4): the keys of each kind -- its lasting id, its ids at providers and at Plex, its titles' keys, a file's base name -- one function for each, which the manager registers as field indexes (a library kind's are kept in the store's index tables) and the data service reads by, or applies itself to a kind it holds in memory.
Package lookup is what the Plex provider's reads look items up by (the stateless ui design, 2026-12-03, phase 4): the keys of each kind -- its lasting id, its ids at providers and at Plex, its titles' keys, a file's base name -- one function for each, which the manager registers as field indexes (a library kind's are kept in the store's index tables) and the data service reads by, or applies itself to a kind it holds in memory.
mapping
Package mapping maps the data service's typed messages (ADR-0028, the design's §3A; proto/clustarr/v1, pkg/data/pb) to the custom resources and library rows that hold them, and back.
Package mapping maps the data service's typed messages (ADR-0028, the design's §3A; proto/clustarr/v1, pkg/data/pb) to the custom resources and library rows that hold them, and back.
pb
Package decision is the pure release-decision engine every search, RSS and grab path runs (spec §7, §8.2, §9).
Package decision is the pure release-decision engine every search, RSS and grab path runs (spec §7, §8.2, §9).
Package download is the seam between grab's controllers and the two transfer engines: BitTorrent (anacrolix, D2-1) and usenet (NNTP + yEnc + PAR2, D2-2).
Package download is the seam between grab's controllers and the two transfer engines: BitTorrent (anacrolix, D2-1) and usenet (NNTP + yEnc + PAR2, D2-2).
torrent
Package torrent implements download.Client over github.com/anacrolix/torrent -- the BitTorrent half of D2's two engines.
Package torrent implements download.Client over github.com/anacrolix/torrent -- the BitTorrent half of D2's two engines.
usenet
Package usenet is the NNTP half of download.Client: it turns a .nzb body into finished content under a data directory, and reports the transfer the way grab's controllers expect.
Package usenet is the NNTP half of download.Client: it turns a .nzb body into finished content under a data directory, and reports the transfer the way grab's controllers expect.
usenet/kvledger
Package kvledger keeps the usenet connection ledger in NATS KV: one entry per provider account in clustarr-usenet-connections, listing every engine pod's grants with their own expiry (spec 2026-10-16 §3).
Package kvledger keeps the usenet connection ledger in NATS KV: one entry per provider account in clustarr-usenet-connections, listing every engine pod's grants with their own expiry (spec 2026-10-16 §3).
usenetaccount
Package usenetaccount names a usenet provider account in the connection ledger and reads its quota count.
Package usenetaccount names a usenet provider account in the connection ledger and reads its quota count.
Package dubs is the MAL-Dubs list (github.com/MAL-Dubs/MAL-Dubs): the MyAnimeList ids of anime with an English dub, complete ("dubbed") or still being dubbed ("incomplete", a simuldub).
Package dubs is the MAL-Dubs list (github.com/MAL-Dubs/MAL-Dubs): the MyAnimeList ids of anime with an English dub, complete ("dubbed") or still being dubbed ("incomplete", a simuldub).
Package events defines the Clustarr message bus contract: the envelope and headers every message carries, the publisher, subscriber, work-queue, key/value and request/reply interfaces, the stream and subject vocabulary, and the declarative broker topology.
Package events defines the Clustarr message bus contract: the envelope and headers every message carries, the publisher, subscriber, work-queue, key/value and request/reply interfaces, the stream and subject vocabulary, and the declarative broker topology.
contracttest
Package contracttest holds the conformance suite that every events.Bus implementation must pass.
Package contracttest holds the conformance suite that every events.Bus implementation must pass.
internal/evqueue
Package evqueue is the unbounded watch relay both buses share: a producer pushes without ever blocking, and Relay hands the items on, in order, at the reader's pace.
Package evqueue is the unbounded watch relay both buses share: a producer pushes without ever blocking, and Relay hands the items on, in order, at the reader's pace.
membus
Package membus is an in-process implementation of events.Bus.
Package membus is an in-process implementation of events.Bus.
natsbus
Package natsbus implements events.Bus on NATS JetStream.
Package natsbus implements events.Bus on NATS JetStream.
objects
Package objects is the one implementation of events.ObjectStore (ADR-0029): an object's record -- its size, digest, headers, metadata and the key of its bytes -- is a value of the store's index, a KV bucket (events.ObjectIndexBucket), and its bytes are a blob of an events.BlobStore, written once under a key no other write uses.
Package objects is the one implementation of events.ObjectStore (ADR-0029): an object's record -- its size, digest, headers, metadata and the key of its bytes -- is a value of the store's index, a KV bucket (events.ObjectIndexBucket), and its bytes are a blob of an events.BlobStore, written once under a key no other write uses.
objindex
Package objindex is a read-only, in-memory index of one object-store bucket, kept current by a single ObjectStore.Watch (artwork design §B.8 as amended 2026-10-07, "The index").
Package objindex is a read-only, in-memory index of one object-store bucket, kept current by a single ObjectStore.Watch (artwork design §B.8 as amended 2026-10-07, "The index").
s3blobs
Package s3blobs is events.BlobStore over S3 (ADR-0029): the chart's SeaweedFS, or any S3 a deployment points CLUSTARR_S3_ENDPOINT at.
Package s3blobs is events.BlobStore over S3 (ADR-0029): the chart's SeaweedFS, or any S3 a deployment points CLUSTARR_S3_ENDPOINT at.
s3blobs/s3test
Package s3test runs an in-memory S3 (gofakes3) for a test's lifetime: pkg/events/s3blobs's own tests, and a test that starts a process which requires CLUSTARR_S3_ENDPOINT.
Package s3test runs an in-memory S3 (gofakes3) for a test's lifetime: pkg/events/s3blobs's own tests, and a test that starts a process which requires CLUSTARR_S3_ENDPOINT.
schema
Package schema holds the JSON payload structs carried on the Clustarr bus.
Package schema holds the JSON payload structs carried on the Clustarr bus.
schema/schematest
Package schematest is test support for every package whose tests must range over the payloads the bus carries: pkg/events/schema's own uniqueness and no-float guards, and app/catalog/history's guard that the DLQ projector can resolve every payload a durable consumer may dead-letter.
Package schematest is test support for every package whose tests must range over the payloads the bus carries: pkg/events/schema's own uniqueness and no-float guards, and app/catalog/history's guard that the DLQ projector can resolve every payload a durable consumer may dead-letter.
Package facadekey is the Torznab facade's API-key Secret as both of its sides read it: the manager creates it, create-only, with one generated key (app/indexer/manager), and the index agent re-reads its keys by name (app/indexer/agent).
Package facadekey is the Torznab facade's API-key Secret as both of its sides read it: the manager creates it, create-only, with one generated key (app/indexer/manager), and the index agent re-reads its keys by name (app/indexer/agent).
Package ffruntime is the one runtime gate every binary that links ffgo passes through (spec 2026-10-06 §7.4).
Package ffruntime is the one runtime gate every binary that links ffgo passes through (spec 2026-10-06 §7.4).
ffmetrics
Package ffmetrics exports pkg/ffruntime's abandoned-call and panic counts.
Package ffmetrics exports pkg/ffruntime's abandoned-call and panic counts.
ffroute
Package ffroute wires FFmpeg's log lines into a process's logger under the ffmpeg subsystem (the 2026-11-10 logging design §4).
Package ffroute wires FFmpeg's log lines into a process's logger under the ffmpeg subsystem (the 2026-11-10 logging design §4).
Package fsops is Clustarr's filesystem primitives for moving media into and out of the library: hardlink-else-copy import, atomic single-file and directory writes, free-space checks, permission and recycle-bin handling, a safe-delete guard, and the sample/extra/part classification the scanner uses under amendment §A1.5's never-guess rule.
Package fsops is Clustarr's filesystem primitives for moving media into and out of the library: hardlink-else-copy import, atomic single-file and directory writes, free-space checks, permission and recycle-bin handling, a safe-delete guard, and the sample/extra/part classification the scanner uses under amendment §A1.5's never-guess rule.
Package grouplang learns the language a release group's dual-audio titles carry beside the original (release.GroupLanguages) from the files the library imports.
Package grouplang learns the language a release group's dual-audio titles carry beside the original (release.GroupLanguages) from the files the library imports.
Package imageset parses Kometa's image-files YAML -- what MediUX and ThePosterDB export for a show or a film -- into artwork overrides (docs/superpowers/specs/2026-10-21-image-sets-design.md):
Package imageset parses Kometa's image-files YAML -- what MediUX and ThePosterDB export for a show or a film -- into artwork overrides (docs/superpowers/specs/2026-10-21-image-sets-design.md):
Package importlist is Clustarr's import-list layer: the shared vocabulary (Item, ExternalIDs, the ImportList fetch interface, a name-keyed Registry), the plain-Go config union that mirrors api/catalog/v1alpha1.ImportListSpec's provider fields, and a TokenStore abstraction for providers that hold an OAuth token across reconciles.
Package importlist is Clustarr's import-list layer: the shared vocabulary (Item, ExternalIDs, the ImportList fetch interface, a name-keyed Registry), the plain-Go config union that mirrors api/catalog/v1alpha1.ImportListSpec's provider fields, and a TokenStore abstraction for providers that hold an OAuth token across reconciles.
arr
Package arr is a pkg/importlist provider stub for following the library of another *arr instance (including another Clustarr).
Package arr is a pkg/importlist provider stub for following the library of another *arr instance (including another Clustarr).
custom
Package custom is a pkg/importlist provider for an arbitrary feed.
Package custom is a pkg/importlist provider for an arbitrary feed.
imdbcsv
Package imdbcsv is a pkg/importlist provider for an IMDb list/watchlist exported as CSV: Parse reads the export format directly, and List fetches one by URL (the ImportList controller resolves the CRD's ConfigMapRef to a URL, or serves the ConfigMap's content itself, before constructing a List's Config).
Package imdbcsv is a pkg/importlist provider for an IMDb list/watchlist exported as CSV: Parse reads the export format directly, and List fetches one by URL (the ImportList controller resolves the CRD's ConfigMapRef to a URL, or serves the ConfigMap's content itself, before constructing a List's Config).
mdblist
Package mdblist is a pkg/importlist provider for lists hosted on mdblist.com.
Package mdblist is a pkg/importlist provider for lists hosted on mdblist.com.
plex
Package plex is a pkg/importlist provider for the authenticated user's Plex Discover watchlist.
Package plex is a pkg/importlist provider for the authenticated user's Plex Discover watchlist.
stevenlu
Package stevenlu is a pkg/importlist provider for the Steven Lu popular-movies feed (https://github.com/JustinRDavis/popular-movies), a static JSON document with no settings and no auth.
Package stevenlu is a pkg/importlist provider for the Steven Lu popular-movies feed (https://github.com/JustinRDavis/popular-movies), a static JSON document with no settings and no auth.
tmdb
Package tmdb is a pkg/importlist provider stub for a TMDB list or discover query.
Package tmdb is a pkg/importlist provider stub for a TMDB list or discover query.
trakt
Package trakt is a pkg/importlist provider for Trakt: the device-code OAuth flow (device.go) and watchlist/collection/list/trending/popular fetch (list.go).
Package trakt is a pkg/importlist provider for Trakt: the device-code OAuth flow (device.go) and watchlist/collection/list/trending/popular fetch (list.go).
Package iptv holds Live TV's pure rules (spec 2026-10-07 §4): the M3U parser (m3u), xTeVe's filters (filter), the XMLTV parser and guide builder (xmltv) and the HDHomeRun surface (hdhr).
Package iptv holds Live TV's pure rules (spec 2026-10-07 §4): the M3U parser (m3u), xTeVe's filters (filter), the XMLTV parser and guide builder (xmltv) and the HDHomeRun surface (hdhr).
blocks
Package blocks splits a provider's active channel numbers into the runs Plex sees as one DVR each (Live TV spec §3.1, §4.5).
Package blocks splits a provider's active channel numbers into the runs Plex sees as one DVR each (Live TV spec §3.1, §4.5).
filter
Package filter is xTeVe's channel filters (Live TV spec §4.2): which playlist entries reach the mapping table.
Package filter is xTeVe's channel filters (Live TV spec §4.2): which playlist entries reach the mapping table.
hdhr
Package hdhr renders the HDHomeRun HTTP surface Plex's DVR setup reads (Live TV spec §2, §4.4), with the values Plex accepts from xTeVe.
Package hdhr renders the HDHomeRun HTTP surface Plex's DVR setup reads (Live TV spec §2, §4.4), with the values Plex accepts from xTeVe.
lineup
Package lineup plans an IPTVProvider's custom lineup: it classifies a playlist's entries into the categories of the provider's rules, drops what the rules leave out, keeps one entry of each duplicated channel and numbers every category alphabetically from its base.
Package lineup plans an IPTVProvider's custom lineup: it classifies a playlist's entries into the categories of the provider's rules, drops what the rules leave out, keeps one entry of each duplicated channel and numbers every category alphabetically from its base.
livetvstatus
Package livetvstatus is what the Live TV executor tells the manager of each IPTVProvider (ADR-0025 part 8; the executor design of 2026-12-02, §3): the tuner's snapshot of the provider, as one record in a bucket of its own.
Package livetvstatus is what the Live TV executor tells the manager of each IPTVProvider (ADR-0025 part 8; the executor design of 2026-12-02, §3): the tuner's snapshot of the provider, as one record in a bucket of its own.
livetvstore
Package livetvstore is the clustarr-livetv object store's names and JSON shapes: the tuner writes every object, and the ui reads them (the direct-tuners and ui design 2026-10-27 §5.1).
Package livetvstore is the clustarr-livetv object store's names and JSON shapes: the tuner writes every object, and the ui reads them (the direct-tuners and ui design 2026-10-27 §5.1).
m3u
Package m3u parses an IPTV provider's M3U playlist (Live TV spec §4.1).
Package m3u parses an IPTV provider's M3U playlist (Live TV spec §4.1).
plexgrid
Package plexgrid is the client for Plex's guide service grid (epg.provider.plex.tv /grid/bulk) and its reduction to xmltv.Listings (the custom-guides design's §2.1 and §5.3).
Package plexgrid is the client for Plex's guide service grid (epg.provider.plex.tv /grid/bulk) and its reduction to xmltv.Listings (the custom-guides design's §2.1 and §5.3).
plexguide
Package plexguide pairs a provider's channels with the stations of a Plex cloud (Gracenote) lineup, the guide Plex serves for a cable or satellite lineup (the Plex native guide design, 2026-11-03).
Package plexguide pairs a provider's channels with the stations of a Plex cloud (Gracenote) lineup, the guide Plex serves for a cable or satellite lineup (the Plex native guide design, 2026-11-03).
tables
Package tables is Live TV's playlists and guides as rows of Postgres (docs/superpowers/specs/2026-12-03-livetv-rows-design.md; owner, 2026-12-03: "batch it and possibly store it in native postgresql"): the executor replaces a provider's rows of a kind in one transaction when what it fetched moved, and the data service reads them a page at a time.
Package tables is Live TV's playlists and guides as rows of Postgres (docs/superpowers/specs/2026-12-03-livetv-rows-design.md; owner, 2026-12-03: "batch it and possibly store it in native postgresql"): the executor replaces a provider's rows of a kind in one transaction when what it fetched moved, and the data service reads them a page at a time.
xmltv
Package xmltv parses XMLTV guides and builds the XEPG guide a provider serves Plex (Live TV spec §4.3).
Package xmltv parses XMLTV guides and builds the XEPG guide a provider serves Plex (Live TV spec §4.3).
k8s
Package k8s is the plumbing every Clustarr service's run.go shares: the single place allowed to write to a status subresource, plus the scheme, the manager options behind the common flags, the NATS connection and readiness gate, and the condition, finalizer, owner-reference, predicate and naming helpers.
Package k8s is the plumbing every Clustarr service's run.go shares: the single place allowed to write to a status subresource, plus the scheme, the manager options behind the common flags, the NATS connection and readiness gate, and the condition, finalizer, owner-reference, predicate and naming helpers.
conditions
Package conditions reads metav1.Conditions.
Package conditions reads metav1.Conditions.
Package lang normalizes language codes across the vocabularies this project actually receives them in, into one canonical BCP-47 tag.
Package lang normalizes language codes across the vocabularies this project actually receives them in, into one canonical BCP-47 tag.
Package lastrun remembers when a periodic job last finished, so that a process that restarts does not run it again at once.
Package lastrun remembers when a periodic job last finished, so that a process that restarts does not run it again at once.
Package library is the library store (ADR-0024, design docs/superpowers/specs/2026-11-26-library-store-design.md): the kinds a controller creates -- MediaFile, Episode, Album, Book, Audiobook, Issue -- held as rows in Postgres where they were custom resources in the apiserver.
Package library is the library store (ADR-0024, design docs/superpowers/specs/2026-11-26-library-store-design.md): the kinds a controller creates -- MediaFile, Episode, Album, Book, Audiobook, Issue -- held as rows in Postgres where they were custom resources in the apiserver.
bytecache
Package bytecache is the manager's cache of library objects as their stored JSON (the ADR-0025 batch, E4): a least-recently-used cache bounded by bytes, in place of informers holding every object decoded.
Package bytecache is the manager's cache of library objects as their stored JSON (the ADR-0025 batch, E4): a least-recently-used cache bounded by bytes, in place of informers holding every object decoded.
cacheguard
Package cacheguard keeps every library kind out of a controller-runtime cache: the manager's, every agent's and the ui's.
Package cacheguard keeps every library kind out of a controller-runtime cache: the manager's, every agent's and the ui's.
ctrlwire
Package ctrlwire points a controller-runtime manager at the library store (ADR-0024).
Package ctrlwire points a controller-runtime manager at the library store (ADR-0024).
libfeed
Package libfeed follows a library kind's change feed (pkg/library's Changes): the leader's indexer reads it (the ADR-0025 batch, B2), and the manager's feed sources will (E1).
Package libfeed follows a library kind's change feed (pkg/library's Changes): the leader's indexer reads it (the ADR-0025 batch, B2), and the manager's feed sources will (E1).
libindex
Package libindex is the manager's side of the library's index tables (the ADR-0025 batch, B2; decision D-2): the field indexes registered per kind, and the leader's indexer that keeps their rows from the change feed with the same functions an informer's index ran, so a read by index needs no informer.
Package libindex is the manager's side of the library's index tables (the ADR-0025 batch, B2; decision D-2): the field indexes registered per kind, and the leader's indexer that keeps their rows from the change feed with the same functions an informer's index ran, so a read by index needs no informer.
librelay
Package librelay relays the library store's change feed to the bus (events.StreamLibrary): one message per change, for whatever runs outside the manager (the data service design's §5, phase 5; owner, 2026-12-03).
Package librelay relays the library store's change feed to the bus (events.StreamLibrary): one message per change, for whatever runs outside the manager (the data service design's §5, phase 5; owner, 2026-12-03).
libview
Package libview is a process's in-memory view of the library kinds, fed by the store's change feeds: what the ui reads its pages from (the owner's ruling of 2026-12-02 that every library-kind informer goes).
Package libview is a process's in-memory view of the library kinds, fed by the store's change feeds: what the ui reads its pages from (the owner's ruling of 2026-12-02 that every library-kind informer goes).
ownership
Package ownership declares, once, which field manager writes which part of each library kind, and composes a write under those declarations (the native-columns design, §3, 2026-12-01).
Package ownership declares, once, which field manager writes which part of each library kind, and composes a write under those declarations (the native-columns design, §3, 2026-12-01).
queried
Package queried wires the manager's queried reads of the library kinds (the ADR-0025 batch, E4-E6): its client's Query, and the leader's indexer and byte cache feeds it reads by.
Package queried wires the manager's queried reads of the library kinds (the ADR-0025 batch, E4-E6): its client's Query, and the leader's indexer and byte cache feeds it reads by.
Package mediainfo is the model of a probe: the api/common/v1alpha1 MediaInfo the MediaFile status carries, Raw (ffprobe's result as go-ffprobe types, OD12: the full stream, format and chapter set, the Dolby Vision configuration record, and typed SMPTE ST 2086 mastering-display and content-light metadata that pkg/transcode's planner needs), the HDR rules and the hashes.
Package mediainfo is the model of a probe: the api/common/v1alpha1 MediaInfo the MediaFile status carries, Raw (ffprobe's result as go-ffprobe types, OD12: the full stream, format and chapter set, the Dolby Vision configuration record, and typed SMPTE ST 2086 mastering-display and content-light metadata that pkg/transcode's planner needs), the HDR rules and the hashes.
native
Package native is the in-process probe: what ffprobe printed for every field clustarr stores, read through ffgo (spec 2026-10-06 §6).
Package native is the in-process probe: what ffprobe printed for every field clustarr stores, read through ffgo (spec 2026-10-06 §6).
Package mediakind names the kinds of item of the library as the ui speaks of them: the word a route carries ("movie", "series", ...), which is also how the data service's MediaKind reads in lower case.
Package mediakind names the kinds of item of the library as the ui speaks of them: the word a route carries ("movie", "series", ...), which is also how the data service's MediaKind reads in lower case.
clients/anilist
Package anilist is a metadata.IDResolver and metadata.ComicProvider for AniList (https://graphql.anilist.co), a public GraphQL API over anime and manga (docs/research/metadata.md §2.5, §2.7).
Package anilist is a metadata.IDResolver and metadata.ComicProvider for AniList (https://graphql.anilist.co), a public GraphQL API over anime and manga (docs/research/metadata.md §2.5, §2.7).
clients/animelists
Package animelists is a metadata.IDResolver over Fribb/anime-lists' anime-list-full.json, the daily AniDB <-> TVDB <-> TMDB <-> IMDb <-> AniList <-> MAL <-> Kitsu crosswalk docs/research/metadata.md §2.7 and §4.1 name for the "animelists" provider.
Package animelists is a metadata.IDResolver over Fribb/anime-lists' anime-list-full.json, the daily AniDB <-> TVDB <-> TMDB <-> IMDb <-> AniList <-> MAL <-> Kitsu crosswalk docs/research/metadata.md §2.7 and §4.1 name for the "animelists" provider.
clients/audible
Package audible searches Audible's public catalog (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.6, Q2): GET /1.0/catalog/products?title=&num_results=&response_groups= on the marketplace's host, keyless and undocumented but stable for years (Audnexus and the legacy Plex audiobook agents built on it).
Package audible searches Audible's public catalog (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.6, Q2): GET /1.0/catalog/products?title=&num_results=&response_groups= on the marketplace's host, keyless and undocumented but stable for years (Audnexus and the legacy Plex audiobook agents built on it).
clients/audnexus
Package audnexus is an in-house metadata.AudiobookProvider for Audnexus (https://api.audnex.us), a self-hosted Audible metadata mirror (docs/research/metadata.md §2.6).
Package audnexus is an in-house metadata.AudiobookProvider for Audnexus (https://api.audnex.us), a self-hosted Audible metadata mirror (docs/research/metadata.md §2.6).
clients/comicvine
Package comicvine is an in-house metadata.ComicProvider for ComicVine (https://comicvine.gamespot.com/api), the primary comic/manga metadata source (docs/research/metadata.md §2.5).
Package comicvine is an in-house metadata.ComicProvider for ComicVine (https://comicvine.gamespot.com/api), the primary comic/manga metadata source (docs/research/metadata.md §2.5).
clients/coverart
Package coverart is a metadata.ArtworkProvider for the Cover Art Archive (https://coverartarchive.org), the artwork store MusicBrainz releases and release groups point at (docs/research/metadata.md §2.3).
Package coverart is a metadata.ArtworkProvider for the Cover Art Archive (https://coverartarchive.org), the artwork store MusicBrainz releases and release groups point at (docs/research/metadata.md §2.3).
clients/extid
Package extid names the pkg/metadata.ExternalIDs keys the eight clients added for the previously unimplemented MetadataProvider types hand out and consume, for ids pkg/metadata/ids.go does not name yet.
Package extid names the pkg/metadata.ExternalIDs keys the eight clients added for the previously unimplemented MetadataProvider types hand out and consume, for ids pkg/metadata/ids.go does not name yet.
clients/fanart
Package fanart is a metadata.ArtworkProvider for fanart.tv (docs/research/metadata.md §2.3): logos, clear art, backgrounds, discs and banners for movies, series, artists and albums -- the *arrs' "clearlogo" comes from here.
Package fanart is a metadata.ArtworkProvider for fanart.tv (docs/research/metadata.md §2.3): logos, clear art, backgrounds, discs and banners for movies, series, artists and albums -- the *arrs' "clearlogo" comes from here.
clients/hardcover
Package hardcover is a metadata.BookProvider for Hardcover (https://api.hardcover.app/v1/graphql), the Goodreads replacement docs/research/metadata.md §2.4 names as the secondary book source.
Package hardcover is a metadata.BookProvider for Hardcover (https://api.hardcover.app/v1/graphql), the Goodreads replacement docs/research/metadata.md §2.4 names as the secondary book source.
clients/httpjson
Package httpjson is the request half every in-house metadata client added for the eight MetadataProvider types that shipped without one (coverart, fanart, hardcover, metron, mangadex, anilist, kitsu, animelists) and for pkg/metadata/scenemap's TheXEM client shares: wait on the caller's limiter, send, read the body through pkg/metadata's cap, map the status onto pkg/metadata's sentinel errors, decode.
Package httpjson is the request half every in-house metadata client added for the eight MetadataProvider types that shipped without one (coverart, fanart, hardcover, metron, mangadex, anilist, kitsu, animelists) and for pkg/metadata/scenemap's TheXEM client shares: wait on the caller's limiter, send, read the body through pkg/metadata's cap, map the status onto pkg/metadata's sentinel errors, decode.
clients/kitsu
Package kitsu is a metadata.IDResolver over Kitsu's mappings (https://kitsu.io/api/edge), "a cheap crosswalk for anime/manga" (docs/research/metadata.md §2.5): Kitsu records, per anime or manga, its TVDB series, AniDB, MyAnimeList and AniList ids -- the anime ids design §4.2's SeriesMetadata.ExternalIDs lists.
Package kitsu is a metadata.IDResolver over Kitsu's mappings (https://kitsu.io/api/edge), "a cheap crosswalk for anime/manga" (docs/research/metadata.md §2.5): Kitsu records, per anime or manga, its TVDB series, AniDB, MyAnimeList and AniList ids -- the anime ids design §4.2's SeriesMetadata.ExternalIDs lists.
clients/mangadex
Package mangadex is a metadata.ComicProvider and metadata.IDResolver for MangaDex (https://api.mangadex.org), the manga source a Comic CR names with source "mangadex" and a manga UUID (design §4.2).
Package mangadex is a metadata.ComicProvider and metadata.IDResolver for MangaDex (https://api.mangadex.org), the manga source a Comic CR names with source "mangadex" and a manga UUID (design §4.2).
clients/mdblist
Package mdblist is a metadata.RatingsProvider for MDBList (https://api.mdblist.com), the aggregator spec §C.2 names for every rating source TMDB does not supply: imdb, tmdb, Rotten Tomatoes critic and audience, metacritic, trakt and letterboxd, for movies and series.
Package mdblist is a metadata.RatingsProvider for MDBList (https://api.mdblist.com), the aggregator spec §C.2 names for every rating source TMDB does not supply: imdb, tmdb, Rotten Tomatoes critic and audience, metacritic, trakt and letterboxd, for movies and series.
clients/mediux
Package mediux is a client for MediUX's image sets (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): a Directus GraphQL endpoint, as the MediUX team's AURA and Mediux-Posters use it, recorded live on 2026-10-22 with the shared testing token (test/data/metadata/mediux).
Package mediux is a client for MediUX's image sets (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): a Directus GraphQL endpoint, as the MediUX team's AURA and Mediux-Posters use it, recorded live on 2026-10-22 with the shared testing token (test/data/metadata/mediux).
clients/metron
Package metron is a metadata.ComicProvider, metadata.IDResolver and metadata.PageProvider for Metron (https://metron.cloud/api), the comic database docs/research/metadata.md §2.5 calls the best comic crosswalk: every series and issue carries its ComicVine and Grand Comics Database ids.
Package metron is a metadata.ComicProvider, metadata.IDResolver and metadata.PageProvider for Metron (https://metron.cloud/api), the comic database docs/research/metadata.md §2.5 calls the best comic crosswalk: every series and issue carries its ComicVine and Grand Comics Database ids.
clients/musicbrainz
Package musicbrainz wraps go.uploadedlobster.com/musicbrainzws2 as a metadata.ArtistProvider.
Package musicbrainz wraps go.uploadedlobster.com/musicbrainzws2 as a metadata.ArtistProvider.
clients/openlibrary
Package openlibrary is an in-house metadata.BookProvider for Open Library (https://openlibrary.org), the free, CC0, no-key book metadata source Readarr's own upstream (Goodreads) left behind (docs/research/metadata.md §2.4).
Package openlibrary is an in-house metadata.BookProvider for Open Library (https://openlibrary.org), the free, CC0, no-key book metadata source Readarr's own upstream (Goodreads) left behind (docs/research/metadata.md §2.4).
clients/plex
Package plex resolves items to their ids in Plex's own metadata service (metadata.provider.plex.tv), whose plex:// GUIDs Plex Web keys its Watchlist and Discover features on (docs/superpowers/specs/2026-10-06-plex-native-guids-design.md §2).
Package plex resolves items to their ids in Plex's own metadata service (metadata.provider.plex.tv), whose plex:// GUIDs Plex Web keys its Watchlist and Discover features on (docs/superpowers/specs/2026-10-06-plex-native-guids-design.md §2).
clients/theintrodb
Package theintrodb is a client for TheIntroDB's v3 API (https://api.theintrodb.org/v3/media): community skip segments -- intro, recap, credits and preview -- per title, per episode for TV, told apart by release through the file's duration.
Package theintrodb is a client for TheIntroDB's v3 API (https://api.theintrodb.org/v3/media): community skip segments -- intro, recap, credits and preview -- per title, per episode for TV, told apart by release through the file's duration.
clients/tmdb
Package tmdb wraps the five TMDB requests in internal/rawtmdb as a metadata.MovieProvider.
Package tmdb wraps the five TMDB requests in internal/rawtmdb as a metadata.MovieProvider.
clients/tmdb/internal/rawtmdb
Package rawtmdb is the slice of github.com/cyruzin/golang-tmdb v1.9.4 (MIT, Copyright (c) 2019 Cyro Dubeux; LICENSE in this directory) that pkg/metadata/clients/tmdb calls: the GET client and the five endpoints behind it, decoded with encoding/json.
Package rawtmdb is the slice of github.com/cyruzin/golang-tmdb v1.9.4 (MIT, Copyright (c) 2019 Cyro Dubeux; LICENSE in this directory) that pkg/metadata/clients/tmdb calls: the GET client and the five endpoints behind it, decoded with encoding/json.
clients/tvdb
Package tvdb is an in-house metadata.SeriesProvider for TheTVDB v4 REST API (https://api4.thetvdb.com/v4).
Package tvdb is an in-house metadata.SeriesProvider for TheTVDB v4 REST API (https://api4.thetvdb.com/v4).
clients/wikipedia
Package wikipedia is the keyless biography source (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.4): from an artist's or author's Wikidata or Wikipedia link (a MusicBrainz url-rel, an Open Library remote id) to the English Wikipedia summary of the page the link names, in two requests at most -- the Wikidata entity's sitelink (wbgetentities, props=sitelinks) and the page summary (REST v1 page/summary, whose "extract" is the lead section as plain text).
Package wikipedia is the keyless biography source (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.4): from an artist's or author's Wikidata or Wikipedia link (a MusicBrainz url-rel, an Open Library remote id) to the English Wikipedia summary of the page the link names, in two requests at most -- the Wikidata entity's sitelink (wbgetentities, props=sitelinks) and the page summary (REST v1 page/summary, whose "extract" is the lead section as plain text).
extended
Package extended is the per-item document of the metadata the Plex provider shows but no CRD carries: the people (Role, Director, Writer, Producer) and the similar titles (spec 2026-09-30 plex-full-metadata- response §4).
Package extended is the per-item document of the metadata the Plex provider shows but no CRD carries: the people (Role, Director, Writer, Producer) and the similar titles (spec 2026-09-30 plex-full-metadata- response §4).
mediuxcache
Package mediuxcache reads MediUX through the clustarr-mediux KV bucket (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md "Caching"), so a library is matched with as few requests as the sets' churn needs:
Package mediuxcache reads MediUX through the clustarr-mediux KV bucket (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md "Caching"), so a library is matched with as few requests as the sets' churn needs:
mediuxsets
Package mediuxsets is MediUX as a metadata.ImageSetProvider: the client's sets, read through the clustarr-mediux cache, composed slot by slot by the provider's policy and mapped to the catalog's override shapes (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md).
Package mediuxsets is MediUX as a metadata.ImageSetProvider: the client's sets, read through the clustarr-mediux cache, composed slot by slot by the provider's policy and mapped to the catalog's override shapes (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md).
plexextras
Package plexextras is the stored form of an item's extras -- the trailers and clips Plex's metadata service holds for a movie, show or season -- in the clustarr-plex-extras KV bucket, keyed by Plex id.
Package plexextras is the stored form of an item's extras -- the trailers and clips Plex's metadata service holds for a movie, show or season -- in the clustarr-plex-extras KV bucket, keyed by Plex id.
scenemap
Package scenemap supplies scene numbering: the table that says which TVDB episode a scene release's "S02E05" or "- 18" means for a series whose releases are numbered differently from TVDB -- most anime.
Package scenemap supplies scene numbering: the table that says which TVDB episode a scene release's "S02E05" or "- 18" means for a series whose releases are numbered differently from TVDB -- most anime.
Package naming is Clustarr's file and folder naming engine: a token grammar and per-media-kind path builder that mirrors the *arr family's (Radarr/Sonarr/Lidarr/Readarr) naming tokens, with presets for the four media-server dialects (Jellyfin, Plex, Emby, Kodi) the catalog.clustarr.io RootFolder type exposes, plus a general-purpose path sanitiser.
Package naming is Clustarr's file and folder naming engine: a token grammar and per-media-kind path builder that mirrors the *arr family's (Radarr/Sonarr/Lidarr/Readarr) naming tokens, with presets for the four media-server dialects (Jellyfin, Plex, Emby, Kodi) the catalog.clustarr.io RootFolder type exposes, plus a general-purpose path sanitiser.
catalogctx
Package catalogctx is the one place a naming.Context is built from catalog CRDs and rendered into a MediaFile's destination path -- for the import worker (app/import/worker/fileimport) today, and for the rename controllers docs/superpowers/plans/2026-09-24-probe-driven-naming.md adds later.
Package catalogctx is the one place a naming.Context is built from catalog CRDs and rendered into a MediaFile's destination path -- for the import worker (app/import/worker/fileimport) today, and for the rename controllers docs/superpowers/plans/2026-09-24-probe-driven-naming.md adds later.
Package newznab is the Newznab category table: the fixed, five-family standard tree Clustarr uses (movies/audio/tv/books/other), plus the conversions between a category id and a Clustarr MediaKind.
Package newznab is the Newznab category table: the fixed, five-family standard tree Clustarr uses (movies/audio/tv/books/other), plus the conversions between a category id and a Clustarr MediaKind.
Package nfo renders the Kodi-shape artist.nfo and album.nfo documents Plex's music agent reads from a music library's folders (PMS 1.43.5, PM-6153; docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8).
Package nfo renders the Kodi-shape artist.nfo and album.nfo documents Plex's music agent reads from a music library's folders (PMS 1.43.5, PM-6153; docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8).
obs
Package obs is the one call every Clustarr service makes to stand up its observability: Bootstrap builds the logger, bridges it to controller-runtime, installs the TracerProvider and hands back the shutdown.
Package obs is the one call every Clustarr service makes to stand up its observability: Bootstrap builds the logger, bridges it to controller-runtime, installs the TracerProvider and hands back the shutdown.
logging
Package logging is Clustarr's *slog.Logger, carried through context.
Package logging is Clustarr's *slog.Logger, carried through context.
metrics
Package metrics is Clustarr's Prometheus catalogue: one collector per series in the amendment's §A2.3 table, registered into controller-runtime's registry so a single /metrics endpoint serves both the controller-runtime built-ins and Clustarr's own domain metrics.
Package metrics is Clustarr's Prometheus catalogue: one collector per series in the amendment's §A2.3 table, registered into controller-runtime's registry so a single /metrics endpoint serves both the controller-runtime built-ins and Clustarr's own domain metrics.
obsflags
Package obsflags binds the logging and tracing flags every Clustarr binary shares onto a pflag.FlagSet.
Package obsflags binds the logging and tracing flags every Clustarr binary shares onto a pflag.FlagSet.
tracing
Package tracing provides the OpenTelemetry spans shared by every Clustarr service: process-wide setup, span creation enriched onto the logger carried by context, error recording, and propagation of the active span across the NATS envelope's Clustarr-Trace header (see github.com/mediactl/clustarr/pkg/events, HeaderTrace and Envelope.Trace), so one trace can span the whole pipeline: search, grab, download, import, transcode and subtitle fetch.
Package tracing provides the OpenTelemetry spans shared by every Clustarr service: process-wide setup, span creation enriched onto the logger carried by context, error recording, and propagation of the active span across the NATS envelope's Clustarr-Trace header (see github.com/mediactl/clustarr/pkg/events, HeaderTrace and Envelope.Trace), so one trace can span the whole pipeline: search, grab, download, import, transcode and subtitle fetch.
Package offheap maps byte buffers outside the Go heap: anonymous, private, page-aligned mappings the collector never scans, that count toward no heap goal, and that go back to the kernel at Unmap rather than at the collector's next cycle.
Package offheap maps byte buffers outside the Go heap: anonymous, private, page-aligned mappings the collector never scans, that count toward no heap goal, and that go back to the kernel at Unmap rather than at the collector's next cycle.
Package ortlog routes ONNX Runtime's own log lines into a process's logger under the onnx subsystem (the 2026-11-10 logging design §4), through the custom logger the mediactl/onnxruntime-purego fork binds (NewEnvWithLogger, Env.SetLogLevel).
Package ortlog routes ONNX Runtime's own log lines into a process's logger under the onnx subsystem (the 2026-11-10 logging design §4), through the custom logger the mediactl/onnxruntime-purego fork binds (NewEnvWithLogger, Env.SetLogLevel).
Package overlay is the poster badge model (spec §C.5): Badge, Template (DefaultTemplate, TemplateSpec, TemplateHash), FormatScore, the embedded rating-source logos, and the one badge that is not a rating, the dub mark of a dubbed anime (DubBadge).
Package overlay is the poster badge model (spec §C.5): Badge, Template (DefaultTemplate, TemplateSpec, TemplateHash), FormatScore, the embedded rating-source logos, and the one badge that is not a rating, the dub mark of a dubbed anime (DubBadge).
render
Package render is the pure poster badge renderer (spec §C.5): given a base poster image, a stack of rating Badges and a Template, it draws one rounded-rect box per badge -- the source's logo on top, the score in bold white beneath -- in the chosen corner, and returns the composited image.
Package render is the pure poster badge renderer (spec §C.5): given a base poster image, a stack of rating Badges and a Template, it draws one rounded-rect box per badge -- the source's logo on top, the score in bold white beneath -- in the chosen corner, and returns the composited image.
Package par2child runs par2go (github.com/mediactl/par2go, par2cmdline-turbo as a library) for the usenet engine, in a short-lived child of this binary rather than in the engine's own process (spec 2026-10-06 §8.4, OD21).
Package par2child runs par2go (github.com/mediactl/par2go, par2cmdline-turbo as a library) for the usenet engine, in a short-lived child of this binary rather than in the engine's own process (spec 2026-10-06 §8.4, OD21).
Package pipeline computes the end-to-end pipeline projection the UI's Pipeline page renders: one Stage per catalog item, derived from the resources owned by the five services that move it from "wanted" to "on disk, transcoded and subtitled".
Package pipeline computes the end-to-end pipeline projection the UI's Pipeline page renders: one Stage per catalog item, derived from the resources owned by the five services that move it from "wanted" to "on disk, transcoded and subtitled".
Package placement is the control-plane placement design's profile (docs/superpowers/specs/2026-10-21-control-plane-placement-design.md §3, §5.6) for the pods the manager builds itself: the engines, the transcode pools and graft Jobs.
Package placement is the control-plane placement design's profile (docs/superpowers/specs/2026-10-21-control-plane-placement-design.md §3, §5.6) for the pods the manager builds itself: the engines, the transcode pools and graft Jobs.
plex
sharing
Package sharing is the Plex side of sharing a server with people (docs/superpowers/specs/2026-12-02-plex-users-design.md, as amended 2026-12-03): plex.tv's sharing API, reached through cluster-plex's plex.tv relay, which signs each call with the server's own token; the server's libraries with their content ratings and labels, read from Plex; and the snapshot of both a pass judges every PlexUser against (World).
Package sharing is the Plex side of sharing a server with people (docs/superpowers/specs/2026-12-02-plex-users-design.md, as amended 2026-12-03): plex.tv's sharing API, reached through cluster-plex's plex.tv relay, which signs each call with the server's own token; the server's libraries with their content ratings and labels, read from Plex; and the snapshot of both a pass judges every PlexUser against (World).
sharing/sharingtest
Package sharingtest is a fake cluster-plex for the sharing package's callers: the Plex server's identity and library tags, and plex.tv's sharing API under the relay's path, answered from what a test sets, with every request recorded.
Package sharingtest is a fake cluster-plex for the sharing package's callers: the Plex server's identity and library tags, and plex.tv's sharing API under the relay's path, answered from what a test sets, with every request recorded.
titles
Package titles is how the Plex provider compares a title Plex asks about with an item's: the keys an item's titles are known by, so a match by title is an indexed lookup of the request's key where the items are (the stateless ui design, 2026-12-03, phase 4), and the same keys decide it in the provider.
Package titles is how the Plex provider compares a title Plex asks about with an item's: the keys an item's titles are known by, so a match by title is an indexed lookup of the request's key where the items are (the stateless ui design, 2026-12-03, phase 4), and the same keys decide it in the provider.
Package plexfilter is clustarr's catalogue of Plex's smart-filter fields and operators (docs/superpowers/specs/2026-11-10-plex-collections-design.md): what a PlexCollection's filter may name, validation of a spec before the UI writes it, and the one-line reading the Collections page lists.
Package plexfilter is clustarr's catalogue of Plex's smart-filter fields and operators (docs/superpowers/specs/2026-11-10-plex-collections-design.md): what a PlexCollection's filter may name, validation of a spec before the UI writes it, and the one-line reading the Collections page lists.
Package plexpush posts the library to a Plex deployment: the client of cluster-plex's /api/v1/library routes and the documents they take (its 2026-12-02 pushed-library design; ADR-0027).
Package plexpush posts the library to a Plex deployment: the client of cluster-plex's /api/v1/library routes and the documents they take (its 2026-12-02 pushed-library design; ADR-0027).
Package presence is agent presence (ADR-0019 §5.3): every agent process and cmd/markers write one key in clustarr-progress at start and every Interval, and the manager's admission (app/dispatch) reads them through a short cache.
Package presence is agent presence (ADR-0019 §5.3): every agent process and cmd/markers write one key in clustarr-progress at start and every Interval, and the manager's admission (app/dispatch) reads them through a short cache.
Package probestore is the MediaFile probe record protocol (spec 2026-10-06 §6.5.2): one record per MediaFile UID in the clustarr-probes bucket, every write a compare-and-swap, nobody deleting one (the bucket's TTL does).
Package probestore is the MediaFile probe record protocol (spec 2026-10-06 §6.5.2): one record per MediaFile UID in the clustarr-probes bucket, every write a compare-and-swap, nobody deleting one (the bucket's TTL does).
Package quality resolves Clustarr's TRaSH-shaped QualityProfile CRDs into ready-to-evaluate Profile values: a video/music/book/audiobook/comic quality ladder (Definition, Lookup), TRaSH per-minute size tables (SizeLimit, SizeLimits), a QualityProfile's tiers and custom-format scores resolved against pkg/quality/catalogue (FromCRD; only a video profile has custom formats -- the catalogue is TRaSH's Radarr/Sonarr data), and the single-candidate upgrade decision ported from UpgradableSpecification.IsUpgradable (Profile.UpgradeDecision).
Package quality resolves Clustarr's TRaSH-shaped QualityProfile CRDs into ready-to-evaluate Profile values: a video/music/book/audiobook/comic quality ladder (Definition, Lookup), TRaSH per-minute size tables (SizeLimit, SizeLimits), a QualityProfile's tiers and custom-format scores resolved against pkg/quality/catalogue (FromCRD; only a video profile has custom formats -- the catalogue is TRaSH's Radarr/Sonarr data), and the single-candidate upgrade decision ported from UpgradableSpecification.IsUpgradable (Profile.UpgradeDecision).
catalogue
Package catalogue is Clustarr's opinionated TRaSH custom-format catalogue.
Package catalogue is Clustarr's opinionated TRaSH custom-format catalogue.
Package ratelimit is Clustarr's rate-limiting toolkit for talking to indexers and download-client APIs: a keyed token-bucket limiter over golang.org/x/time/rate, an exponential Backoff with jitter and a server Retry-After override, and a closed/open/half-open CircuitBreaker for a dependency that is failing outright rather than merely rate-limiting.
Package ratelimit is Clustarr's rate-limiting toolkit for talking to indexers and download-client APIs: a keyed token-bucket limiter over golang.org/x/time/rate, an exponential Backoff with jitter and a server Retry-After override, and a closed/open/half-open CircuitBreaker for a dependency that is failing outright rather than merely rate-limiting.
Package records is the compare-and-swap record protocol every remediation reports through (loop spec 2026-10-06 §4; ADR-0016): one record per MediaFile UID (and sub-key) in a Durable KV bucket per remediation; the loop the only issuer of Seq, writing status, then the record, then the task; workers answering by compare-and-swap after a fresh re-read; nobody deleting a record, whose bucket TTL retires it.
Package records is the compare-and-swap record protocol every remediation reports through (loop spec 2026-10-06 §4; ADR-0016): one record per MediaFile UID (and sub-key) in a Durable KV bucket per remediation; the loop the only issuer of Seq, writing status, then the record, then the task; workers answering by compare-and-swap after a fresh re-read; nobody deleting a record, whose bucket TTL retires it.
agentrecords
Package agentrecords is the one declaration of each ADR-0019 agent-written records bucket's protocol (ruling R6): its bucket, schema, value cap and key, shared by the agent that writes it (records.Writer) and the manager that reads it (records.Reader), so the two can never disagree on a key.
Package agentrecords is the one declaration of each ADR-0019 agent-written records bucket's protocol (ruling R6): its bucket, schema, value cap and key, shared by the agent that writes it (records.Writer) and the manager that reads it (records.Reader), so the two can never disagree on a key.
recordsource
Package recordsource wakes the remediation loop from a records bucket (loop spec 2026-10-06 §4.9): a controller source, so leader-only, that watches one bucket from its current end, enqueues the file a worker's record names and skips the loop's own writes.
Package recordsource wakes the remediation loop from a records bucket (loop spec 2026-10-06 §4.9): a controller source, so leader-only, that watches one bucket from its current end, enqueues the file a worker's record names and skips the loop's own writes.
Package redact renders URLs, and the errors net/http builds around them, without the credentials they carry.
Package redact renders URLs, and the errors net/http builds around them, without the credentials they carry.
Package release parses release titles — scene, P2P and streaming-service names for movies, TV (standard, daily and anime), music, books, audiobooks and comics — into a structured ParsedRelease.
Package release parses release titles — scene, P2P and streaming-service names for movies, TV (standard, daily and anime), music, books, audiobooks and comics — into a structured ParsedRelease.
Package relindex is the local release index: every release index sees, from an RSS poll or a federated search, in a SQLite database with an FTS5 virtual table over the normalised title and the release group.
Package relindex is the local release index: every release index sees, from an RSS poll or a federated search, in a SQLite database with an FTS5 virtual table over the normalised title and the release group.
storetest
Package storetest is the one behavioural contract for every relindex.Store implementation.
Package storetest is the one behavioural contract for every relindex.Store implementation.
Package segments decides a file's skip segments from what clustarr detects itself -- chapters, shared audio, end-of-file frames, text density -- and merges them under TheIntroDB's (spec 2026-10-01 segment detection).
Package segments decides a file's skip segments from what clustarr detects itself -- chapters, shared audio, end-of-file frames, text density -- and merges them under TheIntroDB's (spec 2026-10-01 segment detection).
align
Package align finds audio shared between fingerprinted windows: a season's intro, or its ending theme (spec 2026-10-01 segment detection §6.2), after Intro Skipper's procedure.
Package align finds audio shared between fingerprinted windows: a season's intro, or its ending theme (spec 2026-10-01 segment detection §6.2), after Intro Skipper's procedure.
chromaprint
Package chromaprint is a Go port of Chromaprint's default fingerprint (algorithm 2, "test2"), after acoustid/chromaprint (LGPL-2.1+, which GPL-3.0 absorbs).
Package chromaprint is a Go port of Chromaprint's default fingerprint (algorithm 2, "test2"), after acoustid/chromaprint (LGPL-2.1+, which GPL-3.0 absorbs).
decode
Package decode turns a media file's windows into raw samples and frames for segment detection, in-process on FFmpeg 9 through ffgo, building the demux, seek, decode and filter graph ffmpeg(1) builds for the three commands it replaced, so the output is the same bytes (spec 2026-10-06 §7.2).
Package decode turns a media file's windows into raw samples and frames for segment detection, in-process on FFmpeg 9 through ffgo, building the demux, seek, decode and filter graph ffmpeg(1) builds for the three commands it replaced, so the output is the same bytes (spec 2026-10-06 §7.2).
fingerprintmeta
Package fingerprintmeta is the metadata of the clustarr-fingerprints object store (ADR-0021): the one builder every Put and the maintenance audit's SetMeta send, the check a reader makes before it trusts a cached fingerprint, and the audit itself.
Package fingerprintmeta is the metadata of the clustarr-fingerprints object store (ADR-0021): the one builder every Put and the maintenance audit's SetMeta send, the check a reader makes before it trusts a cached fingerprint, and the audit itself.
frames
Package frames reads end-of-file frames -- 1 fps, 128x72 grayscale from ffmpeg -- for the marks of credits: black frames, text over a flat picture, and rolling text (spec 2026-10-01 segment detection §6.3).
Package frames reads end-of-file frames -- 1 fps, 128x72 grayscale from ffmpeg -- for the marks of credits: black frames, text over a flat picture, and rolling text (spec 2026-10-01 segment detection §6.3).
textdet
Package textdet measures how much of a frame is text, with PaddleOCR's text-detection model on ONNX Runtime, and finds where credits start by searching end-of-file frames with it (spec 2026-10-01 segment detection §6.4).
Package textdet measures how much of a frame is text, with PaddleOCR's text-detection model on ONNX Runtime, and finds where credits start by searching end-of-file frames with it (spec 2026-10-01 segment detection §6.4).
Package socks5 is a SOCKS5 client (RFC 1928, RFC 1929) for the torrent engine: CONNECT through golang.org/x/net/proxy, which sends a hostname to the proxy unresolved, and UDP ASSOCIATE, which x/net/proxy does not implement (it accepts only tcp networks), as a net.PacketConn.
Package socks5 is a SOCKS5 client (RFC 1928, RFC 1929) for the torrent engine: CONNECT through golang.org/x/net/proxy, which sends a hostname to the proxy unresolved, and UDP ASSOCIATE, which x/net/proxy does not implement (it accepts only tcp networks), as a net.PacketConn.
socks5test
Package socks5test is a SOCKS5 server for tests.
Package socks5test is a SOCKS5 server for tests.
Package subtitles implements subtitle-provider search, Bazarr-equivalent scoring, and hearing-impaired stripping; charset and format post-processing is pkg/subtitles/postprocess.
Package subtitles implements subtitle-provider search, Bazarr-equivalent scoring, and hearing-impaired stripping; charset and format post-processing is pkg/subtitles/postprocess.
asssrt
Package asssrt converts ASS and SSA subtitles to plain SubRip.
Package asssrt converts ASS and SSA subtitles to plain SubRip.
ocr
Package ocr reads image subtitles into text: PaddleOCR's PP-OCRv5 recognition model on ONNX Runtime through purego (as pkg/segments/textdet runs its detector), over the grey bitmaps pkg/subtitles/pgs decodes from a .sup sidecar the MP4 standard kept beside a transcode.
Package ocr reads image subtitles into text: PaddleOCR's PP-OCRv5 recognition model on ONNX Runtime through purego (as pkg/segments/textdet runs its detector), over the grey bitmaps pkg/subtitles/pgs decodes from a .sup sidecar the MP4 standard kept beside a transcode.
pgs
Package pgs reads Blu-ray Presentation Graphic Stream subtitles -- a .sup file, as FFmpeg's sup muxer writes the track the MP4 standard keeps beside a transcode (standard.SidecarSUP) -- into timed grey bitmaps for the OCR (pkg/subtitles/ocr).
Package pgs reads Blu-ray Presentation Graphic Stream subtitles -- a .sup file, as FFmpeg's sup muxer writes the track the MP4 standard keeps beside a transcode (standard.SidecarSUP) -- into timed grey bitmaps for the OCR (pkg/subtitles/ocr).
pgs/pgstest
Package pgstest writes Presentation Graphic Streams for tests: FFmpeg encodes no PGS, so a stream with known bitmaps and timings is built by hand, as the Blu-ray spec lays it out (one display set per shown bitmap, a clearing set at its end).
Package pgstest writes Presentation Graphic Streams for tests: FFmpeg encodes no PGS, so a stream with known bitmaps and timings is built by hand, as the Blu-ray spec lays it out (one display set per shown bitmap, a clearing set at its end).
postprocess
Package postprocess rewrites a downloaded subtitle: charset to UTF-8, Bazarr's mods, and SRT or ASS output through go-astisub.
Package postprocess rewrites a downloaded subtitle: charset to UTF-8, Bazarr's mods, and SRT or ASS output through go-astisub.
providers/embedded
Package embedded implements subtitles.Provider over a media file's own embedded subtitle tracks.
Package embedded implements subtitles.Provider over a media file's own embedded subtitle tracks.
providers/embedded/native
Package native extracts a text subtitle stream as SRT in-process, as `ffmpeg -i P -map 0:N -c:s srt -f srt -` did: FFmpeg's decoder and srt encoder (which apply the stream's ASS styles), framed in Go as libavformat/srtenc.c writes it (spec 2026-10-06 §7.3).
Package native extracts a text subtitle stream as SRT in-process, as `ffmpeg -i P -map 0:N -c:s srt -f srt -` did: FFmpeg's decoder and srt encoder (which apply the stream's ASS styles), framed in Go as libavformat/srtenc.c writes it (spec 2026-10-06 §7.3).
providers/gestdown
Package gestdown implements subtitles.Provider against the Gestdown (api.gestdown.info) TV-subtitle API.
Package gestdown implements subtitles.Provider against the Gestdown (api.gestdown.info) TV-subtitle API.
providers/internal/subarchive
Package subarchive pulls one subtitle file out of the ZIP or RAR archive a subtitle provider serves (SubDL, SubSource), without trusting the archive: every member is read through a size cap, so a decompression bomb costs at most the cap, and the selection never guesses -- an episode pack in which no file names the wanted episode yields ErrNoSubtitle, not some other episode's subtitle scored as this one's.
Package subarchive pulls one subtitle file out of the ZIP or RAR archive a subtitle provider serves (SubDL, SubSource), without trusting the archive: every member is read through a size cap, so a decompression bomb costs at most the cap, and the selection never guesses -- an episode pack in which no file names the wanted episode yields ErrNoSubtitle, not some other episode's subtitle scored as this one's.
providers/internal/subarchive/subarchivetest
Package subarchivetest builds the ZIP and RAR archives subtitle provider tests serve, in memory, so no binary archive has to live under test/data/.
Package subarchivetest builds the ZIP and RAR archives subtitle provider tests serve, in memory, so no binary archive has to live under test/data/.
providers/opensubtitlescom
Package opensubtitlescom implements subtitles.Provider against the OpenSubtitles.com REST v1 API (docs/research/subtitles.md §4.3).
Package opensubtitlescom implements subtitles.Provider against the OpenSubtitles.com REST v1 API (docs/research/subtitles.md §4.3).
providers/pgsocr
Package pgsocr implements subtitles.Provider over the image subtitles beside a media file: the .sup sidecars the MP4 standard writes for a PGS track no text track covers (standard.Version 8), which no player reads.
Package pgsocr implements subtitles.Provider over the image subtitles beside a media file: the .sup sidecars the MP4 standard writes for a PGS track no text track covers (standard.Version 8), which no player reads.
providers/subdl
Package subdl implements subtitles.Provider against SubDL (api.subdl.com), the Subscene successor research note §4.2 lists as a viable JSON-API provider for movies and TV.
Package subdl implements subtitles.Provider against SubDL (api.subdl.com), the Subscene successor research note §4.2 lists as a viable JSON-API provider for movies and TV.
providers/subsource
Package subsource implements subtitles.Provider against SubSource (api.subsource.net), the JSON-API provider research note §4.2 lists as viable for movies and TV.
Package subsource implements subtitles.Provider against SubSource (api.subsource.net), the JSON-API provider research note §4.2 lists as viable for movies and TV.
Package subtitlestore is the clustarr-subtitles instantiation of pkg/records (loop spec §6.6): the loop requests and withdraws through it, the caption domain answers through it, and nothing else opens the bucket.
Package subtitlestore is the clustarr-subtitles instantiation of pkg/records (loop spec §6.6): the loop requests and withdraws through it, the caption domain answers through it, and nothing else opens the bucket.
Package textcase cases titles.
Package textcase cases titles.
Package torznab is the Torznab/Newznab wire client: caps, search and error parsing, an HTTP client and the server-side encoders that are exact inverses of the parsers.
Package torznab is the Torznab/Newznab wire client: caps, search and error parsing, an HTTP client and the server-side encoders that are exact inverses of the parsers.
Package trailers is the record of an item's own trailer: the video a metadata provider names for a Movie or Series Plex's metadata service has no trailer for, fetched onto the media volume by the trailers agent and answered to Plex by the provider's extras route as a clip whose part is that file (talos, 2026-11-17: Plex held no trailer for 203 of 1,273 movies and 390 of 541 shows).
Package trailers is the record of an item's own trailer: the video a metadata provider names for a Movie or Series Plex's metadata service has no trailer for, fetched onto the media volume by the trailers agent and answered to Plex by the provider's extras route as a clip whose part is that file (talos, 2026-11-17: Plex held no trailer for 203 of 1,273 movies and 390 of 541 shows).
Package transcode is transcode's media vocabulary: the input model a plan is made from, and the types the standard (pkg/transcode/standard) and the in-process engine (pkg/transcode/engine) share.
Package transcode is transcode's media vocabulary: the input model a plan is made from, and the types the standard (pkg/transcode/standard) and the in-process engine (pkg/transcode/engine) share.
donoraudio
Package donoraudio cuts an audio donor down to the tracks a graft needs (anime dual-audio spec §7.2; loop spec §4.12): the import agent reduces a donor at import, and the graft run reduces a donor imported before it did.
Package donoraudio cuts an audio donor down to the tracks a graft needs (anime dual-audio spec §7.2; loop spec §4.12): the import agent reduces a donor at import, and the graft run reduces a donor imported before it did.
drminfo
Package drminfo reads what the kernel's DRM driver says about a render node through the fdinfo of an open handle to it (Documentation/gpu/ drm-usage-stats.rst): the driver's name and how many video engines the device has, the capacity admission shares between Plex's streams and clustarr's encodes.
Package drminfo reads what the kernel's DRM driver says about a render node through the fdinfo of an open handle to it (Documentation/gpu/ drm-usage-stats.rst): the driver's name and how many video engines the device has, the capacity admission shares between Plex's streams and clustarr's encodes.
engine
Package engine runs a standard plan (pkg/transcode/standard) in-process on FFmpeg 9 through the ffgo fork: no ffmpeg subprocess.
Package engine runs a standard plan (pkg/transcode/standard) in-process on FFmpeg 9 through the ffgo fork: no ffmpeg subprocess.
selfcheck
Package selfcheck proves a transcoder image can do its class's work: it loads FFmpeg 9 and the ffgo shim in-process (pkg/ffruntime), finds every encoder, muxer and filter the class needs by name, and encodes with the CPU encoders.
Package selfcheck proves a transcoder image can do its class's work: it loads FFmpeg 9 and the ffgo shim in-process (pkg/ffruntime), finds every encoder, muxer and filter the class needs by name, and encodes with the CPU encoders.
standard
Package standard decides transcode's fixed transcoding standard (spec docs/superpowers/specs/2026-09-30-ffgo-transcoding-design.md §1, its layout since Version 2 docs/superpowers/specs/2026-10-06-mp4-standard-design.md) for the in-process engine: one MP4 holding HEVC Main 10 at the source's resolution and frame rate, tagged hvc1; HDR10 and HLG kept; Dolby Vision stripped to its base layer, or skipped when it has none; per language a Dolby surround track (E-AC-3 or AC-3 copied, else AC-3 5.1) plus an AAC 2.0 companion, or AAC alone for mono or stereo; chapters and tags kept.
Package standard decides transcode's fixed transcoding standard (spec docs/superpowers/specs/2026-09-30-ffgo-transcoding-design.md §1, its layout since Version 2 docs/superpowers/specs/2026-10-06-mp4-standard-design.md) for the in-process engine: one MP4 holding HEVC Main 10 at the source's resolution and frame rate, tagged hvc1; HDR10 and HLG kept; Dolby Vision stripped to its base layer, or skipped when it has none; per language a Dolby surround track (E-AC-3 or AC-3 copied, else AC-3 5.1) plus an AAC 2.0 companion, or AAC alone for mono or stereo; chapters and tags kept.
Package ytfetch fetches a video from its YouTube page in process: a trailer's picture and sound, as the files the site serves them in.
Package ytfetch fetches a video from its YouTube page in process: a trailer's picture and sound, as the files the site serves them in.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL