goenvoy

module
v0.0.0-...-2fd8454 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT

README

Release Go

OpenSSF Scorecard OpenSSF Best Practices Codacy CodeRabbit

HISS-21 Power of 10 Conventional Commits

License

GitHub Sponsors Ko-fi

Pure-stdlib Go client libraries for media automation, metadata, and download APIs

71 modules covering 63+ services in a multi-module monorepo with zero external dependencies

goenvoy is a collection of Go client libraries for media automation, metadata, and download service APIs — 71 modules covering 63+ services. Designed as a multi-module monorepo, it allows importing only what you need, from a single library to an entire category, using only Go's standard library.

The name goenvoy combines Go and envoy — a messenger sent to deal with another party on someone's behalf, which is the role each module plays for one service API. It is pronounced "go-EN-voy" (/ɡoʊ ˈɛnvɔɪ/).

Principles · Architecture Decisions · Contributing


Why goenvoy

  • Pure stdlib — zero external dependencies, using only Go's standard library (ADR-0001).
  • Context-aware — every request method takes context.Context for cancellation and timeouts (docs/principles.md).
  • Functional options — WithHTTPClient, WithTimeout, WithHeader, and service-specific options (ADR-0004).
  • Type-safe errors — modules commonly expose APIError, with fields that vary by service; for example, NZBGet exposes an RPC code and message. See ADR-0005 and the package reference.
  • OAuth2 support — device code, authorisation code, PKCE, and refresh flows where applicable (ADR-0007).
  • Thoroughly tested — httptest-based unit tests with the race detector enabled and no live API calls (ADR-0006).

Get started

Install

Import a specific service library:

go get github.com/golusoris/goenvoy/arr/sonarr

Or import shared category types:

go get github.com/golusoris/goenvoy/arr

Usage

package main

import (
    "context"
    "fmt"
    "log"

    "github.com/golusoris/goenvoy/arr/sonarr"
)

func main() {
    client, err := sonarr.New("http://localhost:8989", "your-api-key")
    if err != nil {
        log.Fatal(err)
    }

    ctx := context.Background()

    // Get system status
    status, err := client.GetSystemStatus(ctx)
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("%s version %s\n", status.AppName, status.Version)

    // Get all series
    series, err := client.GetAllSeries(ctx)
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("Total series: %d\n", len(series))
}

Most clients follow New(baseURL, apiKey, opts...); some differ. For example, kitsu.New takes options only, while nzbget.New takes a base URL, username, and password. See ADR-0003 and each package reference for the exact signature.

At a glance

%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'ui-sans-serif, Segoe UI, Helvetica, Arial, sans-serif', 'fontSize': '15px', 'primaryColor': '#111a35', 'primaryTextColor': '#e2e8f0', 'primaryBorderColor': '#3b82f6', 'lineColor': '#3b82f6', 'edgeLabelBackground': '#111a35', 'tertiaryColor': '#0b1020'}}}%%
flowchart TD
    classDef input fill:#0b1020,stroke:#06b6d4,stroke-width:2px,color:#e2e8f0
    classDef step fill:#111a35,stroke:#3b82f6,stroke-width:2px,color:#e2e8f0
    classDef decide fill:#111a35,stroke:#8b5cf6,stroke-width:2px,color:#e2e8f0

    app["Your Go program<br/>context.Context + Options"]:::input
    arr["Arr stack<br/>arr/sonarr"]:::step
    meta["Metadata<br/>metadata/video/tmdb"]:::step
    dl["Download clients<br/>downloadclient/qbit"]:::step
    ms["Media servers<br/>mediaserver/plex"]:::step
    anime["Anime<br/>anime/shoko"]:::step
    shared["Category shared types<br/>arr · metadata · downloadclient<br/>mediaserver · anime"]:::decide
    stdlib["Go stdlib transport<br/>net/http · encoding/json"]:::step
    api["Service HTTP API<br/>REST · RPC · GraphQL"]:::input

    app --> arr & meta & dl & ms & anime
    arr & meta & dl & ms & anime --> shared
    shared --> stdlib --> api

Categories

Category Module Services
Arr Stack github.com/golusoris/goenvoy/arr Sonarr, Radarr, Lidarr, Readarr, Whisparr (v2+v3), Prowlarr, Bazarr, Seerr, Autobrr, Mylar3, Jackett, NZBHydra2
Metadata github.com/golusoris/goenvoy/metadata TMDb, TheTVDB, Fanart.tv, OMDb, TVmaze, AniList, Kitsu, AniDB, MAL, Trakt, Simkl, Letterboxd, ListenBrainz, MusicBrainz, StashBox, TPDB, OpenSubtitles, Last.fm, Discogs, TheAudioDB, Open Library, Google Books, Spotify, Deezer, IGDB, RAWG, Steam, MobyGames, SteamGridDB, RetroAchievements, ScreenScraper, Hasheous, LaunchBox
Download Clients github.com/golusoris/goenvoy/downloadclient qBittorrent, Transmission, Deluge, rTorrent, SABnzbd, NZBGet
Media Servers github.com/golusoris/goenvoy/mediaserver Plex, Jellyfin, Emby, Tautulli, Audiobookshelf, Komga, Navidrome, Kavita, Stash, Tdarr
Tools github.com/golusoris/goenvoy/tools FlareSolverr
Anime github.com/golusoris/goenvoy/anime Shoko Server

Structure

Each category has a base module with shared types, plus sub-modules for individual services:

goenvoy/
├── arr/              # shared *arr types + base client
│   ├── sonarr/       # Sonarr v3 client
│   ├── radarr/       # Radarr v3 client
│   ├── lidarr/       # Lidarr client
│   ├── readarr/      # Readarr client
│   ├── whisparr/     # Whisparr v2 + v3 (Eros) client
│   ├── prowlarr/     # Prowlarr client
│   ├── bazarr/       # Bazarr client
│   ├── seerr/        # Seerr client
│   ├── autobrr/      # Autobrr client
│   ├── cleanuparr/   # Cleanuparr client
│   ├── mylar/        # Mylar3 client
│   ├── jackett/      # Jackett client
│   └── nzbhydra/     # NZBHydra2 client
├── tools/            # adjacent automation utilities
│   └── flaresolverr/ # FlareSolverr Cloudflare-bypass client
├── metadata/         # shared metadata types (Rating, Image, Person, ...)
│   ├── video/        # TMDb, TheTVDB, Fanart.tv, OMDb, TVmaze, OpenSubtitles
│   ├── anime/        # AniList, Kitsu, AniDB, MAL
│   ├── music/        # MusicBrainz, Last.fm, Discogs, TheAudioDB, Spotify, Deezer
│   ├── tracking/     # Trakt, Simkl, Letterboxd, ListenBrainz
│   ├── adult/        # StashBox, TPDB
│   ├── book/         # Google Books, Open Library
│   └── game/         # IGDB, RAWG, Steam, MobyGames, SteamGridDB, RetroAchievements, ScreenScraper, Hasheous, LaunchBox
├── downloadclient/   # shared download types + Downloader interface
│   ├── qbit/         # qBittorrent WebUI client
│   ├── transmission/ # Transmission RPC client
│   ├── deluge/       # Deluge JSON-RPC client
│   ├── rtorrent/     # rTorrent XMLRPC client
│   ├── sabnzbd/      # SABnzbd client
│   ├── nzbget/       # NZBGet JSON-RPC client
│   └── queue/        # Unified read-only queue snapshot
├── mediaserver/      # shared media server types
│   ├── plex/         # Plex Media Server client
│   ├── jellyfin/     # Jellyfin client
│   ├── emby/         # Emby client
│   ├── tautulli/     # Tautulli client
│   ├── audiobookshelf/ # Audiobookshelf client
│   ├── komga/        # Komga client
│   ├── navidrome/    # Navidrome client
│   ├── kavita/       # Kavita client
│   ├── stash/        # StashApp GraphQL client
│   └── tdarr/        # Tdarr client
├── anime/            # shared anime types
│   └── shoko/        # Shoko Server client

Guides and reference

  • Documentation site — published guides, architecture decisions, and upstream API notes.
  • Principles — coding rules, SEI CERT Go practices, Go style, supply-chain commitments, wire protocols, and testing standards.
  • Architecture decision records — Nygard-format records for module boundaries, constructors, functional options, error types, and OAuth2 flows.
  • Upstream API references — per-service upstream API documentation URLs, target versions, and verification dates.
  • Issue and PR triage runbook — maintainer workflow for reviewing issues, pull requests, and automated checks.
  • Go package reference — generated API documentation and runnable examples on pkg.go.dev.

Contribute

Requires Go 1.26+. See CONTRIBUTING.md for full details.

# Set up workspace (local dev, links every module in the tree)
go work init && find . -name 'go.mod' -not -path './.workingdir/*' -exec dirname {} \; | xargs go work use

# Run all tests
make test-all

# Lint all modules
make lint-all

# Tidy all modules
make tidy-all

# Format all modules
make fmt-all

Support

If goenvoy saves you time, you can support maintenance through GitHub Sponsors or Ko-fi.

Roadmap and releases

Each module is versioned and released independently using per-module Git tags of the form <category>/<service>/vX.Y.Z (see ADR-0002). release-please writes release notes and each module's CHANGELOG.md from Conventional Commit subjects. The root CHANGELOG.md holds repository-wide changes from before that. Published releases and supply-chain attestations are available on the GitHub Releases page.

Upstream and licence

goenvoy is an original multi-module Go library collection released under the MIT Licence. Target upstream service versions and documentation links are tracked in docs/upstream/.

Standards and governance

  • Pure stdlib (ADR-0001), enforced in CI by depguard.
  • Per-module independent semantic versioning (ADR-0002) via <path>/vX.Y.Z tags.
  • Every release ships cosign-signed checksums, an SPDX SBOM, and SLSA Level 3 provenance (.github/workflows/release.yml).
  • Pull requests run golangci-lint, gosec, govulncheck, and race-enabled tests for each changed module. Changes to ci.yml, .golangci.yml, or tools/coverage-thresholds.json run all modules (.github/workflows/ci.yml).
  • AGENTS.md and CLAUDE.md define agent-assisted development conventions.
  • docs/adr/ records architectural decisions in Nygard format.

See CONTRIBUTING.md and SECURITY.md.

Documentation Governance

Praetor manages this repository's declared governance policy. This managed block records adoption state; it is not a verification certificate.

Verification: make verify-all runs the repository's configured verification cascade.

HISS Audit: praetorctl audit enforces policy, generated-surface integrity, and the debt ratchet.

Context Sync: praetorctl compile-context --verify verifies every generated agent context against AGENTS.md.

Documentation: make docs-lint enforces locked Markdown style and the private scratch-link policy.

Debt Baseline: .standards-baseline.json anchors the debt ratchet at 5 recorded infractions; audit forbids growth.

Directories

Path Synopsis
anime module
arr module
bazarr module
cleanuparr module
jackett module
lidarr module
prowlarr module
radarr module
readarr module
seerr module
sonarr module
whisparr module
deluge module
nzbget module
qbit module
queue module
rtorrent module
sabnzbd module
transmission module
mediaserver module
emby module
jellyfin module
plex module
stash module
tautulli module
metadata module
adult/tpdb module
anime/anidb module
anime/anilist module
anime/kitsu module
anime/mal module
game module
game/hasheous module
game/igdb module
game/rawg module
game/steam module
music/deezer module
music/discogs module
music/lastfm module
music/spotify module
video/fanart module
video/omdb module
video/tmdb module
video/tvdb module
video/tvmaze module
tools
apicompat/gate command
Command gate is the Go API compatibility gate of the api:public-contract facet.
Command gate is the Go API compatibility gate of the api:public-contract facet.
secrets/gate command
Command gate is the standalone secrets history gate.
Command gate is the standalone secrets history gate.

Jump to

Keyboard shortcuts

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