clustarr

module
v0.0.0-...-fd0b4fe Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: GPL-3.0

README

Clustarr

Clustarr is a Kubernetes-native, event-driven media stack in a single Go module. It manages a media collection end to end — finding releases on indexers, downloading them over usenet and BitTorrent, importing and naming the files, transcoding them to HEVC 10-bit with AAC audio, and fetching subtitles — with custom resources as the interface and a NATS JetStream bus underneath.

kubectl get movies,series,mediafiles -A is the ground truth: everything a user configures is a custom resource, and everything a user waits on is status on one — an item's grabs in its status.downloads[] (kubectl get movies --field-selector status.downloadPhase!= is the download queue), a file's transcode and subtitles in its MediaFile's status. There is also a server-rendered web UI (templ + htmx + SSE) as a view over those same resources — it writes no status and owns no CRD of its own, so anything it does, kubectl can do too. Its authentication mode is chosen explicitly (--auth-mode; the chart's ui.auth.mode) and it refuses to serve without one; the only mode, anonymous, serves every request without a login, so it must sit behind whatever ingress authentication the cluster already runs.

It takes its domain logic from the projects that already got it right: release parsing, quality decisions and naming from Radarr/Sonarr/Lidarr/Readarr, indexer definitions from Prowlarr, subtitle scoring from Bazarr, and an opinionated quality model that is a strict subset of the TRaSH Guides.

Status: pre-alpha

Every service reconciles against envtest, and the unify branch has rebuilt the process topology around one manager (below). What that does not mean yet:

  • Not proven end to end. Only the first milestone's end-to-end scenarios have ever run on a kind cluster; every scenario written since is in test/e2e, never executed.
  • Tests are behind the code on this branch. Its waves were built implementation-first (owner, 2026-10-07): the tests and guards they name are written in one batch afterwards, and until then go vet ./... fails on the test packages they broke.
  • Not deployed. Moving a running 0.4.x install onto this branch is a one-time cold cutover, done by hand (docs/runbooks/unify-cold-cutover.md).

The ordered milestones are in §16 of the design spec.

Services

Eight services, five binaries: cmd/manager runs every reconciler, cmd/agent --domain <d> runs each domain's workers, cmd/ui, cmd/markers and cmd/transcode (ADR-0018). The manager is the control plane and the only writer of every custom resource; agents execute the tasks it routes and report back over NATS, and never write the Kubernetes API (ADR-0019).

Service Responsibility Runs in
catalog Inventory (movies, series, episodes, music, books, comics, audiobooks), the metadata gateway, and release decisions: quality/delay profiles, search, grab and RSS matching. manager + agents catalog, events, metadata
import Everything entering the library: root-folder rescan, import lists and completed-download import. manager + agent import
index Aggregates Torznab/Newznab and Cardigann indexers into one search API, with a local release index, its blocklist and RSS sync. manager + agent index
grab Download clients: the embedded anacrolix BitTorrent engine and an embedded usenet pipeline; a grab is an entry in its item's status. manager + agents torrent-engine, usenet-engine
transcode Transcoding to HEVC (MP4, AAC plus Dolby surround) in-process on FFmpeg 9 through ffgo, on CPU, NVIDIA or Intel worker pools, with verification and replacement. manager + transcode pool and graft Jobs
caption Subtitle search, scoring, fetching and post-processing across providers — Bazarr's behaviour, distributed. manager + agent caption
markers Skip-segment detection (intros, credits) for Plex, in-process on ffgo and ONNX Runtime. markers
ui Server-rendered web UI (templ + htmx + SSE) and the Plex Custom Metadata Provider, over the same custom resources kubectl sees; never writes status and owns no CRD. ui

Two images carry them: ghcr.io/mediactl/clustarr (distroless, static: manager, ui) and ghcr.io/mediactl/clustarr/native (FROM scratch: agent, markers, transcode on FFmpeg 9's shared libraries). No image ships or runs ffmpeg, ffprobe or par2 (ADR-0017; usenet repair still runs a par2 binary, which the image does not carry, until par2go lands as a library). The queue-driven agents scale to zero on HorizontalPodAutoscalers the manager drives from its own External Metrics API (docs/autoscaling.md).

Architecture

Custom resources are the interface and the source of truth for desired state. A Movie is an object; so are Indexer, QualityProfile, RootFolder, DownloadClient and MediaFile, whose status carries each file's probe, transcode, subtitles and graft (ADR-0016), while an item's status carries its grabs (ADR-0019). Every lifecycle is a state machine in the manager's reconcile loop, and each object's status has exactly one writer, which makes ownership provable rather than conventional. The message bus carries what does not belong in etcd — tasks the manager admits and routes to an agent domain, rate-limited outbound work like indexer searches and metadata refreshes, delayed work such as grab delay windows, the release firehose, and the workers' answers, which land in compare-and-swap records the manager incorporates (ADR-0001). Transcodes run for hours and want a GPU, so they run on long-lived worker-pool Jobs per profile and hardware class, fed by a JetStream queue under the manager's admission (ADR-0009). Media itself never travels over the bus — every process that touches files shares one RWX volume at /data, so imports can hardlink and moves stay atomic (ADR-0006).

Quick start (kind)

Requires Go 1.27, Docker, kind and kubectl.

make kind-up    # create a kind cluster, mount ./.data at /data, install NATS with JetStream
make install    # server-side apply the 27 CRDs
make deploy     # the namespace, PVCs, RBAC, NATS, the manager, six agents, markers and the ui

Then:

kubectl api-resources --api-group=catalog.clustarr.io
kubectl get crds | grep clustarr.io

make kind-down tears the cluster back down. make docker-build docker-build-native builds the two images and make kind-load loads them; make run-dev instead runs the manager, one agent per domain and the ui as local processes against the current kube context and a NATS at $NATS_URL.

Other useful targets: make generate manifests (regenerate deepcopy, apply configurations, CRDs and RBAC), make native-assets (FFmpeg 9's libraries and the ffgo shim the native tests load), make test (unit, envtest and native suites), make lint, make build (the five binaries into bin/), make brand-gate. make help lists everything.

Repo layout

api/                  API types, one directory per group, all v1alpha1
  common/             shared Go types, no CRDs
  catalog/ index/ download/ transcode/ subtitle/
  applyconfiguration/ generated server-side-apply configurations, <group>/<version>
cmd/{manager,agent,ui,markers,transcode}/  the five binaries (internal/cli holds their command trees)
app/                  per service: manager/ and agent/ registrations over leaf packages;
                      remediation/ (the MediaFile loop), dispatch/, intake/, autoscale/, maintenance/
pkg/
  events/             JetStream bus: topology, natsbus, membus, contract suite, typed payloads
  records/            the compare-and-swap records workers answer in
  ffruntime/          the one FFmpeg runtime gate
  ...                 release parsing, quality, decisions, naming, metadata and subtitle clients
ui/                   the web UI and the Plex provider
config/               kustomize: crd, default, manager, rbac, autoscaling, nats, prometheus, postgres, e2e, samples
charts/clustarr/      Helm umbrella chart (NATS, optional CloudNativePG)
images/               Dockerfile.clustarr (manager, ui), Dockerfile.native (agent, markers, transcode), Dockerfile.e2e-fixtures
hack/                 kind.sh, dev-run.sh, native-assets.sh, image-checks.sh, brand-gate.sh, licence boilerplate
docs/
  superpowers/specs/  the design spec, its amendment and the designs since
  adr/                architecture decision records
  research/           the research notes behind the spec
  runbooks/           operator procedures

Documentation

  • Design spec — authoritative for API shapes, controller contracts, subject grammar, milestones, deferred work and risks; its dated "as built on the unify branch" notes say where the code has moved on.
  • Architecture decision records — the index, from NATS JetStream (ADR-0001) and GPL-3.0 (ADR-0002) through one manager and domain agents (ADR-0018) and agents that never write Kubernetes (ADR-0019), with each one's status.
  • Operations: autoscaling, observability, GPU nodes, the Helm chart and the cold cutover runbook.
  • Research notes — the comparisons the spec is built on: queue, indexers, downloads, metadata, naming, quality, subtitles, transcode, Kubernetes.

Licence

GPL-3.0-or-later. See LICENSE.

This is a deliberate choice, not a default. Clustarr ports logic directly from the *arr projects and Bazarr — release-title regexes, custom-format specifications, decision-engine ordering, naming grammars, subtitle scoring weights and hearing-impaired detection. All of those are GPL-3.0, and a port is a derivative work, so GPL-3.0 is the licence that makes the implementation strategy legal. Reimplementing them under a permissive licence would mean discarding a decade of accumulated edge cases. TRaSH Guides data is MIT and is marked as such where it is bundled. The reasoning is in ADR-0002.

Directories

Path Synopsis
api
clustarr/v1alpha1
Package v1alpha1 contains the v1alpha1 API of the clustarr.io group: IPTVProvider and IPTVChannel, Live TV (spec 2026-10-07).
Package v1alpha1 contains the v1alpha1 API of the clustarr.io group: IPTVProvider and IPTVChannel, Live TV (spec 2026-10-07).
common/v1alpha1
Package v1alpha1 holds the Go-only types shared by every Clustarr API group.
Package v1alpha1 holds the Go-only types shared by every Clustarr API group.
download/v1alpha1
Package v1alpha1 contains the v1alpha1 API of the download.clustarr.io group: DownloadClient.
Package v1alpha1 contains the v1alpha1 API of the download.clustarr.io group: DownloadClient.
index/v1alpha1
Package v1alpha1 contains the API Schema definitions for the index.clustarr.io v1alpha1 API group: Indexer, IndexerDefinition and IndexerProxy (owned by index).
Package v1alpha1 contains the API Schema definitions for the index.clustarr.io v1alpha1 API group: Indexer, IndexerDefinition and IndexerProxy (owned by index).
subtitle/v1alpha1
Package v1alpha1 contains the API Schema definitions for the subtitle.clustarr.io v1alpha1 API group (owner: caption).
Package v1alpha1 contains the API Schema definitions for the subtitle.clustarr.io v1alpha1 API group (owner: caption).
transcode/v1alpha1
Package v1alpha1 contains the API Schema definitions for the transcode.clustarr.io v1alpha1 API group (owner: transcode).
Package v1alpha1 contains the API Schema definitions for the transcode.clustarr.io v1alpha1 API group (owner: transcode).
app
autoscale
Package autoscale registers the manager's autoscaling (spec 2026-10-06 §9): the HPA reconciler, the External Metrics API server, its certificate manager, the work-queue gauge and the namespace guard.
Package autoscale registers the manager's autoscaling (spec 2026-10-06 §9): the HPA reconciler, the External Metrics API server, its certificate manager, the work-queue gauge and the namespace guard.
autoscale/controller
Package controller is the manager's autoscale reconciler (spec 2026-10-06 §9.5): one autoscaling/v2 HorizontalPodAutoscaler per Deployment labelled autoscale.clustarr.io/domain in the manager's namespace, applied under clustarr-autoscale.
Package controller is the manager's autoscale reconciler (spec 2026-10-06 §9.5): one autoscaling/v2 HorizontalPodAutoscaler per Deployment labelled autoscale.clustarr.io/domain in the manager's namespace, applied under clustarr-autoscale.
autoscale/extmetrics
Package extmetrics is the External Metrics API inside cmd/manager (spec 2026-10-06 §9.4): external.metrics.k8s.io/v1beta1 serving one metric, clustarr_consumer_lag{stream,consumer}, hand-rolled on net/http and crypto/tls -- no k8s.io/apiserver, k8s.io/metrics or k8s.io/kube-aggregator -- with front-proxy client-certificate authentication, a self-generated CA kept in a Secret and injected as the APIService's caBundle, the work-queue gauge, and the guard that removes the APIService when the release namespace is deleted.
Package extmetrics is the External Metrics API inside cmd/manager (spec 2026-10-06 §9.4): external.metrics.k8s.io/v1beta1 serving one metric, clustarr_consumer_lag{stream,consumer}, hand-rolled on net/http and crypto/tls -- no k8s.io/apiserver, k8s.io/metrics or k8s.io/kube-aggregator -- with front-proxy client-certificate authentication, a self-generated CA kept in a Secret and injected as the APIService's caBundle, the work-queue gauge, and the guard that removes the APIService when the release namespace is deleted.
caption/agent
Package agent is the agent's caption domain (spec §3.5.3): caption-fetch-high and caption-fetch-normal, bounded by the shared KV token bucket clustarr-provider-throttle rather than by replicas.
Package agent is the agent's caption domain (spec §3.5.3): caption-fetch-high and caption-fetch-normal, bounded by the shared KV token bucket clustarr-provider-throttle rather than by replicas.
caption/controller/subtitleprofile
Package subtitleprofile reconciles SubtitleProfile's own status (loop spec §2.13): it validates each profile -- a duplicate spec.default, a language key that does not match its canonical derivation, a filter that does not compile -- counts the MediaFiles the remediation loop planned with it (through the remediation.mediafile.subtitleProfile index), and marks a profile whose selector also matches files another profile wins (Overlap).
Package subtitleprofile reconciles SubtitleProfile's own status (loop spec §2.13): it validates each profile -- a duplicate spec.default, a language key that does not match its canonical derivation, a filter that does not compile -- counts the MediaFiles the remediation loop planned with it (through the remediation.mediafile.subtitleProfile index), and marks a profile whose selector also matches files another profile wins (Overlap).
caption/controller/subtitleprovider
Package subtitleprovider reconciles SubtitleProvider: ruling R2 makes it the ONLY writer of SubtitleProvider.status.
Package subtitleprovider reconciles SubtitleProvider: ruling R2 makes it the ONLY writer of SubtitleProvider.status.
caption/datapath
Package datapath maps the logical /data paths stored in CRDs to where the media volume is mounted in this process (--data-dir).
Package datapath maps the logical /data paths stored in CRDs to where the media volume is mounted in this process (--data-dir).
caption/manager
Package manager is caption's manager-side registration (spec §4.2.1): the slim SubtitleProfile reconciler, its Bootstrap and the loop's Wake that feeds it, and the SubtitleProvider controller (the only writer of provider status, ruling R2).
Package manager is caption's manager-side registration (spec §4.2.1): the slim SubtitleProfile reconciler, its Bootstrap and the loop's Wake that feeds it, and the SubtitleProvider controller (the only writer of provider status, ruling R2).
caption/providerset
Package providerset turns SubtitleProvider custom resources, and the Secrets they reference, into pkg/subtitles.Provider clients.
Package providerset turns SubtitleProvider custom resources, and the Secrets they reference, into pkg/subtitles.Provider clients.
caption/providerset/build
Package build constructs the subtitle provider clients the fetch worker searches with -- OpenSubtitles.com, Gestdown, SubDL, SubSource and the embedded reader -- and caches each until its spec or Secret changes, sharing the OpenSubtitles login through the throttle KV (TokenCache).
Package build constructs the subtitle provider clients the fetch worker searches with -- OpenSubtitles.com, Gestdown, SubDL, SubSource and the embedded reader -- and caches each until its spec or Secret changes, sharing the OpenSubtitles login through the throttle KV (TokenCache).
caption/status
Package status is the single place caption declares what its field manager owns on the two subtitle.clustarr.io kinds it still writes: SubtitleProfile and SubtitleProvider.
Package status is the single place caption declares what its field manager owns on the two subtitle.clustarr.io kinds it still writes: SubtitleProfile and SubtitleProvider.
caption/subtitleplan
Package subtitleplan is the subtitles remediation's pure planner (loop spec §6.4).
Package subtitleplan is the subtitles remediation's pure planner (loop spec §6.4).
caption/throttle
Package throttle is caption's shared, KV-backed provider throttle: spec §6.5's "shared KV token bucket (clustarr-provider-throttle holds JWT + remaining/reset) so N workers never exceed 5 req/s", plus the throttle window (pkg/subtitles.ThrottleFor's duration table) and Bazarr's five-errors-in-120s escalation (research note §10).
Package throttle is caption's shared, KV-backed provider throttle: spec §6.5's "shared KV token bucket (clustarr-provider-throttle holds JWT + remaining/reset) so N workers never exceed 5 req/s", plus the throttle window (pkg/subtitles.ThrottleFor's duration table) and Bazarr's five-errors-in-120s escalation (research note §10).
caption/worker/fetch
Package fetch is caption's subtitle fetch worker: the consumer of clustarr.work.caption.fetch.<priority>.<mediafile-uid>.<langKey> on caption-fetch-high and caption-fetch-normal (loop spec §6.7).
Package fetch is caption's subtitle fetch worker: the consumer of clustarr.work.caption.fetch.<priority>.<mediafile-uid>.<langKey> on caption-fetch-high and caption-fetch-normal (loop spec §6.7).
catalog/agent
Package agent is the leaf every agent domain's registration shares (spec §4.2.1): the Registration a domain's Register returns, and the one registrar and startup assertion for the field indexes a domain declares.
Package agent is the leaf every agent domain's registration shares (spec §4.2.1): the Registration a domain's Register returns, and the one registrar and startup assertion for the field indexes a domain declares.
catalog/agent/catalog
Package catalog is the agent's catalog domain (spec §3.5.3, as ADR-0019 amends it): the catalog-search-high, catalog-search-normal and catalog-artwork-render consumers on CLUSTARR_WORK_CATALOG.
Package catalog is the agent's catalog domain (spec §3.5.3, as ADR-0019 amends it): the catalog-search-high, catalog-search-normal and catalog-artwork-render consumers on CLUSTARR_WORK_CATALOG.
catalog/agent/events
Package events is the agent's events domain (spec §3.5.3, §3.5.4, as ADR-0019 §7.7 amends them): the consumers of the Limits streams that cannot buffer through a scale to zero: only catalog-rss-matcher (CLUSTARR_RELEASES), which sends its matches to their owners as candidates.
Package events is the agent's events domain (spec §3.5.3, §3.5.4, as ADR-0019 §7.7 amends them): the consumers of the Limits streams that cannot buffer through a scale to zero: only catalog-rss-matcher (CLUSTARR_RELEASES), which sends its matches to their owners as candidates.
catalog/agent/metadata
Package metadata is the agent's metadata domain (spec §3.5.3): the metadata gateway (rpc.catalog.metadata.* and catalog-metadata, answering in clustarr-item-metadata), catalog-markers (answering into clustarr-markers) and catalog-artwork-fetch (storing originals).
Package metadata is the agent's metadata domain (spec §3.5.3): the metadata gateway (rpc.catalog.metadata.* and catalog-metadata, answering in clustarr-item-metadata), catalog-markers (answering into clustarr-markers) and catalog-artwork-fetch (storing originals).
catalog/artwork
Package artwork is the light, shared half of the artwork store (spec §B, as ADR-0019 §7.1-§7.2 and D13 changed it): what the manager's item keys, the Artist and Author reconcilers, the metadata gateway's fetcher and the renderer share, and nothing that decodes an image, so the manager links no image codec (design 2026-10-06 §4.3 C1).
Package artwork is the light, shared half of the artwork store (spec §B, as ADR-0019 §7.1-§7.2 and D13 changed it): what the manager's item keys, the Artist and Author reconcilers, the metadata gateway's fetcher and the renderer share, and nothing that decodes an image, so the manager links no image codec (design 2026-10-06 §4.3 C1).
catalog/backlog
Package backlog is the backlog search's pure half (docs/superpowers/specs/2026-11-10-backlog-search-design.md): Select, a cycle's choice of the wanted items whose last live search is oldest, and Book, the leader-local grants the BacklogSearch controller (app/catalog/controller/backlogsearch) gives and the search stage (app/remediation/search) reads and spends.
Package backlog is the backlog search's pure half (docs/superpowers/specs/2026-11-10-backlog-search-design.md): Select, a cycle's choice of the wanted items whose last live search is oldest, and Book, the leader-local grants the BacklogSearch controller (app/catalog/controller/backlogsearch) gives and the search stage (app/remediation/search) reads and spends.
catalog/controller/album
Package album implements the Album controller: the Album's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4, D6), path, track-listing selection, the file/download rollup and the start-time idle rule (IdleInputs, design D14), plus a thin Reconciler around them.
Package album implements the Album controller: the Album's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4, D6), path, track-listing selection, the file/download rollup and the start-time idle rule (IdleInputs, design D14), plus a thin Reconciler around them.
catalog/controller/artist
Package artist implements the Artist's item path on the remediation loop (2026-11-10 design D2, §5.1; rollup.Item): metadata staleness (publishing a MetadataTask, admitted by the dispatch ledger, when the cache is missing or past its RefreshTTL), path, the fan-out of an Artist into owned Album objects per spec §4.2 behind the child-sync memo (app/remediation/childsync), the container rollup (rollup.Container) and the folder scan a new artist's first albums ask for, mirroring app/catalog/controller/series (read that package first -- this one follows it, not the other way around).
Package artist implements the Artist's item path on the remediation loop (2026-11-10 design D2, §5.1; rollup.Item): metadata staleness (publishing a MetadataTask, admitted by the dispatch ledger, when the cache is missing or past its RefreshTTL), path, the fan-out of an Artist into owned Album objects per spec §4.2 behind the child-sync memo (app/remediation/childsync), the container rollup (rollup.Container) and the folder scan a new artist's first albums ask for, mirroring app/catalog/controller/series (read that package first -- this one follows it, not the other way around).
catalog/controller/audiobook
Package audiobook implements the Audiobook controller: the Audiobook's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4), naming, the MediaFile/Download rollup and the start-time idle rule (Path, FileState, PartRefs, IdleInputs) as pure functions, and a thin Reconciler around them, following app/catalog/controller/movie -- task G2-3's assigned precedent for a leaf kind with no parent fan-out (spec §8.1, amendment-1 §A1.5).
Package audiobook implements the Audiobook controller: the Audiobook's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4), naming, the MediaFile/Download rollup and the start-time idle rule (Path, FileState, PartRefs, IdleInputs) as pure functions, and a thin Reconciler around them, following app/catalog/controller/movie -- task G2-3's assigned precedent for a leaf kind with no parent fan-out (spec §8.1, amendment-1 §A1.5).
catalog/controller/author
Package author implements the Author's item path on the remediation loop (2026-11-10 design D2, §5.1; rollup.Item): metadata staleness (publishing a MetadataTask, admitted by the dispatch ledger, when the cache is missing or past its RefreshTTL), path, the works-listing RPC fan-out into owned Book objects per spec §4.2's Author/Book pair, gated by AuthorSpec.MetadataProfile, behind the child-sync memo (app/remediation/childsync), the container rollup (rollup.Container) and the folder scan a new author's first books ask for.
Package author implements the Author's item path on the remediation loop (2026-11-10 design D2, §5.1; rollup.Item): metadata staleness (publishing a MetadataTask, admitted by the dispatch ledger, when the cache is missing or past its RefreshTTL), path, the works-listing RPC fan-out into owned Book objects per spec §4.2's Author/Book pair, gated by AuthorSpec.MetadataProfile, behind the child-sync memo (app/remediation/childsync), the container rollup (rollup.Container) and the folder scan a new author's first books ask for.
catalog/controller/backlogsearch
Package backlogsearch is the BacklogSearch controller (docs/superpowers/specs/2026-11-10-backlog-search-design.md): every spec.interval it lists its namespace's backlog through itemread.BacklogIndex, chooses the searches a cycle starts (backlog.Select), grants them in the leader's book and wakes their keys, where the search planner dispatches each as a live search behind the namespace's pace and the dispatch ledger.
Package backlogsearch is the BacklogSearch controller (docs/superpowers/specs/2026-11-10-backlog-search-design.md): every spec.interval it lists its namespace's backlog through itemread.BacklogIndex, chooses the searches a cycle starts (backlog.Select), grants them in the leader's book and wakes their keys, where the search planner dispatches each as a live search behind the namespace's pace and the dispatch ledger.
catalog/controller/book
Package book implements the Book controller: the Book's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4), file state and the start-time idle rule (IdleInputs, design D14) as pure functions, and a thin Reconciler around them, covering BOTH shapes book_types.go:159-161 allows -- a Book fanned out from an Author (spec.authorRef set, created by the author package's Reconciler) and a standalone Book (spec.authorRef nil, created directly by a user/import list, never owned by anything).
Package book implements the Book controller: the Book's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4), file state and the start-time idle rule (IdleInputs, design D14) as pure functions, and a thin Reconciler around them, covering BOTH shapes book_types.go:159-161 allows -- a Book fanned out from an Author (spec.authorRef set, created by the author package's Reconciler) and a standalone Book (spec.authorRef nil, created directly by a user/import list, never owned by anything).
catalog/controller/comic
Package comic implements the Comic controller: issue numbering and naming, the desired-issue-set projection and pure Path helper, and a thin Reconciler that fans a Comic out into owned Issue objects, mirroring app/catalog/controller/series exactly for the Comic -> Issue pair (task G2-2, see .superpowers/sdd/2026-09-23-phases-efg/g2-controllers-brief.md).
Package comic implements the Comic controller: issue numbering and naming, the desired-issue-set projection and pure Path helper, and a thin Reconciler that fans a Comic out into owned Issue objects, mirroring app/catalog/controller/series exactly for the Comic -> Issue pair (task G2-2, see .superpowers/sdd/2026-09-23-phases-efg/g2-controllers-brief.md).
catalog/controller/episode
Package episode implements the Episode controller: phase as a pure function, and a thin Reconciler around it plus the file/download rollup from a watched MediaFile and Download.
Package episode implements the Episode controller: phase as a pure function, and a thin Reconciler around it plus the file/download rollup from a watched MediaFile and Download.
catalog/controller/folderscan
Package folderscan asks, once, for a scan of an item's folder when the item first lists its children: Sonarr's RefreshSeries, then RescanSeries.
Package folderscan asks, once, for a scan of an item's folder when the item first lists its children: Sonarr's RefreshSeries, then RescanSeries.
catalog/controller/issue
Package issue implements the Issue controller: the Issue's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4; until then Mylar's state enum, issue.State), and a thin Reconciler around it plus the file/download rollup from its MediaFiles and its Comic's grab entries, run as the remediation loop's Issue item key (loop spec §3.12) -- mirroring app/catalog/controller/episode exactly for the Comic -> Issue pair (task G2-2), the start-time skip of idle Issues included (IdleInputs, design D14).
Package issue implements the Issue controller: the Issue's view of the shared leaf phase (PhaseInputs over rollup.LeafPhase, 2026-11-10 design D4; until then Mylar's state enum, issue.State), and a thin Reconciler around it plus the file/download rollup from its MediaFiles and its Comic's grab entries, run as the remediation loop's Issue item key (loop spec §3.12) -- mirroring app/catalog/controller/episode exactly for the Comic -> Issue pair (task G2-2), the start-time skip of idle Issues included (IdleInputs, design D14).
catalog/controller/itempass
Package itempass is the contract between the remediation loop's item stages and the item kinds' own renderers (ADR-0019 §7.0, ruling R5).
Package itempass is the contract between the remediation loop's item stages and the item kinds' own renderers (ADR-0019 §7.0, ruling R5).
catalog/controller/itemstatus
Package itemstatus is the remediation loop's one item status write (loop spec §3.12, applyItemStatus): the status of any of the eight item kinds -- a Movie's, Episode's, Album's, Book's, Audiobook's or Issue's, and the grab owners Series' and Comic's -- under catalog, preconditioned on the object the reconcile planned from.
Package itemstatus is the remediation loop's one item status write (loop spec §3.12, applyItemStatus): the status of any of the eight item kinds -- a Movie's, Episode's, Album's, Book's, Audiobook's or Issue's, and the grab owners Series' and Comic's -- under catalog, preconditioned on the object the reconcile planned from.
catalog/controller/lookuphold
Package lookuphold holds an item's next metadata lookup back after one that failed, for as long as the lookup has been failing: the track listing every Album's pass asks the gateway for, and the album listing every Artist's.
Package lookuphold holds an item's next metadata lookup back after one that failed, for as long as the lookup has been failing: the track listing every Album's pass asks the gateway for, and the album listing every Artist's.
catalog/controller/mediafile
Package mediafile is the MediaFile domain the remediation loop calls (ADR-0016): the probe's decision (PlanProbe, judgeProbe), naming (LoadNaming, RenderNaming), the labels catalog mirrors, and the indexes and map functions the loop's sources read.
Package mediafile is the MediaFile domain the remediation loop calls (ADR-0016): the probe's decision (PlanProbe, judgeProbe), naming (LoadNaming, RenderNaming), the labels catalog mirrors, and the indexes and map functions the loop's sources read.
catalog/controller/metadatarefresh
Package metadatarefresh is the clustarr.io/refresh-metadata handler: one metadata-only controller per kind with a status.metadata of its own, which publishes a forced MetadataTask for the gateway and consumes the annotation.
Package metadatarefresh is the clustarr.io/refresh-metadata handler: one metadata-only controller per kind with a status.metadata of its own, which publishes a forced MetadataTask for the gateway and consumes the annotation.
catalog/controller/movie
Package movie implements the Movie controller: availability, naming and phase as pure functions (Availability, Path, Phase, and the rollup.go re-exports FileState/DownloadOverlay), and a thin Reconciler around them per spec §8.1 and §8.8.
Package movie implements the Movie controller: availability, naming and phase as pure functions (Availability, Path, Phase, and the rollup.go re-exports FileState/DownloadOverlay), and a thin Reconciler around them per spec §8.1 and §8.8.
catalog/controller/overlayprofile
Package overlayprofile reconciles OverlayProfile (spec §C.4): which Movies and Series each profile draws rating badges onto, and when the renderer (catalog --role artwork, app/catalog/worker/artwork) has to be told.
Package overlayprofile reconciles OverlayProfile (spec §C.4): which Movies and Series each profile draws rating badges onto, and when the renderer (catalog --role artwork, app/catalog/worker/artwork) has to be told.
catalog/controller/rollup
Package rollup holds the pure functions the item reconcilers share to fold their files and grab entries into their own status, written once with one table test each and imported from every item package rather than duplicated between them.
Package rollup holds the pure functions the item reconcilers share to fold their files and grab entries into their own status, written once with one table test each and imported from every item package rather than duplicated between them.
catalog/controller/search
Package search owns the Search custom resource: the interactive search trigger from spec §8.2.
Package search owns the Search custom resource: the interactive search trigger from spec §8.2.
catalog/controller/series
Package series implements the Series controller: episode numbering and naming, the add-time and steady-state monitoring decision, the season rollup and phase as pure functions, and a thin Reconciler that fans a Series out into owned Episode objects per spec §8.1.
Package series implements the Series controller: episode numbering and naming, the add-time and steady-state monitoring decision, the season rollup and phase as pure functions, and a thin Reconciler that fans a Series out into owned Episode objects per spec §8.1.
catalog/controller/wantedcron
Package wantedcron is spec §6.1's "wantedcron (12h missing/cutoff-unmet scan with per-item >=6h gap and Attempts backoff 6h*2^n capped 7d)".
Package wantedcron is spec §6.1's "wantedcron (12h missing/cutoff-unmet scan with per-item >=6h gap and Attempts backoff 6h*2^n capped 7d)".
catalog/delay
Package delay resolves which DelayProfile governs a grab (spec §8.2).
Package delay resolves which DelayProfile governs a grab (spec §8.2).
catalog/episodeorder
Package episodeorder states which episode numbering a Series uses.
Package episodeorder states which episode numbering a Series uses.
catalog/grabplan
Package grabplan is the owner key's grab decision (ADR-0019 §6.6, §3.5 P8, P13-P20, P23-P25): pure, it turns scored candidates -- an item's search answers in clustarr-searches, the RSS matcher's matches and a Search's picks from the candidate intake, and the delayed grabs status keeps -- into new Pending entries, a pending grab held for its delay, or nothing.
Package grabplan is the owner key's grab decision (ADR-0019 §6.6, §3.5 P8, P13-P20, P23-P25): pure, it turns scored candidates -- an item's search answers in clustarr-searches, the RSS matcher's matches and a Search's picks from the candidate intake, and the delayed grabs status keeps -- into new Pending entries, a pending grab held for its delay, or nothing.
catalog/grabsource
Package grabsource maps a release to how an engine fetches it: the one mapping every grab uses (ADR-0019 §6.6: the owner key's grab planner, whose candidates come from a search, the RSS matcher or a Search's pick).
Package grabsource maps a release to how an engine fetches it: the one mapping every grab uses (ADR-0019 §6.6: the owner key's grab planner, whose candidates come from a search, the RSS matcher or a Search's pick).
catalog/history
Package history is what the catalog's dead-letter and history machinery share between its processes (design 2026-10-06 §4.3 C8):
Package history is what the catalog's dead-letter and history machinery share between its processes (design 2026-10-06 §4.3 C8):
catalog/history/replay
Package replay is the clustarr.io/replay handler: a metadata-only controller per annotatable kind (ReplayKinds).
Package replay is the clustarr.io/replay handler: a metadata-only controller per annotatable kind (ReplayKinds).
catalog/imagesets
Package imagesets is the image-set remediation's protocol (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): the clustarr-image-sets record both halves share, the task the loop publishes, and the pure planner that decides when a Movie or Series is asked for a set and incorporates the worker's answer into status.imageSet.
Package imagesets is the image-set remediation's protocol (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): the clustarr-image-sets record both halves share, the task the loop publishes, and the pure planner that decides when a Movie or Series is asked for a set and incorporates the worker's answer into status.imageSet.
catalog/itemread
Package itemread is the manager's cache reads of a grab or search target (ADR-0019 §6.6, §7.3, §7.4): what the grab stage, the search stage and the Search controller each need to know about an item beside its own status -- its grab configuration (quality profile, delay profile, tags, its own or its container's), its current file as pkg/decision reads it, its grab owner and the entries covering it, whether it and its container are monitored, whether it is out, and the namespace's DownloadClients and Indexers.
Package itemread is the manager's cache reads of a grab or search target (ADR-0019 §6.6, §7.3, §7.4): what the grab stage, the search stage and the Search controller each need to know about an item beside its own status -- its grab configuration (quality profile, delay profile, tags, its own or its container's), its current file as pkg/decision reads it, its grab owner and the entries covering it, whether it and its container are monitored, whether it is out, and the namespace's DownloadClients and Indexers.
catalog/manager
Package manager is catalog's manager-side registration (spec §4.2.1): every catalog reconciler, the two seeding Bootstraps, the wanted sweep, the segment planner, and R9's two cluster singletons -- the clustarr.io/replay controllers and the artwork Reaper.
Package manager is catalog's manager-side registration (spec §4.2.1): every catalog reconciler, the two seeding Bootstraps, the wanted sweep, the segment planner, and R9's two cluster singletons -- the clustarr.io/replay controllers and the artwork Reaper.
catalog/markers
Package markers keeps MediaFile status.markers: a file's skip segments from TheIntroDB (spec 2026-09-30 plex-analyze-bypass §3) merged with clustarr's own segment analysis.
Package markers keeps MediaFile status.markers: a file's skip segments from TheIntroDB (spec 2026-09-30 plex-analyze-bypass §3) merged with clustarr's own segment analysis.
catalog/metadata/artwork
Package artwork is the metadata gateway's half of the artwork store (spec §B.3-§B.7, as ADR-0019 §7.1 changed it): the catalog-artwork-fetch consumer, which stores exactly the originals an item key's fetch task names into events.BucketArtwork, each with its complete metadata (app/catalog/artwork.ObjectMeta), deletes the originals of the types the task drops, and records each failure in the item's clustarr-item-metadata record.
Package artwork is the metadata gateway's half of the artwork store (spec §B.3-§B.7, as ADR-0019 §7.1 changed it): the catalog-artwork-fetch consumer, which stores exactly the originals an item key's fetch task names into events.BucketArtwork, each with its complete metadata (app/catalog/artwork.ObjectMeta), deletes the originals of the types the task drops, and records each failure in the item's clustarr-item-metadata record.
catalog/metadatainputs
Package metadatainputs is what a metadata refresh is asked for and how its answer is matched to the ask (ADR-0019 §7.1, A5.1): the inputs of an item's MetadataTask v2 (its provider ids, the document schema version the manager wants, and a forced refresh's epoch), the task's envelope and Msg-Id, and the rule by which a clustarr-item-metadata record is incorporated into status.metadata.
Package metadatainputs is what a metadata refresh is asked for and how its answer is matched to the ask (ADR-0019 §7.1, A5.1): the inputs of an item's MetadataTask v2 (its provider ids, the document schema version the manager wants, and a forced refresh's epoch), the task's envelope and Msg-Id, and the rule by which a clustarr-item-metadata record is incorporated into status.metadata.
catalog/metadataset
Package metadataset renders catalog-metadata's one complete set on an item (ADR-0019 §7.0, §7.1): status.metadata and status.artwork, declared together in every apply because server-side apply releases whatever a manager's apply omits.
Package metadataset renders catalog-metadata's one complete set on an item (ADR-0019 §7.0, §7.1): status.metadata and status.artwork, declared together in every apply because server-side apply releases whatever a manager's apply omits.
catalog/overlayplan
Package overlayplan decides a Movie's or Series' rating overlay: the winning OverlayProfile (Winner, Selects), the badges it draws (Badges) and a dubbed anime's mark after them (Item.Dubbed, from the MAL-Dubs index on the context), the digest of its inputs (InputsDigest, ProfileHash, RenderVersion), the Plan that combines them, and the RenderOverlay task ([Publish]).
Package overlayplan decides a Movie's or Series' rating overlay: the winning OverlayProfile (Winner, Selects), the badges it draws (Badges) and a dubbed anime's mark after them (Item.Dubbed, from the MAL-Dubs index on the context), the digest of its inputs (InputsDigest, ProfileHash, RenderVersion), the Plan that combines them, and the RenderOverlay task ([Publish]).
catalog/searchoutcome
Package searchoutcome holds the status.indexerOutcomes names the search worker reserves, which the Search controller reads back.
Package searchoutcome holds the status.indexerOutcomes names the search worker reserves, which the Search controller reads back.
catalog/searchplan
Package searchplan is the item key's search planner (ADR-0019 §7.3, §5.1, §5.4; §3.5 P1-P7, P11, P12): pure, it decides whether a searchable item is due a search, dispatches it under admission and pacing, and keeps its bookkeeping -- the per-item half of the wanted sweep the catalog agent's WantedScan expansion used to run.
Package searchplan is the item key's search planner (ADR-0019 §7.3, §5.1, §5.4; §3.5 P1-P7, P11, P12): pure, it decides whether a searchable item is due a search, dispatches it under admission and pacing, and keeps its bookkeeping -- the per-item half of the wanted sweep the catalog agent's WantedScan expansion used to run.
catalog/segmentplan
Package segmentplan plans clustarr's own segment analysis (spec 2026-10-01 segment detection §4): PlanMessage, which the remediation loop's markers planner publishes when a file's analysis is due, and the catalog-segments-plan Planner that asks markers-worker for a season or a movie, reading the Episode and MediaFile field indexes of the manager's cache; and Sweeper, which deletes the clustarr-segments records of files that are gone (loop spec §4.11).
Package segmentplan plans clustarr's own segment analysis (spec 2026-10-01 segment detection §4): PlanMessage, which the remediation loop's markers planner publishes when a file's analysis is due, and the catalog-segments-plan Planner that asks markers-worker for a season or a movie, reading the Episode and MediaFile field indexes of the manager's cache; and Sweeper, which deletes the clustarr-segments records of files that are gone (loop spec §4.11).
catalog/seriessearch
Package seriessearch is the manager's index of planned Searches by their container (Wave S, series search design §4.3): a Search on a series with grabBest (SearchSpec.PlannedBySeries) is the Series key's to plan, and the Series finds the Searches naming it, and the Search controller the Searches a Series serves, through IndexSearchesBySeries.
Package seriessearch is the manager's index of planned Searches by their container (Wave S, series search design §4.3): a Search on a series with grabBest (SearchSpec.PlannedBySeries) is the Series key's to plan, and the Series finds the Searches naming it, and the Search controller the Searches a Series serves, through IndexSearchesBySeries.
catalog/status
Package status declares which catalog field manager owns which leaves of a catalog item's status where more than one catalog writer shares an object, restated as data so a managedFields test can hold each manager to its set -- the pattern app/grab/status, app/transcode/status and app/caption/status follow for their kinds.
Package status declares which catalog field manager owns which leaves of a catalog item's status where more than one catalog writer shares an object, restated as data so a managedFields test can hold each manager to its set -- the pattern app/grab/status, app/transcode/status and app/caption/status follow for their kinds.
catalog/worker/artwork
Package artwork is the renderer (the agent's catalog domain, spec §C.6, as ADR-0019 §7.2 changed it): the durable catalog-artwork-render consumer that draws a Movie's or Series' rating badges onto its stored original poster and stores the result.
Package artwork is the renderer (the agent's catalog domain, spec §C.6, as ADR-0019 §7.2 changed it): the durable catalog-artwork-render consumer that draws a Movie's or Series' rating badges onto its stored original poster and stores the result.
catalog/worker/history
Package history is the catalog's two history consumers -- the Sink (catalog-history) and the DLQProjector (clustarr-dlq-projector), "clustarr.io" §13's history sink and dead-letter projector.
Package history is the catalog's two history consumers -- the Sink (catalog-history) and the DLQProjector (clustarr-dlq-projector), "clustarr.io" §13's history sink and dead-letter projector.
catalog/worker/imagesets
Package imagesets is the metadata agent's image-set worker (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): the catalog-imageset durable's handler asks the registry's image-set providers (MediUX, through its cache) for one Movie's or Series' set and answers into clustarr-image-sets by compare-and-swap.
Package imagesets is the metadata agent's image-set worker (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): the catalog-imageset durable's handler asks the registry's image-set providers (MediUX, through its cache) for one Movie's or Series' set and answers into clustarr-image-sets by compare-and-swap.
catalog/worker/markers
Package markers is the catalog-markers durable's handler (spec 2026-09-30 plex-analyze-bypass §3; loop spec 2026-10-06 §4.12): Handler asks the gateway's markers providers (TheIntroDB) for one MediaFile's skip segments and answers into the file's clustarr-markers record by compare-and-swap.
Package markers is the catalog-markers durable's handler (spec 2026-09-30 plex-analyze-bypass §3; loop spec 2026-10-06 §4.12): Handler asks the gateway's markers providers (TheIntroDB) for one MediaFile's skip segments and answers into the file's clustarr-markers record by compare-and-swap.
catalog/worker/rssmatcher
Package rssmatcher is spec §8.7's first clause, as ADR-0019 (§6.6 step 1, A4.4) amends it: the RSS matcher maps each release to the monitored items it could satisfy (ids or normalized title+year via informer indexes), runs pkg/decision's release rules (EvaluateRelease) for the single release, and sends each approved match to the item's grab owner as a Candidate on the CLUSTARR_INTAKE stream.
Package rssmatcher is spec §8.7's first clause, as ADR-0019 (§6.6 step 1, A4.4) amends it: the RSS matcher maps each release to the monitored items it could satisfy (ids or normalized title+year via informer indexes), runs pkg/decision's release rules (EvaluateRelease) for the single release, and sends each approved match to the item's grab owner as a Candidate on the CLUSTARR_INTAKE stream.
catalog/worker/titleindex
Package titleindex is the leaf both the RSS matcher and the search worker read the catalog's title and season indexes through (Wave S): the index names, their value functions and the keys a lookup builds.
Package titleindex is the leaf both the RSS matcher and the search worker read the catalog's title and season indexes through (Wave S): the index names, their value functions and the keys a lookup builds.
dispatch
Package dispatch is the manager's admission for every task it publishes to an agent (ADR-0019 §5.4, §5.5, §8.3, §8.4): the dispatch Ledger, its budgets and unattended detection, and the DeliveryBook of nak and term advisories that planners render into a CR's Dispatch block.
Package dispatch is the manager's admission for every task it publishes to an agent (ADR-0019 §5.4, §5.5, §8.3, §8.4): the dispatch Ledger, its budgets and unattended detection, and the DeliveryBook of nak and term advisories that planners render into a CR's Dispatch block.
grab/agent/torrent
Package torrent is the agent's torrent-engine domain (spec §3.5.3): one StatefulSet replica's embedded anacrolix client, its command handler, its transfer and engine records, and its progress publisher (ADR-0019 §6.7).
Package torrent is the agent's torrent-engine domain (spec §3.5.3): one StatefulSet replica's embedded anacrolix client, its command handler, its transfer and engine records, and its progress publisher (ADR-0019 §6.7).
grab/agent/usenet
Package usenet is the agent's usenet-engine domain (spec §3.5.3): the Deployment's embedded usenet pipeline (NNTP pools, yEnc assembly, PAR2 repair and extraction), its command handler, its transfer and engine records, and its progress publisher (ADR-0019 §6.7).
Package usenet is the agent's usenet-engine domain (spec §3.5.3): the Deployment's embedded usenet pipeline (NNTP pools, yEnc assembly, PAR2 repair and extraction), its command handler, its transfer and engine records, and its progress publisher (ADR-0019 §6.7).
grab/controller/downloadclient
The +kubebuilder:rbac markers for this package live in doc.go, at package level -- see that file for why.
The +kubebuilder:rbac markers for this package live in doc.go, at package level -- see that file for why.
grab/engine
Package engine holds what grab's two transfer engines (app/grab/engine/torrent, app/grab/engine/usenet) share (ADR-0019 §6.7): the journal each keeps per transfer, the command handler that applies the manager's seq-fenced desired-state commands, the reporter that writes the transfer and engine records, and the 1 Hz progress publisher.
Package engine holds what grab's two transfer engines (app/grab/engine/torrent, app/grab/engine/usenet) share (ADR-0019 §6.7): the journal each keeps per transfer, the command handler that applies the manager's seq-fenced desired-state commands, the reporter that writes the transfer and engine records, and the 1 Hz progress publisher.
grab/engine/torrent
Package torrent is grab's torrent engine (ADR-0019 §6.7): the engine.Transfers over its embedded client -- the anacrolix client and its re-attach descriptors -- which the shared command handler (app/grab/engine) drives with the manager's seq-fenced desired-state commands.
Package torrent is grab's torrent engine (ADR-0019 §6.7): the engine.Transfers over its embedded client -- the anacrolix client and its re-attach descriptors -- which the shared command handler (app/grab/engine) drives with the manager's seq-fenced desired-state commands.
grab/engine/usenet
Package usenet is grab's usenet engine (ADR-0019 §6.7): the engine.Transfers over its embedded client -- the usenet pipeline and its scratch manifests -- which the shared command handler (app/grab/engine) drives with the manager's seq-fenced desired-state commands.
Package usenet is grab's usenet engine (ADR-0019 §6.7): the engine.Transfers over its embedded client -- the usenet pipeline and its scratch manifests -- which the shared command handler (app/grab/engine) drives with the manager's seq-fenced desired-state commands.
grab/lifecycle
Package lifecycle is the grab state machine (ADR-0019 §6.4): a pure planner over one owner's grab entries -- a Movie's, a Series', an Album's, a Book's, an Audiobook's or a Comic's status.downloads[] -- and the evidence the downloads stage gathered for them (transfer and engine records, the DownloadClients, the MediaFiles naming each entry, the import planner's decisions, the block book's replies, the owner's intents).
Package lifecycle is the grab state machine (ADR-0019 §6.4): a pure planner over one owner's grab entries -- a Movie's, a Series', an Album's, a Book's, an Audiobook's or a Comic's status.downloads[] -- and the evidence the downloads stage gathered for them (transfer and engine records, the DownloadClients, the MediaFiles naming each entry, the import planner's decisions, the block book's replies, the owner's intents).
grab/manager
Package manager is grab's manager-side registration (spec §4.2.1): the DownloadClient controller, which renders every engine workload, ensures the per-engine durables, reads the engine records and resyncs and prunes the engines (ADR-0019 §6.7).
Package manager is grab's manager-side registration (spec §4.2.1): the DownloadClient controller, which renders every engine workload, ensures the per-engine durables, reads the engine records and resyncs and prunes the engines (ADR-0019 §6.7).
import/agent
Package agent is the agent's import domain (spec §3.5.3): import-scan, import-fileimport, import-list and import-recycle (the recycle-bin sweep) on CLUSTARR_WORK_IMPORT, and import-probe-high and import-probe-low (the MediaFile probe queue, spec 2026-10-06 §6.6).
Package agent is the agent's import domain (spec §3.5.3): import-scan, import-fileimport, import-list and import-recycle (the recycle-bin sweep) on CLUSTARR_WORK_IMPORT, and import-probe-high and import-probe-low (the MediaFile probe queue, spec 2026-10-06 §6.6).
import/controller
Package controller will hold import's reconcilers: ImportList, ImportExclusion, LibraryScan and the RootFolder schedule (amendment §A1.6).
Package controller will hold import's reconcilers: ImportList, ImportExclusion, LibraryScan and the RootFolder schedule (amendment §A1.6).
import/controller/importexclusion
Package importexclusion implements the ImportExclusion controller: it projects each exclusion's external IDs into the clustarr-import-exclusions KV bucket, so an import-list sync or a search can ask "is this id blocked?" with one Get instead of listing every ImportExclusion per candidate (amendment §A1.3; §16 M1).
Package importexclusion implements the ImportExclusion controller: it projects each exclusion's external IDs into the clustarr-import-exclusions KV bucket, so an import-list sync or a search can ask "is this id blocked?" with one Get instead of listing every ImportExclusion per candidate (amendment §A1.3; §16 M1).
import/controller/importlist
Package importlist is the ImportList controller, the manager's import-list state machine (ADR-0019 §7.6): it schedules one clustarr.work.import.list.<name> sync task per spec.refreshInterval tick (clamped up to the provider's own floor -- schedule.go), diffs each snapshot the import agent reports and applies the result to the catalog (diff.go, apply.go), refreshes Trakt tokens and drives the device-code handshake (auth.go, tokens.go), and is the sole writer of ImportList.status (amendment §A1.3, §A1.6, design spec §8.7; task G1-3).
Package importlist is the ImportList controller, the manager's import-list state machine (ADR-0019 §7.6): it schedules one clustarr.work.import.list.<name> sync task per spec.refreshInterval tick (clamped up to the provider's own floor -- schedule.go), diffs each snapshot the import agent reports and applies the result to the catalog (diff.go, apply.go), refreshes Trakt tokens and drives the device-code handshake (auth.go, tokens.go), and is the sole writer of ImportList.status (amendment §A1.3, §A1.6, design spec §8.7; task G1-3).
import/controller/librarydelete
Package librarydelete carries out a library delete request: an item annotated catalog.clustarr.io/delete is removed with its MediaFile records and, for "files", its folder on disk (docs/superpowers/specs/ 2026-09-30-library-delete-design.md).
Package librarydelete carries out a library delete request: an item annotated catalog.clustarr.io/delete is removed with its MediaFile records and, for "files", its folder on disk (docs/superpowers/specs/ 2026-09-30-library-delete-design.md).
import/controller/libraryscan
Package libraryscan implements the LibraryScan controller: the single writer of LibraryScan.status and the only thing that turns a LibraryScan into work (amendment §A1.4, §A1.6; §16 M1).
Package libraryscan implements the LibraryScan controller: the single writer of LibraryScan.status and the only thing that turns a LibraryScan into work (amendment §A1.4, §A1.6; §16 M1).
import/controller/missingfile
Package missingfile asks for the library scan that removes the record of a file gone from disk, once the file has been gone long enough.
Package missingfile asks for the library scan that removes the record of a file gone from disk, once the file has been gone long enough.
import/controller/recyclesweep
Package recyclesweep queues the recycle-bin sweep: one RecycleSweepTask per 6-hour UTC slot on import-recycle, published by the manager's leader (spec 2026-10-06 §3.5.3, OD36).
Package recyclesweep queues the recycle-bin sweep: one RecycleSweepTask per 6-hour UTC slot on import-recycle, published by the manager's leader (spec 2026-10-06 §3.5.3, OD36).
import/controller/rootfolderschedule
Package rootfolderschedule turns RootFolder.spec.scanSchedule into LibraryScan objects, one per cron tick (amendment §A1.3, §A1.4; §16 M1).
Package rootfolderschedule turns RootFolder.spec.scanSchedule into LibraryScan objects, one per cron tick (amendment §A1.3, §A1.4; §16 M1).
import/importliststate
Package importliststate is what the ImportList controller and the import agent's list worker share (ADR-0019 §7.6): the snapshot's keys in clustarr-importlist (SnapshotKey, SnapshotChunkBytes), the remembered items the controller diffs a snapshot against (StoredItem, ItemsKey), the kinds a list's provider can yield, the id vocabulary a snapshot carries, and a read-only view of the Trakt token Secret (TokenReader).
Package importliststate is what the ImportList controller and the import agent's list worker share (ADR-0019 §7.6): the snapshot's keys in clustarr-importlist (SnapshotKey, SnapshotChunkBytes), the remembered items the controller diffs a snapshot against (StoredItem, ItemsKey), the kinds a list's provider can yield, the id vocabulary a snapshot carries, and a read-only view of the Trakt token Secret (TokenReader).
import/importplan
Package importplan decides a completed grab's import in the manager (ADR-0019 §6.9; spec §3.5 P51-P69): pure functions over the import agent's inspect and execute records, the owner's grab entry and the MediaFiles the cache holds.
Package importplan decides a completed grab's import in the manager (ADR-0019 §6.9; spec §3.5 P51-P69): pure functions over the import agent's inspect and execute records, the owner's grab entry and the MediaFiles the cache holds.
import/importtarget
Package importtarget is the grammar of the two annotations that direct an import by hand -- catalog.clustarr.io/import-target and import-override -- on a Download or a LibraryScan: parsing, the root-folder fit, and the target a Download's spec names.
Package importtarget is the grammar of the two annotations that direct an import by hand -- catalog.clustarr.io/import-target and import-override -- on a Download or a LibraryScan: parsing, the root-folder fit, and the target a Download's spec names.
import/manager
Package manager is import's manager-side registration (spec §4.2.1): the LibraryScan, RootFolder schedule, ImportExclusion, LibraryDelete and ImportList controllers and the recycle sweep's publisher.
Package manager is import's manager-side registration (spec §4.2.1): the LibraryScan, RootFolder schedule, ImportExclusion, LibraryDelete and ImportList controllers and the recycle sweep's publisher.
import/manager/scanapply
Package scanapply is the manager's scan applier (ADR-0019 §7.6, A6.1): the intake.ScanApplier the leader-only import-intake-scan consumer hands every library-scan observation to.
Package scanapply is the manager's scan applier (ADR-0019 §7.6, A6.1): the intake.ScanApplier the leader-only import-intake-scan consumer hands every library-scan observation to.
import/mediafilespec
Package mediafilespec is import's description of MediaFileSpec under k8s.ManagerImportWorker: the frozen fields (Frozen, ReassertFrozen), the spec hash a scan observation's basis carries (SpecHash), the observed-fingerprint hand-over and the missing-file rule a scan and the manager's scan applier share.
Package mediafilespec is import's description of MediaFileSpec under k8s.ManagerImportWorker: the frozen fields (Frozen, ReassertFrozen), the spec hash a scan observation's basis carries (SpecHash), the observed-fingerprint hand-over and the missing-file rule a scan and the manager's scan applier share.
import/mediafilespec/specwrite
Package specwrite is the MediaFile spec's Kubernetes writers, split from app/import/mediafilespec (ADR-0019 A3.8) so the import agent links none: Apply and ApplyFacts (the one render of import-worker's MediaFileSpec) and RenameFile.
Package specwrite is the MediaFile spec's Kubernetes writers, split from app/import/mediafilespec (ADR-0019 A3.8) so the import agent links none: Apply and ApplyFacts (the one render of import-worker's MediaFileSpec) and RenameFile.
import/scanprogress
Package scanprogress is a LibraryScan's checkpoint as the rescan worker writes it to the clustarr-progress bucket and the LibraryScan controller folds it into status: Progress, its unmatched and renamed entries, and the KV key.
Package scanprogress is a LibraryScan's checkpoint as the rescan worker writes it to the clustarr-progress bucket and the LibraryScan controller folds it into status: Progress, its unmatched and renamed entries, and the KV key.
import/worker
Package worker will hold import's queue consumers: work.import.scan, work.import.list and work.import.fileimport (amendment §A1.6).
Package worker will hold import's queue consumers: work.import.scan, work.import.list and work.import.fileimport (amendment §A1.6).
import/worker/fileimport
Package fileimport is the import agent's completed-download worker on import-fileimport (ADR-0019 §6.9): the two halves of an import that touch the payload and the library, while app/import/importplan decides in the manager.
Package fileimport is the import agent's completed-download worker on import-fileimport (ADR-0019 §6.9): the two halves of an import that touch the payload and the library, while app/import/importplan decides in the manager.
import/worker/importlist
Package importlist is the import agent's ImportList sync worker: the clustarr.work.import.list.<importlist> handler that wires an ImportList's spec to a concrete pkg/importlist provider (BuildProvider), fetches each kind the list names, resolves the id each movie and series is keyed on through the metadata gateway, and reports the whole listed set as a snapshot (schema.ListSnapshot) in clustarr-importlist, at importliststate.SnapshotKey, chunked past 512 KiB (ADR-0019 §7.6, ruling R17).
Package importlist is the import agent's ImportList sync worker: the clustarr.work.import.list.<importlist> handler that wires an ImportList's spec to a concrete pkg/importlist provider (BuildProvider), fetches each kind the list names, resolves the id each movie and series is keyed on through the metadata gateway, and reports the whole listed set as a snapshot (schema.ListSnapshot) in clustarr-importlist, at importliststate.SnapshotKey, chunked past 512 KiB (ADR-0019 §7.6, ruling R17).
import/worker/nfo
Package nfo is the import domain's import-nfo consumer (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8.2): it writes the artist.nfo, album.nfo and image files the manager rendered for an item into the item's folder on /data and answers in clustarr-nfo.
Package nfo is the import domain's import-nfo consumer (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8.2): it writes the artist.nfo, album.nfo and image files the manager rendered for an item into the item's folder on /data and answers in clustarr-nfo.
import/worker/probe
Package probe is the import domain's probe worker (spec 2026-10-06 §6.6): it answers catalog's MediaFile probe tasks (import-probe-high and import-probe-low) into the clustarr-probes record the MediaFile reconciler reads, through the process's one mediainfo.Prober.
Package probe is the import domain's probe worker (spec 2026-10-06 §6.6): it answers catalog's MediaFile probe tasks (import-probe-high and import-probe-low) into the clustarr-probes record the MediaFile reconciler reads, through the process's one mediainfo.Prober.
import/worker/probe/probetest
Package probetest is test support for every package whose tests need the import domain's probe worker answering the probe queue: the MediaFile reconciler's envtests above all.
Package probetest is test support for every package whose tests need the import domain's probe worker answering the probe queue: the MediaFile reconciler's envtests above all.
import/worker/rescan
Package rescan is import's library-rescan work consumer: the clustarr.work.import.scan.* handler that walks a RootFolder, classifies what it finds, attributes each media file to a catalog item, and reports it to the manager's scan applier (app/import/manager/scanapply) as an observation on CLUSTARR_INTAKE -- proposing the Movie for a movie file that carries a provider id, the Series for a folder that does, and the Artist, Author or Audiobook a container folder is (amendment §A1.3, §A1.5, §A1.6; §16 M1, M6; ADR-0019 §7.6; the 2026-11-10 non-video libraries design's D16).
Package rescan is import's library-rescan work consumer: the clustarr.work.import.scan.* handler that walks a RootFolder, classifies what it finds, attributes each media file to a catalog item, and reports it to the manager's scan applier (app/import/manager/scanapply) as an observation on CLUSTARR_INTAKE -- proposing the Movie for a movie file that carries a provider id, the Series for a folder that does, and the Artist, Author or Audiobook a container folder is (amendment §A1.3, §A1.5, §A1.6; §16 M1, M6; ADR-0019 §7.6; the 2026-11-10 non-video libraries design's D16).
indexer/agent
Package agent is the agent's index domain (spec §3.5.3, §5.12): the release index, the clustarr.rpc.index.search/download/query verbs, index-rss, the Torznab facade and its key, and the retention sweep.
Package agent is the agent's index domain (spec §3.5.3, §5.12): the release index, the clustarr.rpc.index.search/download/query verbs, index-rss, the Torznab facade and its key, and the retention sweep.
indexer/blocklist
Package blocklist is the body of clustarr.rpc.index.blocklist (ADR-0019 §6.14): the release index persists the blocks and unblocks the manager decided, and lists them.
Package blocklist is the body of clustarr.rpc.index.blocklist (ADR-0019 §6.14): the release index persists the blocks and unblocks the manager decided, and lists them.
indexer/bundle
Package bundle loads a Cardigann definition bundle into the cluster as IndexerDefinitions.
Package bundle loads a Cardigann definition bundle into the cluster as IndexerDefinitions.
indexer/bundle/embedded
Package embedded is the Cardigann definition corpus compiled into the binary: a deflated zip of every definition, served as an fs.FS.
Package embedded is the Cardigann definition corpus compiled into the binary: a deflated zip of every definition, served as an fs.FS.
indexer/clientcache
Package clientcache is the index agent's process-wide cache of built wire clients, keyed by Indexer UID plus resourceVersion and the proxies that route it, with the Cardigann re-login a stale session triggers.
Package clientcache is the index agent's process-wide cache of built wire clients, keyed by Indexer UID plus resourceVersion and the proxies that route it, with the Cardigann re-login a stale session triggers.
indexer/clients
Package clients builds the wire clients index talks to an indexer through -- Torznab/Newznab or a Cardigann engine, behind the Indexer's proxy and its host's rate limit -- and keeps Cardigann login sessions (the clustarr-indexer-sessions KV bucket, with the owned Secret read as the fallback).
Package clients builds the wire clients index talks to an indexer through -- Torznab/Newznab or a Cardigann engine, behind the Indexer's proxy and its host's rate limit -- and keeps Cardigann login sessions (the clustarr-indexer-sessions KV bucket, with the owned Secret read as the fallback).
indexer/controller/indexer
Package indexer reconciles index.clustarr.io Indexer objects: it validates the spec, probes Torznab caps, resolves the protocol, the privacy class and the session-Secret reference, and derives the Ready, Authenticated, Healthy and RateLimited conditions.
Package indexer reconciles index.clustarr.io Indexer objects: it validates the spec, probes Torznab caps, resolves the protocol, the privacy class and the session-Secret reference, and derives the Ready, Authenticated, Healthy and RateLimited conditions.
indexer/controller/indexerdefinition
Package indexerdefinition reconciles IndexerDefinition: it validates spec.yaml against the bundled Cardigann v11 schema, decodes it, and reports what it found.
Package indexerdefinition reconciles IndexerDefinition: it validates spec.yaml against the bundled Cardigann v11 schema, decodes it, and reports what it found.
indexer/controller/indexerproxy
Package indexerproxy reconciles IndexerProxy: it checks that the proxy is addressable and reachable, and reports Ready with when it last looked and what version answered.
Package indexerproxy reconciles IndexerProxy: it checks that the proxy is addressable and reachable, and reports Ready with when it last looked and what version answered.
indexer/download
Package download serves clustarr.rpc.index.download: it fetches a release payload with the indexer's own session cookies and passkeys and hands grab either the bytes, a magnet link or a link to fetch itself.
Package download serves clustarr.rpc.index.download: it fetches a release payload with the indexer's own session cookies and passkeys and hands grab either the bytes, a magnet link or a link to fetch itself.
indexer/facade
Package facade serves index's own indexers back out as Torznab, so external tools (Sonarr/Radarr-alikes, Jackett-compatible scripts, a human with curl) can search Clustarr's aggregated indexers the same way they would search Prowlarr or Jackett.
Package facade serves index's own indexers back out as Torznab, so external tools (Sonarr/Radarr-alikes, Jackett-compatible scripts, a human with curl) can search Clustarr's aggregated indexers the same way they would search Prowlarr or Jackett.
indexer/health
Package health is the index agent's half of indexer health (ADR-0019 §7.5, design §3.1 W34-W35, §3.5 P87): it reports every query's outcome -- a search fan-out query or an RSS poll -- in the clustarr-indexer-health records bucket, and suppresses a failing indexer locally until the manager's verdict.
Package health is the index agent's half of indexer health (ADR-0019 §7.5, design §3.1 W34-W35, §3.5 P87): it reports every query's outcome -- a search fan-out query or an RSS poll -- in the clustarr-indexer-health records bucket, and suppresses a failing indexer locally until the manager's verdict.
indexer/limits
Package limits is spec §5's clustarr-indexer-limits: per Indexer, a timestamp ring of the queries and one of the grabs made against it in the spec.limits window, "<indexer-uid>.query, .grab timestamp rings (CAS), TTL 2d".
Package limits is spec §5's clustarr-indexer-limits: per Indexer, a timestamp ring of the queries and one of the grabs made against it in the spec.limits window, "<indexer-uid>.query, .grab timestamp rings (CAS), TTL 2d".
indexer/manager
Package manager is index's manager-side registration (spec §4.2.1, §5.12): the Indexer, IndexerDefinition and IndexerProxy reconcilers, the Cardigann bundle loader behind the lease (R9), and the Torznab facade's API-key Secret, which the manager creates and the index agent only reads (ADR-0019 §7.5).
Package manager is index's manager-side registration (spec §4.2.1, §5.12): the Indexer, IndexerDefinition and IndexerProxy reconcilers, the Cardigann bundle loader behind the lease (R9), and the Torznab facade's API-key Secret, which the manager creates and the index agent only reads (ADR-0019 §7.5).
indexer/proxy
Package proxy routes an Indexer's requests through the IndexerProxies that apply to it.
Package proxy routes an Indexer's requests through the IndexerProxies that apply to it.
indexer/query
Package query serves clustarr.rpc.index.query: a direct read of the local release index.
Package query serves clustarr.rpc.index.query: a direct read of the local release index.
indexer/rssschedule
Package rssschedule is the RSS poll chain's schedule: when an Indexer's next poll is due, the per-slot Msg-ID that collapses two publishes of one slot onto one delivery, and the scheduled publish itself.
Package rssschedule is the RSS poll chain's schedule: when an Indexer's next poll is due, the per-slot Msg-ID that collapses two publishes of one slot onto one delivery, and the scheduled publish itself.
indexer/search
Package search serves clustarr.rpc.index.search: it fans one federated search out across every healthy Indexer that can answer it, merges what comes back and replies once.
Package search serves clustarr.rpc.index.search: it fans one federated search out across every healthy Indexer that can answer it, merges what comes back and replies once.
indexer/status
No RBAC marker lives here: this package declares the owned sets, runs the ladder and publishes its events, and writes nothing to the apiserver.
No RBAC marker lives here: this package declares the owned sets, runs the ladder and publishes its events, and writes nothing to the apiserver.
indexer/status/statuspatch
Package statuspatch is the one writer of Indexer.status: Patch and PatchCAS apply the complete set app/indexer/status declares for a field manager (ControllerFields for k8s.ManagerIndex, WorkerFields for k8s.ManagerIndexWorker).
Package statuspatch is the one writer of Indexer.status: Patch and PatchCAS apply the complete set app/indexer/status declares for a field manager (ControllerFields for k8s.ManagerIndex, WorkerFields for k8s.ManagerIndexWorker).
indexer/worker/rss
Package rss polls each Indexer's feed and publishes what it finds to the release firehose, clustarr.rel.<protocol>.<indexerName>.<newznabTop>.
Package rss polls each Indexer's feed and publishes what it finds to the release firehose, clustarr.rel.<protocol>.<indexerName>.<newznabTop>.
intake
Package intake is the manager's leader-only consumption of what agents propose without being asked (ADR-0019 §4.3, §8.1, §8.4): grab candidates on catalog-intake-candidate and library-scan observations on import-intake-scan, both on CLUSTARR_INTAKE.
Package intake is the manager's leader-only consumption of what agents propose without being asked (ADR-0019 §4.3, §8.1, §8.4): grab candidates on catalog-intake-candidate and library-scan observations on import-intake-scan, both on CLUSTARR_INTAKE.
intake/advisory
Package advisory is the manager's task-events intake (ADR-0019 §8.2, §8.3, §8.5; rulings R8, R10, R16): the leader-only clustarr-task-events consumer on CLUSTARR_TASK_EVENTS, which turns JetStream's MSG_NAKED and MSG_TERMINATED advisories of every dispatched task into delivery state in app/dispatch's DeliveryBook and wakes the CR the task concerns; and the core subscriptions on $JS.EVENT.METRIC.CONSUMER.ACK, which feed metrics and nothing else.
Package advisory is the manager's task-events intake (ADR-0019 §8.2, §8.3, §8.5; rulings R8, R10, R16): the leader-only clustarr-task-events consumer on CLUSTARR_TASK_EVENTS, which turns JetStream's MSG_NAKED and MSG_TERMINATED advisories of every dispatched task into delivery state in app/dispatch's DeliveryBook and wakes the CR the task concerns; and the core subscriptions on $JS.EVENT.METRIC.CONSUMER.ACK, which feed metrics and nothing else.
livetv/controller/iptvchannel
Package iptvchannel reconciles IPTVChannel status (Live TV spec 2026-10-07 §3.0, §6), its sole writer under k8s.ManagerLiveTVChannel: the channel's place in its provider's lineup, read from the tuner's snapshot.
Package iptvchannel reconciles IPTVChannel status (Live TV spec 2026-10-07 §3.0, §6), its sole writer under k8s.ManagerLiveTVChannel: the channel's place in its provider's lineup, read from the tuner's snapshot.
livetv/controller/iptvprovider
Package iptvprovider reconciles IPTVProvider (Live TV spec 2026-10-07 §6, amended by 2026-10-20-iptv-xtream-ranges-design.md): it packs each provider's active channels into blocks (spec §3.1), gives each block a device ID, a port (§5.0) and its device's endpoint, enforces the rules across providers (unique device IDs, disjoint number spans), reads each block's owner from its Lease, reads the provider's server and credentials Secret and hands the tuner a resolved configuration; and writes the provider's status, the sole writer under k8s.ManagerLiveTV, from the tuner's snapshot.
Package iptvprovider reconciles IPTVProvider (Live TV spec 2026-10-07 §6, amended by 2026-10-20-iptv-xtream-ranges-design.md): it packs each provider's active channels into blocks (spec §3.1), gives each block a device ID, a port (§5.0) and its device's endpoint, enforces the rules across providers (unique device IDs, disjoint number spans), reads each block's owner from its Lease, reads the provider's server and credentials Secret and hands the tuner a resolved configuration; and writes the provider's status, the sole writer under k8s.ManagerLiveTV, from the tuner's snapshot.
livetv/controller/lineup
Package lineup is the lineup controller (Live TV custom guides design 2026-11-10 §5.2): it turns an IPTVProvider's spec.lineup and the playlist entries its filters admit into each channel's number and category.
Package lineup is the lineup controller (Live TV custom guides design 2026-11-10 §5.2): it turns an IPTVProvider's spec.lineup and the playlist entries its filters admit into each channel's number and category.
livetv/index
Package index is the IPTVChannel field index both Live TV controllers find a provider's channels by (spec 2026-10-07 §5.1): a namespace List per event would scale as watched × listed, the gotcha the startup map functions hit.
Package index is the IPTVChannel field index both Live TV controllers find a provider's channels by (spec 2026-10-07 §5.1): a namespace List per event would scale as watched × listed, the gotcha the startup map functions hit.
livetv/leaderendpoint
Package leaderendpoint publishes the leading manager as the livetv Service's only endpoint (control-plane placement design §5.4).
Package leaderendpoint publishes the leading manager as the livetv Service's only endpoint (control-plane placement design §5.4).
livetv/manager
Package manager registers Live TV in cmd/manager (spec 2026-10-07 §5, §6): the tuner, a leader-only runnable serving every provider on one port, the IPTVProvider and IPTVChannel controllers that feed it and write status from its snapshot, and the lineup controller that numbers a provider's channels from its spec.lineup (custom guides design §5.2).
Package manager registers Live TV in cmd/manager (spec 2026-10-07 §5, §6): the tuner, a leader-only runnable serving every provider on one port, the IPTVProvider and IPTVChannel controllers that feed it and write status from its snapshot, and the lineup controller that numbers a provider's channels from its spec.lineup (custom guides design §5.2).
livetv/relay
Package relay is Live TV's stream relay (spec 2026-10-07 §5.2): one upstream connection per channel, however many Plex clients watch it, admitted against the provider's tuner count.
Package relay is Live TV's stream relay (spec 2026-10-07 §5.2): one upstream connection per channel, however many Plex clients watch it, admitted against the provider's tuner count.
livetv/tuner
Package tuner is Live TV's tuner (spec 2026-10-07 §5, amended by 2026-10-20-iptv-xtream-ranges-design.md): a leader-only runnable of the manager that, for every Xtream provider the IPTVProvider controller applies, fetches the playlist, the guide and the account, caches the first two in the clustarr-livetv object store, renders the lineup and the XEPG guide, serves the HDHomeRun surface for any range of channel numbers, relays streams, and reports a Snapshot both controllers write status from.
Package tuner is Live TV's tuner (spec 2026-10-07 §5, amended by 2026-10-20-iptv-xtream-ranges-design.md): a leader-only runnable of the manager that, for every Xtream provider the IPTVProvider controller applies, fetches the playlist, the guide and the account, caches the first two in the clustarr-livetv object store, renders the lineup and the XEPG guide, serves the HDHomeRun surface for any range of channel numbers, relays streams, and reports a Snapshot both controllers write status from.
maintenance
Package maintenance is the manager's maintenance loop over the bus's object stores (ADR-0019: maintenance is the manager's; ADR-0020 §5, ADR-0021 §3).
Package maintenance is the manager's maintenance loop over the bus's object stores (ADR-0019: maintenance is the manager's; ADR-0020 §5, ADR-0021 §3).
remediation
Package remediation is the MediaFile remediation loop (ADR-0016): one controller, "mediafile", the only writer of MediaFile status, running its planners in Order over one view of the file and applying their status in one compare-and-swap (loop spec §3).
Package remediation is the MediaFile remediation loop (ADR-0016): one controller, "mediafile", the only writer of MediaFile status, running its planners in Order over one view of the file and applying their status in one compare-and-swap (loop spec §3).
remediation/artwork
Package artwork is the item keys' artwork stage (ADR-0019 §7.1, §7.2, A5.2-A5.3) over the manager's objindex of clustarr-artwork:
Package artwork is the item keys' artwork stage (ADR-0019 §7.1, §7.2, A5.2-A5.3) over the manager's objindex of clustarr-artwork:
remediation/childsync
Package childsync is the in-process memo a container item key -- a Series, an Artist, an Author, a Comic -- keeps of its last complete child fan-out (2026-11-10 design D2, D14; owner, 2026-10-28: every Series pass asked the metadata gateway for its whole list).
Package childsync is the in-process memo a container item key -- a Series, an Artist, an Author, a Comic -- keeps of its last complete child fan-out (2026-11-10 design D2, D14; owner, 2026-10-28: every Series pass asked the metadata gateway for its whole list).
remediation/dlindex
Package dlindex is the manager's one index of grab entries (ADR-0019 §6.11): remediation.item.download, on the six owner kinds (Movie, Series, Album, Book, Audiobook, Comic), whose values are every entry's id and uid and, per entry, "engine:<entry.engine>".
Package dlindex is the manager's one index of grab entries (ADR-0019 §6.11): remediation.item.download, on the six owner kinds (Movie, Series, Album, Book, Audiobook, Comic), whose values are every entry's id and uid and, per entry, "engine:<entry.engine>".
remediation/downloads
Package downloads is the remediation loop's downloads stage (ADR-0019 §6, A3.5): the loop's adapter of app/grab/lifecycle.
Package downloads is the remediation loop's downloads stage (ADR-0019 §6, A3.5): the loop's adapter of app/grab/lifecycle.
remediation/grab
Package grab is the remediation loop's grab stage (ADR-0019 §6.6, A4.1): the loop's adapter of app/catalog/grabplan, run first in every owner pass.
Package grab is the remediation loop's grab stage (ADR-0019 §6.6, A4.1): the loop's adapter of app/catalog/grabplan, run first in every owner pass.
remediation/graft
Package graft is the remediation loop's graft planner adapter (loop spec §4.12, §5.13; ADR-0016): it gathers what app/transcode/graftplan.Plan reads -- the file's item and its audio policy, the RootFolder, the clustarr-grafts record, the joined transcode's record, the standalone graft Job -- and maps its effects onto the loop's: the record request and withdrawal (RecordWrite), the graft Job's creation and deletion, and the ledger's graft-slot confirmation.
Package graft is the remediation loop's graft planner adapter (loop spec §4.12, §5.13; ADR-0016): it gathers what app/transcode/graftplan.Plan reads -- the file's item and its audio policy, the RootFolder, the clustarr-grafts record, the joined transcode's record, the standalone graft Job -- and maps its effects onto the loop's: the record request and withdrawal (RecordWrite), the graft Job's creation and deletion, and the ledger's graft-slot confirmation.
remediation/imageset
Package imageset is the item keys' image-set stage (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): for a Movie or Series with a TMDB id (a series' TheTVDB id does, the agent maps it), while a mediux MetadataProvider is Ready and the item has not opted out (spec.imageSet: none), it asks the metadata agent's image-set worker -- a clustarr-image-sets request and a catalog-imageset task, admitted through the dispatch ledger -- and incorporates the answer into status.imageSet as catalog-imageset's one field.
Package imageset is the item keys' image-set stage (docs/superpowers/specs/2026-10-22-mediux-image-sets-automation-design.md): for a Movie or Series with a TMDB id (a series' TheTVDB id does, the agent maps it), while a mediux MetadataProvider is Ready and the item has not opted out (spec.imageSet: none), it asks the metadata agent's image-set worker -- a clustarr-image-sets request and a catalog-imageset task, admitted through the dispatch ledger -- and incorporates the answer into status.imageSet as catalog-imageset's one field.
remediation/itemtest
Package itemtest runs the remediation loop's item path without its file planners, for the item packages' envtests (loop spec §3.12).
Package itemtest runs the remediation loop's item path without its file planners, for the item packages' envtests (loop spec §3.12).
remediation/itemtest/looptest
Package looptest runs the remediation loop's item path with its stages against an envtest apiserver and an in-memory bus, for the item stages' envtests (ADR-0019 A3.3: grab, downloads, search, metadata, artwork, overlay).
Package looptest runs the remediation loop's item path with its stages against an envtest apiserver and an in-memory bus, for the item stages' envtests (ADR-0019 A3.3: grab, downloads, search, metadata, artwork, overlay).
remediation/manager
Package manager is the remediation loop's manager-side registration (split spec §4.2.1's contract; loop spec §3.1): the loop, its indexes, its planners and actuators, under the manager's one lease.
Package manager is the remediation loop's manager-side registration (split spec §4.2.1's contract; loop spec §3.1): the loop, its indexes, its planners and actuators, under the manager's one lease.
remediation/markers
Package markers is the remediation loop's markers planner (loop spec §3.5, §4.12): status.markers from TheIntroDB's clustarr-markers records and the segment analysis's clustarr-segments records; TheIntroDB asked through a record and a task; the segment plan published when analysis is due.
Package markers is the remediation loop's markers planner (loop spec §3.5, §4.12): status.markers from TheIntroDB's clustarr-markers records and the segment analysis's clustarr-segments records; TheIntroDB asked through a record and a task; the segment plan published when analysis is due.
remediation/mediafilestatus
Package mediafilestatus is MediaFile status's render boundary (loop spec §2.11.1; ADR-0016).
Package mediafilestatus is MediaFile status's render boundary (loop spec §2.11.1; ADR-0016).
remediation/metadata
Package metadata is the item keys' metadata stage (ADR-0019 §7.1, A5.1): it incorporates the metadata gateway's answer -- a clustarr-item-metadata record -- into status.metadata, together with status.artwork, as catalog-metadata's one complete set (app/catalog/metadataset), for the six loop kinds with metadata of their own: Movie, Series, Album, Book, Audiobook and Comic.
Package metadata is the item keys' metadata stage (ADR-0019 §7.1, A5.1): it incorporates the metadata gateway's answer -- a clustarr-item-metadata record -- into status.metadata, together with status.artwork, as catalog-metadata's one complete set (app/catalog/metadataset), for the six loop kinds with metadata of their own: Movie, Series, Album, Book, Audiobook and Comic.
remediation/mfindex
Package mfindex names the MediaFile indexes the remediation loop registers (loop spec §3.16).
Package mfindex names the MediaFile indexes the remediation loop registers (loop spec §3.16).
remediation/naming
Package naming is the remediation loop's naming planner (loop spec §3.5): the file's canonical path in status.naming and the NamingCurrent condition, and, until F5.1 moves it to the subtitles planner, the sidecar listing in status.sidecars (§2.7).
Package naming is the remediation loop's naming planner (loop spec §3.5): the file's canonical path in status.naming and the NamingCurrent condition, and, until F5.1 moves it to the subtitles planner, the sidecar listing in status.sidecars (§2.7).
remediation/nfo
Package nfo is the remediation loop's nfo stage (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8.2): for an Artist, Album, Author or Audiobook with a folder on disk it renders the Kodi-shape artist.nfo or album.nfo (pkg/nfo) and the images beside it, asks the import agent to write them (an NFOWriteTask on import-nfo through the dispatch ledger, the request in clustarr-nfo), and incorporates the answer into status.nfo under catalog-nfo.
Package nfo is the remediation loop's nfo stage (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §8.2): for an Artist, Album, Author or Audiobook with a folder on disk it renders the Kodi-shape artist.nfo or album.nfo (pkg/nfo) and the images beside it, asks the import agent to write them (an NFOWriteTask on import-nfo through the dispatch ledger, the request in clustarr-nfo), and incorporates the answer into status.nfo under catalog-nfo.
remediation/probe
Package probe is the remediation loop's probe planner (loop spec §3.5, §4.12; split §6.5.3): it judges a file's clustarr-probes record and incorporates, waits, or asks the import domain for a probe -- the request an effect after the status says ProbePending (§3.8).
Package probe is the remediation loop's probe planner (loop spec §3.5, §4.12; split §6.5.3): it judges a file's clustarr-probes record and incorporates, waits, or asks the import domain for a probe -- the request an effect after the status says ProbePending (§3.8).
remediation/remediationtest
Package remediationtest drives the loop in envtest: an apiserver, an uncached client that emulates the loop's cache indexes, a membus, and fake planners.
Package remediationtest drives the loop in envtest: an apiserver, an uncached client that emulates the loop's cache indexes, a membus, and fake planners.
remediation/rename
Package rename is the remediation loop's rename actuator (loop spec §3.9): it moves a file to the canonical path its applied status proposes, when its RootFolder allows, through specwrite.RenameFile under import-worker -- the decision import's rename controller made, run by the loop against the status it just applied instead of by a second MediaFile watcher.
Package rename is the remediation loop's rename actuator (loop spec §3.9): it moves a file to the canonical path its applied status proposes, when its RootFolder allows, through specwrite.RenameFile under import-worker -- the decision import's rename controller made, run by the loop against the status it just applied instead of by a second MediaFile watcher.
remediation/replay
Package replay is the remediation loop's replay actuator (loop spec §3.9): a clustarr.io/replay request on a MediaFile, handled by the one Replayer every replay-<kind> controller uses, without a MediaFile controller of its own -- MediaFile never joins replay.ReplayKinds, which would make a second MediaFile watcher.
Package replay is the remediation loop's replay actuator (loop spec §3.9): a clustarr.io/replay request on a MediaFile, handled by the one Replayer every replay-<kind> controller uses, without a MediaFile controller of its own -- MediaFile never joins replay.ReplayKinds, which would make a second MediaFile watcher.
remediation/search
Package search is the remediation loop's search stage (ADR-0019 §7.3, A4.2): the loop's adapter of app/catalog/searchplan on the searchable item keys (Movie, Episode, Album, Book, Audiobook, Issue; ruling R12) and on the two containers whose children are searched as a pack first, Series and Comic.
Package search is the remediation loop's search stage (ADR-0019 §7.3, A4.2): the loop's adapter of app/catalog/searchplan on the searchable item keys (Movie, Episode, Album, Book, Audiobook, Issue; ruling R12) and on the two containers whose children are searched as a pack first, Series and Comic.
remediation/subtitles
Package subtitles is the loop's subtitles adapter (loop spec §6.4): it gathers app/caption/subtitleplan's Input from the manager cache, clustarr-subtitles and /data, and turns its Decision into effects -- the requested record, then the v2 fetch task -- and withdrawals.
Package subtitles is the loop's subtitles adapter (loop spec §6.4): it gathers app/caption/subtitleplan's Input from the manager cache, clustarr-subtitles and /data, and turns its Decision into effects -- the requested record, then the v2 fetch task -- and withdrawals.
remediation/transcode
Package transcode is the loop's transcode planner (loop spec §5.8-§5.10): it gathers what app/transcode/transcodeplan.Plan reads from the manager cache, the admission ledger and clustarr-transcodes, renders status.transcode, turns the decision into effects -- the requested record, then the v2 task, then the ledger confirmation and the history -- and owns the transcode half of status.handledNonces (§3.5).
Package transcode is the loop's transcode planner (loop spec §5.8-§5.10): it gathers what app/transcode/transcodeplan.Plan reads from the manager cache, the admission ledger and clustarr-transcodes, renders status.transcode, turns the decision into effects -- the requested record, then the v2 task, then the ledger confirmation and the history -- and owns the transcode half of status.handledNonces (§3.5).
segments/worker
Package worker is markers-worker's analysis: one AnalyzeTask -- a season's files or a movie's -- in, one clustarr-segments record per due file written by CAS (spec 2026-10-01 segment detection §4; loop spec 2026-10-06 §4.12), which the remediation loop's markers planner merges into status.markers.
Package worker is markers-worker's analysis: one AnalyzeTask -- a season's files or a movie's -- in, one clustarr-segments record per due file written by CAS (spec 2026-10-01 segment detection §4; loop spec 2026-10-06 §4.12), which the remediation loop's markers planner merges into status.markers.
trailers/agent
Package agent is the trailers domain of cmd/agent (ADR-0023): the one process that fetches a Movie's or Series' own trailer.
Package agent is the trailers domain of cmd/agent (ADR-0023): the one process that fetches a Movie's or Series' own trailer.
transcode/admission
Package admission is the transcode admission ledger and its controller, transcode-admission (loop spec 2026-10-06 §5; ADR-0016): it decides which files enter each TranscodeProfile's window and which Planned files get a slot of which class, and remembers each pool's state.
Package admission is the transcode admission ledger and its controller, transcode-admission (loop spec 2026-10-06 §5; ADR-0016): it decides which files enter each TranscodeProfile's window and which Planned files get a slot of which class, and remembers each pool's state.
transcode/controller/pool
Package pool is the pure renderer for transcode's pool Jobs: one long-lived work-queue Job per (TranscodeProfile, hardware class), whose pods run cmd/transcode and pull tasks from NATS (spec docs/superpowers/specs/2026-09-23-transcode-worker-design.md, §3 and §7).
Package pool is the pure renderer for transcode's pool Jobs: one long-lived work-queue Job per (TranscodeProfile, hardware class), whose pods run cmd/transcode and pull tasks from NATS (spec docs/superpowers/specs/2026-09-23-transcode-worker-design.md, §3 and §7).
transcode/controller/transcodeprofile
Package transcodeprofile is the slim TranscodeProfile reconciler (loop spec §2.13, §5.12): it hashes each profile (jobspec.ProfileHash, the function the transcode planner tags with), validates it (a second default is Invalid) and surfaces selector overlap, renders the profile's pool Jobs from the admission ledger's confirmed dispatches under transcode-pool, and writes TranscodeProfile.status under transcode.
Package transcodeprofile is the slim TranscodeProfile reconciler (loop spec §2.13, §5.12): it hashes each profile (jobspec.ProfileHash, the function the transcode planner tags with), validates it (a second default is Invalid) and surfaces selector overlap, renders the profile's pool Jobs from the admission ledger's confirmed dispatches under transcode-pool, and writes TranscodeProfile.status under transcode.
transcode/graftplan
Package graftplan is the remediation loop's graft planner (loop spec §2.6, §4.12, §5.13; anime dual-audio spec §7.2): pure, so it reads what the adapter (app/remediation/graft) gathered and writes only status.graft, status.graftTag and status.graftedAt.
Package graftplan is the remediation loop's graft planner (loop spec §2.6, §4.12, §5.13; anime dual-audio spec §7.2): pure, so it reads what the adapter (app/remediation/graft) gathered and writes only status.graft, status.graftTag and status.graftedAt.
transcode/grafttask
Package grafttask is the contract between the remediation loop's graft planner and a graft's run (anime dual-audio spec §7.2; loop spec §4.12): the Task a graft Job's pod is given as --graft-task and answered in clustarr-grafts (Record, Spec, Serve), and the Task a transcode carries when the graft rides along with it (task.Task.Graft).
Package grafttask is the contract between the remediation loop's graft planner and a graft's run (anime dual-audio spec §7.2; loop spec §4.12): the Task a graft Job's pod is given as --graft-task and answered in clustarr-grafts (Record, Spec, Serve), and the Task a transcode carries when the graft rides along with it (task.Task.Graft).
transcode/jobspec
Package jobspec is what the transcode reconcilers and the transcode worker must agree on about a job without either linking the other: the task a file's transcode dispatches (BuildTask), the output and data paths, the profile's hash, hardware and policy accessors, the standard's inputs and tier, the CPU-limit environment variable, and the worker's process exit codes.
Package jobspec is what the transcode reconcilers and the transcode worker must agree on about a job without either linking the other: the task a file's transcode dispatches (BuildTask), the output and data paths, the profile's hash, hardware and policy accessors, the standard's inputs and tier, the CPU-limit environment variable, and the worker's process exit codes.
transcode/manager
Package manager is transcode's manager-side registration (spec §4.2.1; loop spec §3.1 "Registration changes"): transcode-admission, the pools and the slim TranscodeProfile reconciler, on the admission ledger the remediation loop shares.
Package manager is transcode's manager-side registration (spec §4.2.1; loop spec §3.1 "Registration changes"): transcode-admission, the pools and the slim TranscodeProfile reconciler, on the admission ledger the remediation loop shares.
transcode/status
The RBAC markers live here, on the package that actually performs the write, rather than on whichever controller or worker happens to call it -- the same placement app/grab/status and app/indexer/status use, for the same reason.
The RBAC markers live here, on the package that actually performs the write, rather than on whichever controller or worker happens to call it -- the same placement app/grab/status and app/indexer/status use, for the same reason.
transcode/task
Package task holds what crosses NATS between the manager and the transcode pools (spec §6, §17.5, §18.1; loop spec §4.12): the Task the remediation loop publishes for one MediaFile's dispatch, the Lease a worker holds in clustarr-transcode-leases, and the Record a worker answers through in clustarr-transcodes.
Package task holds what crosses NATS between the manager and the transcode pools (spec §6, §17.5, §18.1; loop spec §4.12): the Task the remediation loop publishes for one MediaFile's dispatch, the Lease a worker holds in clustarr-transcode-leases, and the Record a worker answers through in clustarr-transcodes.
transcode/transcodeplan
Package transcodeplan is the remediation loop's transcode planner, pure (loop spec 2026-10-06 §3.1, §5.8-§5.11; ADR-0016): which TranscodeProfile wins a file (the one selection rule, §2.13), whether the file belongs in its profile's window (Eligible), and what status.transcode becomes on a pass (Plan) -- legacy blocks normalised, verdicts held per (profileHash, probeHash), a window grant planned from the stored probe, a dispatch grant rendered Queued, the record incorporated, and a swap taken through Swapping with the tag it was dispatched under.
Package transcodeplan is the remediation loop's transcode planner, pure (loop spec 2026-10-06 §3.1, §5.8-§5.11; ADR-0016): which TranscodeProfile wins a file (the one selection rule, §2.13), whether the file belongs in its profile's window (Eligible), and what status.transcode becomes on a pass (Plan) -- legacy blocks normalised, verdicts held per (profileHash, probeHash), a window grant planned from the stored probe, a dispatch grant rendered Queued, the record incorporated, and a swap taken through Swapping with the tag it was dispatched under.
transcode/worker
Package worker transcodes one task.Task: Process is the whole of it, and it never talks to Kubernetes (spec §9) -- every input it needs is resolved onto the task by jobspec.BuildTask before Process is ever called, and every output (progress, the result, stderr) comes back on the returned Outcome for the caller to do something with.
Package worker transcodes one task.Task: Process is the whole of it, and it never talks to Kubernetes (spec §9) -- every input it needs is resolved onto the task by jobspec.BuildTask before Process is ever called, and every output (progress, the result, stderr) comes back on the returned Outcome for the caller to do something with.
transcode/worker/graft
Package graft runs one audio graft in a graft Job's pod (anime dual-audio spec §7.2; loop spec §4.12): reduce a donor the import did not reduce to its audio, align its anchor track to the target's (pkg/audioalign), mux the dub in beside every copied stream of the target (pkg/transcode/engine), verify the muxed track, and swap the result into place as a transcode swaps.
Package graft runs one audio graft in a graft Job's pod (anime dual-audio spec §7.2; loop spec §4.12): reduce a donor the import did not reduce to its audio, align its anchor track to the target's (pkg/audioalign), mux the dub in beside every copied stream of the target (pkg/transcode/engine), verify the muxed track, and swap the result into place as a transcode swaps.
transcode/worker/inprocess
Package inprocess is the transcode worker's in-process engine: pkg/transcode/engine on ffgo, behind worker.Engine, probing through pkg/mediainfo/native.
Package inprocess is the transcode worker's in-process engine: pkg/transcode/engine on ffgo, behind worker.Engine, probing through pkg/mediainfo/native.
cmd
agent command
Command agent runs one Clustarr worker domain per process (spec §3.5).
Command agent runs one Clustarr worker domain per process (spec §3.5).
manager command
Command manager runs every Clustarr reconciler in one process (spec §3.4).
Command manager runs every Clustarr reconciler in one process (spec §3.4).
markers command
Command markers detects skip segments: a pure consumer of the markers-analyze durable (spec 2026-10-01 segment detection).
Command markers detects skip segments: a pure consumer of the markers-analyze durable (spec 2026-10-01 segment detection).
transcode command
Command transcode is a transcode pool's pod: a pure consumer of the transcode work queue (spec §9).
Command transcode is a transcode pool's pod: a pure consumer of the transcode work queue (spec §9).
ui command
Command ui serves the Clustarr web UI (spec §3.6).
Command ui serves the Clustarr web UI (spec §3.6).
config
crd/bases
Package crdbases embeds the CRDs controller-gen generates into this directory (make manifests), so a binary can read the very schema the apiserver enforces: the UI derives its settings forms from it (settings CRUD design, 2026-09-24).
Package crdbases embeds the CRDs controller-gen generates into this directory (make manifests), so a binary can read the very schema the apiserver enforces: the UI derives its settings forms from it (settings CRUD design, 2026-09-24).
hack
gen-catalogue command
Command gen-catalogue regenerates pkg/quality/catalogue/data/formats/*.json from the vendored TRaSH-Guides corpus (test/data/trash/docs/json/{radarr,sonarr}/cf), closing the Phase B library carry described in docs/superpowers/specs/2026-09-18-clustarr-design.md §7/§9: the embedded catalogue is meant to be *generated*, not hand-typed.
Command gen-catalogue regenerates pkg/quality/catalogue/data/formats/*.json from the vendored TRaSH-Guides corpus (test/data/trash/docs/json/{radarr,sonarr}/cf), closing the Phase B library carry described in docs/superpowers/specs/2026-09-18-clustarr-design.md §7/§9: the embedded catalogue is meant to be *generated*, not hand-typed.
librarycopy command
Command librarycopy copies the library kinds from a cluster where they are still custom resources into the library store (ADR-0024; the cutover runbook, docs/runbooks/library-store-cutover.md).
Command librarycopy copies the library kinds from a cluster where they are still custom resources into the library store (ADR-0024; the cutover runbook, docs/runbooks/library-store-cutover.md).
pack-cardigann command
Command pack-cardigann packs a directory of Cardigann definitions into the zip archive index embeds (app/indexer/bundle/embedded/definitions.zip).
Command pack-cardigann packs a directory of Cardigann definitions into the zip archive index embeds (app/indexer/bundle/embedded/definitions.zip).
parity-clips/cut command
Command cut is hack/parity-clips.sh's stream copy: it reads a Matroska file from standard input and writes the first -t of it to the named file with every stream copied (ffmpeg -i pipe:0 -map 0 -c copy -t 60 out), on ffgo through internal/testmedia, so no script runs the ffmpeg CLI (TestNoScriptRunsFFmpeg).
Command cut is hack/parity-clips.sh's stream copy: it reads a Matroska file from standard input and writes the first -t of it to the named file with every stream copied (ffmpeg -i pipe:0 -map 0 -c copy -t 60 out), on ffgo through internal/testmedia, so no script runs the ffmpeg CLI (TestNoScriptRunsFFmpeg).
pgassets command
Command pgassets populates a cache directory with the embedded Postgres binaries pkg/relindex's TestPostgresStoreContract needs (spec §A.2), the way `setup-envtest` populates KUBEBUILDER_ASSETS for envtest.
Command pgassets populates a cache directory with the embedded Postgres binaries pkg/relindex's TestPostgresStoreContract needs (spec §A.2), the way `setup-envtest` populates KUBEBUILDER_ASSETS for envtest.
presetbench command
Command presetbench encodes each sample the way a transcode pool worker would -- the standard's plan for the sample on this pod's measured device, through the in-process engine -- once per preset, video only, and prints one JSON line per encode: its size, its wall time and where it wrote it.
Command presetbench encodes each sample the way a transcode pool worker would -- the standard's plan for the sample on this pod's measured device, through the in-process engine -- once per preset, video only, and prints one JSON line per encode: its size, its wall time and where it wrote it.
record-metadata-fixtures command
Command record-metadata-fixtures records live TMDB and TVDB responses as test fixtures, so the metadata clients are tested against what the APIs really return rather than JSON shaped like the answer (CLAUDE.md, "A test built from a fixture shaped like the answer cannot fail").
Command record-metadata-fixtures records live TMDB and TVDB responses as test fixtures, so the metadata clients are tested against what the APIs really return rather than JSON shaped like the answer (CLAUDE.md, "A test built from a fixture shaped like the answer cannot fail").
sync-cardigann command
Command sync-cardigann fetches the Cardigann v11 indexer definitions from Prowlarr/Indexers at a pinned commit, keeps the ones pkg/cardigann loads (cardigann.LoadBundle: schema-valid, an encoding and certificates the engine can honour, under the 1 MiB IndexerDefinition cap, unique ids), and writes them to an empty directory: as the raw upstream YAML (-format yaml), a bundle directory for cardigann.LoadBundle, or as IndexerDefinition manifests (-format crd) for `kubectl apply -f`.
Command sync-cardigann fetches the Cardigann v11 indexer definitions from Prowlarr/Indexers at a pinned commit, keeps the ones pkg/cardigann loads (cardigann.LoadBundle: schema-valid, an encoding and certificates the engine can honour, under the 1 MiB IndexerDefinition cap, unique ids), and writes them to an empty directory: as the raw upstream YAML (-format yaml), a bundle directory for cardigann.LoadBundle, or as IndexerDefinition manifests (-format crd) for `kubectl apply -f`.
internal
cli
Package cli is the plumbing the cobra binaries (manager, agent, ui) share (spec §3.2).
Package cli is the plumbing the cobra binaries (manager, agent, ui) share (spec §3.2).
cli/agent
Package agent is cmd/agent's command tree (spec §3.5): one domain per process, never elected, never ensuring topology.
Package agent is cmd/agent's command tree (spec §3.5): one domain per process, never elected, never ensuring topology.
cli/ctrlflags
Package ctrlflags binds the controller-runtime flags the manager and agent binaries share onto a pflag.FlagSet, and registers the clustarr_ collectors once per process (spec §3.2).
Package ctrlflags binds the controller-runtime flags the manager and agent binaries share onto a pflag.FlagSet, and registers the clustarr_ collectors once per process (spec §3.2).
cli/librarycli
Package librarycli is what the manager's and the agents' commands share to reach the library store (ADR-0024): its address and an agent's read-only wiring.
Package librarycli is what the manager's and the agents' commands share to reach the library store (ADR-0024): its address and an agent's read-only wiring.
cli/manager
Package manager is cmd/manager's command tree (spec §3.4): every reconciler in one leader-elected process under the lease manager.clustarr.io.
Package manager is cmd/manager's command tree (spec §3.4): every reconciler in one leader-elected process under the lease manager.clustarr.io.
cli/ui
Package uicli is cmd/ui's command tree (spec §3.6).
Package uicli is cmd/ui's command tree (spec §3.6).
testmedia
Package testmedia writes deterministic test clips on ffgo, the model of an ffmpeg command line, so no test runs the ffmpeg or ffprobe CLI (owner decision of 2026-10-06; upgrade guide U2).
Package testmedia writes deterministic test clips on ffgo, the model of an ffmpeg command line, so no test runs the ffmpeg or ffprobe CLI (owner decision of 2026-10-06; upgrade guide U2).
pkg
agentdomain
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).
audioalign
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).
binpath
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).
busconn
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).
cardigann
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.
crdcheck
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.
decision
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).
download
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).
download/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.
download/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.
download/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).
dubs
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).
events
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.
events/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.
events/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.
events/membus
Package membus is an in-process implementation of events.Bus.
Package membus is an in-process implementation of events.Bus.
events/natsbus
Package natsbus implements events.Bus on NATS JetStream.
Package natsbus implements events.Bus on NATS JetStream.
events/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").
events/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.
events/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.
facadekey
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).
ffruntime
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).
ffruntime/ffmetrics
Package ffmetrics exports pkg/ffruntime's abandoned-call and panic counts.
Package ffmetrics exports pkg/ffruntime's abandoned-call and panic counts.
ffruntime/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).
fsops
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.
grouplang
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.
imageset
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):
importlist
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.
importlist/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).
importlist/custom
Package custom is a pkg/importlist provider for an arbitrary feed.
Package custom is a pkg/importlist provider for an arbitrary feed.
importlist/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).
importlist/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.
importlist/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.
importlist/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.
importlist/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.
importlist/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).
iptv
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).
iptv/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).
iptv/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.
iptv/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.
iptv/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.
iptv/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).
iptv/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).
iptv/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).
iptv/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).
iptv/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.
k8s/conditions
Package conditions reads metav1.Conditions.
Package conditions reads metav1.Conditions.
k8s/rowcache
Package rowcache is a controller-runtime cache that holds its large kinds as compressed rows instead of decoded objects.
Package rowcache is a controller-runtime cache that holds its large kinds as compressed rows instead of decoded objects.
lang
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.
lastrun
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.
library
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.
library/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).
library/readwrite
Package readwrite is the client that writes the library store: the manager's and the ui's (ADR-0024).
Package readwrite is the client that writes the library store: the manager's and the ui's (ADR-0024).
mediainfo
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.
mediainfo/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).
metadata/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).
metadata/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.
metadata/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).
metadata/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).
metadata/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).
metadata/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).
metadata/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.
metadata/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.
metadata/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.
metadata/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.
metadata/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.
metadata/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).
metadata/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.
metadata/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).
metadata/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.
metadata/clients/musicbrainz
Package musicbrainz wraps go.uploadedlobster.com/musicbrainzws2 as a metadata.ArtistProvider.
Package musicbrainz wraps go.uploadedlobster.com/musicbrainzws2 as a metadata.ArtistProvider.
metadata/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).
metadata/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).
metadata/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.
metadata/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.
metadata/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.
metadata/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).
metadata/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).
metadata/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).
metadata/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:
metadata/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).
metadata/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.
metadata/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.
naming
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.
naming/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.
newznab
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.
nfo
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.
obs/logging
Package logging is Clustarr's *slog.Logger, carried through context.
Package logging is Clustarr's *slog.Logger, carried through context.
obs/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.
obs/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.
obs/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.
offheap
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.
ortlog
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).
overlay
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).
overlay/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.
par2child
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).
pipeline
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".
placement
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.
plexfilter
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.
presence
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.
probestore
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).
quality
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).
quality/catalogue
Package catalogue is Clustarr's opinionated TRaSH custom-format catalogue.
Package catalogue is Clustarr's opinionated TRaSH custom-format catalogue.
ratelimit
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.
records
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.
records/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.
records/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.
redact
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.
release
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.
relindex
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.
relindex/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.
segments
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).
segments/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.
segments/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).
segments/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).
segments/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.
segments/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).
segments/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).
socks5
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.
socks5/socks5test
Package socks5test is a SOCKS5 server for tests.
Package socks5test is a SOCKS5 server for tests.
subtitles
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.
subtitles/asssrt
Package asssrt converts ASS and SSA subtitles to plain SubRip.
Package asssrt converts ASS and SSA subtitles to plain SubRip.
subtitles/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.
subtitles/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).
subtitles/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).
subtitles/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.
subtitles/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.
subtitles/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).
subtitles/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.
subtitles/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.
subtitles/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/.
subtitles/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).
subtitles/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.
subtitles/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.
subtitles/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.
subtitlestore
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.
textcase
Package textcase cases titles.
Package textcase cases titles.
torznab
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.
trailers
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).
transcode
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.
transcode/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.
transcode/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.
transcode/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.
transcode/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.
transcode/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.
ytdlp
Package ytdlp fetches a video from its page with the yt-dlp program: a trailer's picture and sound, as the files its site serves them in.
Package ytdlp fetches a video from its page with the yt-dlp program: a trailer's picture and sound, as the files its site serves them in.
test
fixtures command
Command clustarr-e2e-fixtures serves the in-cluster stubs the e2e suite runs against: no fixture and no test reaches the real Internet (docs/superpowers/plans/2026-09-18-remaining-work.md, Phase H).
Command clustarr-e2e-fixtures serves the in-cluster stubs the e2e suite runs against: no fixture and no test reaches the real Internet (docs/superpowers/plans/2026-09-18-remaining-work.md, Phase H).
fixtures/cardigannstub
Package cardigannstub serves a real Cardigann tracker page: a form login (test/data/cardigann/login-form.yml's own shape, served from login-form.html) and a search results page, matched exactly against how pkg/cardigann/login.go's loginForm and pkg/cardigann/search.go's searchOnePath parse them -- not a shape this package invented.
Package cardigannstub serves a real Cardigann tracker page: a form login (test/data/cardigann/login-form.yml's own shape, served from login-form.html) and a search results page, matched exactly against how pkg/cardigann/login.go's loginForm and pkg/cardigann/search.go's searchOnePath parse them -- not a shape this package invented.
fixtures/gestdownstub
Package gestdownstub serves a real Gestdown (api.gestdown.info) upstream -- a real show lookup and subtitle search, in exactly the wire shapes pkg/subtitles/providers/gestdown's client sends and parses (verified against that package's provider.go and its own test/data/subtitles/gestdown fixtures before this file was written).
Package gestdownstub serves a real Gestdown (api.gestdown.info) upstream -- a real show lookup and subtitle search, in exactly the wire shapes pkg/subtitles/providers/gestdown's client sends and parses (verified against that package's provider.go and its own test/data/subtitles/gestdown fixtures before this file was written).
fixtures/httpproxystub
Package httpproxystub is a minimal plain-HTTP forward proxy, for scenario 10's "an IndexerProxy on the HTTP path" (docs/superpowers/plans/ 2026-09-18-remaining-work.md, scenario 10).
Package httpproxystub is a minimal plain-HTTP forward proxy, for scenario 10's "an IndexerProxy on the HTTP path" (docs/superpowers/plans/ 2026-09-18-remaining-work.md, scenario 10).
fixtures/importliststub
Package importliststub serves three of pkg/importlist's providers from one process: Trakt's OAuth device-code flow plus watchlist (pkg/importlist/ trakt), the Plex Discover watchlist (pkg/importlist/plex) and an mdblist.com list export (pkg/importlist/mdblist).
Package importliststub serves three of pkg/importlist's providers from one process: Trakt's OAuth device-code flow plus watchlist (pkg/importlist/ trakt), the Plex Discover watchlist (pkg/importlist/plex) and an mdblist.com list export (pkg/importlist/mdblist).
fixtures/iptvstub
Package iptvstub is the e2e IPTV provider (Live TV spec 2026-10-07, scenario 19): an Xtream-style m3u_plus playlist of three channels in group E2E, an XMLTV guide for them over today and the next 7 days, endless MPEG-TS streams of null packets, and /stats, the open upstream connections per channel, which is how the scenario sees that two viewers share one.
Package iptvstub is the e2e IPTV provider (Live TV spec 2026-10-07, scenario 19): an Xtream-style m3u_plus playlist of three channels in group E2E, an XMLTV guide for them over today and the next 7 days, endless MPEG-TS streams of null packets, and /stats, the open upstream connections per channel, which is how the scenario sees that two viewers share one.
fixtures/mkclips command
Command mkclips writes the e2e fixture clips with internal/testmedia on ffgo, not the ffmpeg CLI (owner decision 2026-10-06; upgrade guide U2.7, W10.11).
Command mkclips writes the e2e fixture clips with internal/testmedia on ffgo, not the ffmpeg CLI (owner decision 2026-10-06; upgrade guide U2.7, W10.11).
fixtures/nntpstub
Package nntpstub serves a real NNTP upstream -- a real greeting, AUTHINFO, DATE, QUIT and BODY/STAT for a real yEnc-encoded article set, parsed by the same github.com/javi11/rapidyenc decoder pkg/download/usenet uses.
Package nntpstub serves a real NNTP upstream -- a real greeting, AUTHINFO, DATE, QUIT and BODY/STAT for a real yEnc-encoded article set, parsed by the same github.com/javi11/rapidyenc decoder pkg/download/usenet uses.
fixtures/nonvideostub
Package nonvideostub serves the non-video metadata providers pkg/metadata/clients has real clients for -- MusicBrainz, Open Library, Audnexus and ComicVine, and since the 2026-11-10 non-video libraries design (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.4) the Cover Art Archive, Wikidata plus Wikipedia's summary and Audible's catalog search -- from one process, re-serving the recorded JSON under test/data/metadata/{musicbrainz,openlibrary,audnexus,comicvine, coverart,wikipedia,audible}/.
Package nonvideostub serves the non-video metadata providers pkg/metadata/clients has real clients for -- MusicBrainz, Open Library, Audnexus and ComicVine, and since the 2026-11-10 non-video libraries design (docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §5.4) the Cover Art Archive, Wikidata plus Wikipedia's summary and Audible's catalog search -- from one process, re-serving the recorded JSON under test/data/metadata/{musicbrainz,openlibrary,audnexus,comicvine, coverart,wikipedia,audible}/.
fixtures/opensubtitlesstub
Package opensubtitlesstub serves a real OpenSubtitles.com REST v1 upstream -- a real /login, /subtitles and /download, in exactly the wire shapes pkg/subtitles/providers/opensubtitlescom's client sends and parses (verified against that package's client.go/provider.go and its own test/data/subtitles/opensubtitles fixtures before this file was written).
Package opensubtitlesstub serves a real OpenSubtitles.com REST v1 upstream -- a real /login, /subtitles and /download, in exactly the wire shapes pkg/subtitles/providers/opensubtitlescom's client sends and parses (verified against that package's client.go/provider.go and its own test/data/subtitles/opensubtitles fixtures before this file was written).
fixtures/seed
Package seed copies the lavfi-generated clip baked into the fixture image (by images/Dockerfile.e2e-fixtures's clipgen stage, test/fixtures/mkclips on ffgo) onto the shared /data volume, so test/e2e can "plant" probeable media by a plain filesystem copy -- no FFmpeg needed on the machine running `go test`, and the import agent probes real bytes, never a mock.
Package seed copies the lavfi-generated clip baked into the fixture image (by images/Dockerfile.e2e-fixtures's clipgen stage, test/fixtures/mkclips on ffgo) onto the shared /data volume, so test/e2e can "plant" probeable media by a plain filesystem copy -- no FFmpeg needed on the machine running `go test`, and the import agent probes real bytes, never a mock.
fixtures/seeder
Package seeder serves a real, known BitTorrent torrent -- a real .torrent file, a real BitTorrent listener seeding it, and a real BEP3 HTTP tracker that always answers with this seeder as the swarm -- so a real download.Client (pkg/download/torrent, D2-1) can complete a transfer against it over cluster networking.
Package seeder serves a real, known BitTorrent torrent -- a real .torrent file, a real BitTorrent listener seeding it, and a real BEP3 HTTP tracker that always answers with this seeder as the swarm -- so a real download.Client (pkg/download/torrent, D2-1) can complete a transfer against it over cluster networking.
fixtures/tmdbstub
Package tmdbstub serves TMDB's /movie/{id} and /find/{imdb_id} shapes (pkg/metadata/clients/tmdb/tmdb.go, verified against tmdb_test.go) from the recorded JSON under test/data/metadata/tmdb/.
Package tmdbstub serves TMDB's /movie/{id} and /find/{imdb_id} shapes (pkg/metadata/clients/tmdb/tmdb.go, verified against tmdb_test.go) from the recorded JSON under test/data/metadata/tmdb/.
fixtures/torznabstub
Package torznabstub serves a real Torznab upstream -- a real t=caps document and real <rss><channel><item> result feeds, byte for byte the XML in test/data/, parsed by pkg/torznab's own ParseCaps/ParseResults.
Package torznabstub serves a real Torznab upstream -- a real t=caps document and real <rss><channel><item> result feeds, byte for byte the XML in test/data/, parsed by pkg/torznab's own ParseCaps/ParseResults.
fixtures/tvdbstub
Package tvdbstub serves TheTVDB v4's login/series/episodes/updates shapes (pkg/metadata/clients/tvdb/{tvdb,auth}.go) for one real, recorded series (121361, Game of Thrones) and two fixture-owned series this task adds to exercise daily and anime absolute numbering, which test/data/metadata/tvdb does not record.
Package tvdbstub serves TheTVDB v4's login/series/episodes/updates shapes (pkg/metadata/clients/tvdb/{tvdb,auth}.go) for one real, recorded series (121361, Game of Thrones) and two fixture-owned series this task adds to exercise daily and anime absolute numbering, which test/data/metadata/tvdb does not record.
goldens
Package goldens reads the media goldens W6.23 recorded once from the exec implementations before their deletion -- ffprobeexec's probe, execextract's `ffmpeg -c:s srt` and pkg/segments/decode's ffmpeg(1) decoder -- on the committed clips under test/data/media-goldens (upgrade guide U2.3).
Package goldens reads the media goldens W6.23 recorded once from the exec implementations before their deletion -- ffprobeexec's probe, execextract's `ffmpeg -c:s srt` and pkg/segments/decode's ffmpeg(1) decoder -- on the committed clips under test/data/media-goldens (upgrade guide U2.3).
guards/depguard
Package depguard loads one package's import graph through `go list -deps` and checks it against rules (split design §4.5).
Package depguard loads one package's import graph through `go list -deps` and checks it against rules (split design §4.5).
installtest
Package installtest holds what the installer guards and the binaries' manifest tests share (spec 2026-10-06 §10.3.1): finding and running helm and kustomize, decoding what they render, and reading the RBAC roles `make manifests` generates.
Package installtest holds what the installer guards and the binaries' manifest tests share (spec 2026-10-06 §10.3.1): finding and running helm and kustomize, decoding what they render, and reading the RBAC roles `make manifests` generates.
librarytest
Package librarytest runs the library store's tests against a real Postgres: an embedded server from the binaries `make pg-assets` caches (CLUSTARR_PG_ASSETS, as pkg/relindex's contract suite uses), one server per test and one empty database per store.
Package librarytest runs the library store's tests against a real Postgres: an embedded server from the binaries `make pg-assets` caches (CLUSTARR_PG_ASSETS, as pkg/relindex's contract suite uses), one server per test and one empty database per store.
nativetest
Package nativetest is how a test asks for the native runtime -- FFmpeg 9 with the ffgo shim, ONNX Runtime, par2go, the parity CLIs -- and either skips, naming what is missing, or fails when the run says the tools must be there (CLUSTARR_REQUIRE_TOOLS=1, set by make test and CI; PAR2GO_REQUIRE=1 for par2go).
Package nativetest is how a test asks for the native runtime -- FFmpeg 9 with the ffgo shim, ONNX Runtime, par2go, the parity CLIs -- and either skips, naming what is missing, or fails when the run says the tools must be there (CLUSTARR_REQUIRE_TOOLS=1, set by make test and CI; PAR2GO_REQUIRE=1 for par2go).
par2test
Package par2test makes PAR2 sets for tests with the par2 CLI that `make native-assets` installs for this purpose only: par2go has no creator by design (spec 2026-10-06 §8.8, OD26).
Package par2test makes PAR2 sets for tests with the par2 CLI that `make native-assets` installs for this purpose only: par2go has no creator by design (spec 2026-10-06 §8.8, OD26).
starttest
Package starttest holds what the start, registration and system envtests share (spec 2026-10-06 §10.3.1): an envtest control plane, an embedded JetStream server, probe and condition waits, a held Lease, and a kubeconfig per RBAC identity so a case runs under only the role its installers bind.
Package starttest holds what the start, registration and system envtests share (spec 2026-10-06 §10.3.1): an envtest control plane, an embedded JetStream server, probe and condition waits, a held Lease, and a kubeconfig per RBAC identity so a case runs under only the role its installers bind.
ui
forms
Package forms gives each Settings kind its form: an overlay (Kind) that arranges the fields ui/schema finds in the kind's CRD into titled groups, hides workload plumbing, names the credentials behind each secretRef and the live objects a reference field chooses from; and Build, which turns the overlay, the schema and an object's spec into the render tree (Form) ui/views draws (settings CRUD design, 2026-09-24).
Package forms gives each Settings kind its form: an overlay (Kind) that arranges the fields ui/schema finds in the kind's CRD into titled groups, hides workload plumbing, names the credentials behind each secretRef and the live objects a reference field chooses from; and Build, which turns the overlay, the schema and an object's spec into the render tree (Form) ui/views draws (settings CRUD design, 2026-09-24).
paging
Package paging is the one window arithmetic the ui's list pages and their SSE streams share: a request's ?page and ?per, clamped against the list's length into a Page, and the slice of the list that page shows.
Package paging is the one window arithmetic the ui's list pages and their SSE streams share: a request's ?page and ?per, clamped against the list's length into a Page, and the slice of the list that page shows.
plex
Package plex serves clustarr's Plex Custom Metadata Provider (spec §D, docs/research/plex-metadata-provider.md): two read-only roots, /plex/movies (type 1) and /plex/tv (types 2, 3, 4), over the same catalog Options.Reader already backs everywhere else in ui/, and, under Options.MusicProvider, the music and audiobook roots /plex/music and /plex/audiobooks (types 8, 9, 10; docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §7).
Package plex serves clustarr's Plex Custom Metadata Provider (spec §D, docs/research/plex-metadata-provider.md): two read-only roots, /plex/movies (type 1) and /plex/tv (types 2, 3, 4), over the same catalog Options.Reader already backs everywhere else in ui/, and, under Options.MusicProvider, the music and audiobook roots /plex/music and /plex/audiobooks (types 8, 9, 10; docs/superpowers/specs/2026-11-10-non-video-libraries-design.md §7).
projection
Package projection is the process-wide pipeline projection loop (design plan docs/superpowers/plans/2026-09-22-phase-d3-ui.md, ruling R4).
Package projection is the process-wide pipeline projection loop (design plan docs/superpowers/plans/2026-09-22-phase-d3-ui.md, ruling R4).
prom
Package prom reads range queries from a Prometheus-compatible HTTP API (Prometheus, or Mimir under its /prometheus prefix) for the dashboard's charts: clustarr's own metrics and cluster-plex's Plex metrics, as the cluster's scraper stored them.
Package prom reads range queries from a Prometheus-compatible HTTP API (Prometheus, or Mimir under its /prometheus prefix) for the dashboard's charts: clustarr's own metrics and cluster-plex's Plex metrics, as the cluster's scraper stored them.
schema
Package schema turns a CRD's spec schema into the field tree the Settings forms render from, decodes a posted form back into a spec by that tree, and computes the merge patch an edit sends (Diff) (settings CRUD design, 2026-09-24).
Package schema turns a CRD's spec schema into the field tree the Settings forms render from, decodes a posted form back into a spec by that tree, and computes the merge patch an edit sends (Diff) (settings CRUD design, 2026-09-24).

Jump to

Keyboard shortcuts

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