angelia

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0

README

Angelia

OpenSSF Scorecard

Angelia (ἀγγελία): ancient Greek for "message, news". The spirit of announcements and a daughter of Hermes.

The self-hosted release event bus. Angelia watches upstream artifacts (PyPI, npm, crates.io, GitHub/GitLab releases, OCI images, …), detects every new version, and delivers one clean, signed, machine-readable event (CloudEvents) to your CI, your chat, or your AI agents.

Detect → normalize → deliver.

Status

Pre-alpha / Phase 0. Nothing here is usable yet. Part of the angelia-dev organization. Design docs:

Work is tracked on the Angelia Roadmap board. Contributors, human or AI, start with AGENTS.md.

Planned repositories (GitHub org angelia-dev)

Repo Purpose
angelia Core server, CLI, built-in sources and sinks
spec Event schema (CloudEvents types, JSON Schema) and OpenAPI
actions GitHub Action to consume Angelia events
helm-charts Kubernetes deployment
docs Website and documentation
plugin-sdk WASM plugin SDKs and conformance kit (later)
ui Web UI (later)

Run it

Container images and Docker Compose examples are in deploy/compose/: one container with SQLite on a volume, and a full stack with Postgres (placeholder until the Postgres store lands). The image is not published yet.

Development

Requires Go 1.27 or newer (the toolchain pinned in go.mod; Go downloads it automatically) and golangci-lint v2.15.0 or newer, built with Go 1.27 or newer. Run these from the repository root (make help lists them):

Command What it does
make build Builds bin/angelia with CGO_ENABLED=0 and injects version, commit and build date via -ldflags
make test Runs go test -race ./...
make lint Runs golangci-lint run and the gofumpt format check (golangci-lint fmt --diff), config in .golangci.yml
make vuln Runs govulncheck (pinned version) on all packages; needs access to vuln.go.dev
make generate Runs go generate ./... (sqlc, oapi-codegen); commit the output
make clean Removes bin/

Print the build info with ./bin/angelia version.

License

Apache-2.0

Directories

Path Synopsis
api
openapi
Package openapi embeds the vendored REST API specification (see api/README.md).
Package openapi embeds the vendored REST API specification (see api/README.md).
bench
crash command
Command crash is Phase 0 benchmark 5 (architecture.md section 6, story angelia-dev/angelia#109): it kills angelia with SIGKILL at random points during heavy dispatch to a recording webhook receiver, restarts it each time, and then checks that every delivery arrived at least once and that duplicates share their idempotency key.
Command crash is Phase 0 benchmark 5 (architecture.md section 6, story angelia-dev/angelia#109): it kills angelia with SIGKILL at random points during heavy dispatch to a recording webhook receiver, restarts it each time, and then checks that every delivery arrived at least once and that duplicates share their idempotency key.
fakereg
Package fakereg is a fake package registry for the Phase 0 scale benchmark (architecture.md section 6, benchmark 1).
Package fakereg is a fake package registry for the Phase 0 scale benchmark (architecture.md section 6, benchmark 1).
fakereg/cmd/fakereg command
Command fakereg runs the fake registry on its own, for manual runs:
Command fakereg runs the fake registry on its own, for manual runs:
github/genrepos command
Command genrepos builds the watch list of Phase 0 benchmark 3 (bench/github/repos.txt, story angelia-dev/angelia#64): public GitHub repositories that publish releases, a mix of very popular, active, quiet and smaller ones.
Command genrepos builds the watch list of Phase 0 benchmark 3 (bench/github/repos.txt, story angelia-dev/angelia#64): public GitHub repositories that publish releases, a mix of very popular, active, quiet and smaller ones.
load command
Command load is the Phase 0 scale benchmark (architecture.md section 6, benchmark 1): it starts the fake registry, writes N watches over the ecosystems angelia has a source for into a watch file, runs `angelia serve` with it (in a CPU and memory limited container, or as a plain process with -container=false), samples memory and CPU, reads the due-to-check delay from angelia's metrics and writes report.json and report.md.
Command load is the Phase 0 scale benchmark (architecture.md section 6, benchmark 1): it starts the fake registry, writes N watches over the ecosystems angelia has a source for into a watch file, runs `angelia serve` with it (in a CPU and memory limited container, or as a plain process with -container=false), samples memory and CPU, reads the due-to-check delay from angelia's metrics and writes report.json and report.md.
ordering command
Command ordering is Phase 0 benchmark 6: it checks that our version schemes order real PyPI and npm version lists exactly as the registries' own tooling does (packaging for PyPI, node-semver for npm).
Command ordering is Phase 0 benchmark 6: it checks that our version schemes order real PyPI and npm version lists exactly as the registries' own tooling does (packaging for PyPI, node-semver for npm).
plugins
Package plugins embeds the prebuilt WASM plugins of benchmark 4 (angelia-dev/angelia#59) and their draft manifests.
Package plugins embeds the prebuilt WASM plugins of benchmark 4 (angelia-dev/angelia#59) and their draft manifests.
plugins/goplugin
Package goplugin is the hashicorp/go-plugin prototype of the third-party plugin spike (angelia-dev/angelia#60, ADR 0013): the core side (Source, a source.Source backed by a plugin subprocess, and the Host service through which the plugin sends HTTP) and the plugin side (Serve).
Package goplugin is the hashicorp/go-plugin prototype of the third-party plugin spike (angelia-dev/angelia#60, ADR 0013): the core side (Source, a source.Source backed by a plugin subprocess, and the Host service through which the plugin sends HTTP) and the plugin side (Serve).
plugins/goplugin/cmd/angelia-plugin-crates command
Command angelia-plugin-crates is the crates.io source as a go-plugin plugin binary (prototype, angelia-dev/angelia#60).
Command angelia-plugin-crates is the crates.io source as a go-plugin plugin binary (prototype, angelia-dev/angelia#60).
plugins/goplugin/crates
Package crates is the crates.io source of bench/plugins/crates/src/lib.rs ported to Go, line for line, as a go-plugin plugin (angelia-dev/angelia#60).
Package crates is the crates.io source of bench/plugins/crates/src/lib.rs ported to Go, line for line, as a go-plugin plugin (angelia-dev/angelia#60).
plugins/goplugin/goplugintest
Package goplugintest starts go-plugin plugins from a test binary: the test binary re-executes itself as the plugin, so tests need no separate build step.
Package goplugintest starts go-plugin plugins from a test binary: the test binary re-executes itself as the plugin, so tests need no separate build step.
wasm
Package wasm is benchmark 4 of architecture.md section 6: the overhead of a WASM source plugin (ADR 0011) and of a go-plugin subprocess (ADR 0013) per List call, against a native Go implementation of the same crates.io source.
Package wasm is benchmark 4 of architecture.md section 6: the overhead of a WASM source plugin (ADR 0011) and of a go-plugin subprocess (ADR 0013) per List call, against a native Go implementation of the same crates.io source.
cmd
angelia command
Command angelia is the single Angelia binary: server, workers and CLI.
Command angelia is the single Angelia binary: server, workers and CLI.
deploy
compose/ci command
Command ciharness holds the two test doubles and the assertion of the CI quickstart check (deploy/compose/README.md, "Quickstart check (CI)").
Command ciharness holds the two test doubles and the assertion of the CI quickstart check (deploy/compose/README.md, "Quickstart check (CI)").
internal
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
apiclient
Package apiclient provides primitives to interact with the openapi HTTP API.
Package apiclient provides primitives to interact with the openapi HTTP API.
apply
Package apply holds the plan logic of `angelia apply` (story #73): reading watch files (docs/watch-file.md, unchanged), the label scope of --prune and the diff of the report.
Package apply holds the plan logic of `angelia apply` (story #73): reading watch files (docs/watch-file.md, unchanged), the label scope of --prune and the diff of the report.
buildinfo
Package buildinfo exposes the version, commit and build date of the binary.
Package buildinfo exposes the version, commit and build date of the binary.
config
Package config loads and validates the instance configuration: the settings of one Angelia process (listen address, database, roles, logging).
Package config loads and validates the instance configuration: the settings of one Angelia process (listen address, database, roles, logging).
detect
Package detect is the scheduler's Checker: it fetches a target through the source registered for its kind and commits what it found (known set, held versions, events, deliveries) through event.Commit, the transactional outbox.
Package detect is the scheduler's Checker: it fetches a target through the source registered for its kind and commits what it found (known set, held versions, events, deliveries) through event.Commit, the transactional outbox.
diff
Package diff compares a target's known version set with the versions a source just fetched and reports what changed (architecture.md §3.4): new versions, including backports such as 1.9.4 released after 2.0.0, yank and un-yank transitions, and versions that stopped being listed upstream.
Package diff compares a target's known version set with the versions a source just fetched and reports what changed (architecture.md §3.4): new versions, including backports such as 1.9.4 released after 2.0.0, yank and un-yank transitions, and versions that stopped being listed upstream.
dispatch
Package dispatch is the "dispatcher" role: it leases due deliveries, sends them through their sink, retries failures with full-jitter exponential backoff, and sets them dead after a permanent error or the last attempt (ADR 0017).
Package dispatch is the "dispatcher" role: it leases due deliveries, sends them through their sink, retries failures with full-jitter exponential backoff, and sets them dead after a permanent error or the last attempt (ADR 0017).
event
Package event turns what a watch policy emits into immutable release events and their deliveries (architecture.md §2 decision 4, §4).
Package event turns what a watch policy emits into immutable release events and their deliveries (architecture.md §2 decision 4, §4).
metrics
Package metrics exposes Angelia's Prometheus metrics (ADR 0019).
Package metrics exposes Angelia's Prometheus metrics (ADR 0019).
netguard
Package netguard is the one HTTP client used by every source and sink, so that politeness and safety are enforced in one place.
Package netguard is the one HTTP client used by every source and sink, so that politeness and safety are enforced in one place.
plugin
Package plugin hosts third-party plugins.
Package plugin hosts third-party plugins.
plugin/wasm
Package wasm hosts source plugins compiled to WebAssembly, on Extism and wazero (pure Go, no CGO).
Package wasm hosts source plugins compiled to WebAssembly, on Extism and wazero (pure Go, no CGO).
plugin/wasm/wasmtest
Package wasmtest holds test helpers for the WASM plugin host: a fake crates.io API with synthetic data, used by the host's tests and by benchmark 4 (bench/wasm).
Package wasmtest holds test helpers for the WASM plugin host: a fake crates.io API with synthetic data, used by the host's tests and by benchmark 4 (bench/wasm).
policy
Package policy applies filters, prerelease mode, constraints, cooldown and baseline.
Package policy applies filters, prerelease mode, constraints, cooldown and baseline.
render
Package render turns a release event into the body a sink delivers, with the subscription's Go text/template or, when it has none, the event's CloudEvents JSON (architecture.md §3.5, ADR 0016, docs/templates.md).
Package render turns a release event into the body a sink delivers, with the subscription's Go text/template or, when it has none, the event's CloudEvents JSON (architecture.md §3.5, ADR 0016, docs/templates.md).
scheduler
Package scheduler is the "scheduler" role (architecture.md §3.2, ADR 0009).
Package scheduler is the "scheduler" role (architecture.md §3.2, ADR 0009).
secrets
Package secrets stores secret values encrypted at rest (story #75, ADR 0024).
Package secrets stores secret values encrypted at rest (story #75, ADR 0024).
sink
Package sink contains the Sink implementations, one subpackage per kind.
Package sink contains the Sink implementations, one subpackage per kind.
sink/githubdispatch
Package githubdispatch is the "github-dispatch" sink (spec GithubDispatchSinkConfig, docs/github-dispatch.md): it triggers a repository_dispatch event or a workflow_dispatch run in one GitHub repository, through the netguard client.
Package githubdispatch is the "github-dispatch" sink (spec GithubDispatchSinkConfig, docs/github-dispatch.md): it triggers a repository_dispatch event or a workflow_dispatch run in one GitHub repository, through the netguard client.
sink/shoutrrr
Package shoutrrr is the "shoutrrr" sink (ADR 0026): it sends a plain-text message to one chat or push service (slack, discord, telegram, ntfy, gotify, matrix) through the github.com/nicholas-fedor/shoutrrr service packages, never its router.
Package shoutrrr is the "shoutrrr" sink (ADR 0026): it sends a plain-text message to one chat or push service (slack, discord, telegram, ntfy, gotify, matrix) through the github.com/nicholas-fedor/shoutrrr service packages, never its router.
sink/webhook
Package webhook is the "webhook" sink (ADR 0023): it POSTs a delivery's message to a URL, signed per Standard Webhooks v1, through the netguard client.
Package webhook is the "webhook" sink (ADR 0023): it POSTs a delivery's message to a URL, signed per Standard Webhooks v1, through the netguard client.
source
Package source defines the Source contract (architecture.md section 3.3) and a Registry of Source implementations by kind.
Package source defines the Source contract (architecture.md section 3.3) and a Registry of Source implementations by kind.
source/crates
Package crates is the Source for crates.io.
Package crates is the Source for crates.io.
source/githubrelease
Package githubrelease is the "github-release" Source: it lists the releases of a GitHub (or GitHub Enterprise) repository.
Package githubrelease is the "github-release" Source: it lists the releases of a GitHub (or GitHub Enterprise) repository.
source/githubtag
Package githubtag is the "github-tag" Source: it lists the git tags of a GitHub (or GitHub Enterprise) repository that does not publish releases.
Package githubtag is the "github-tag" Source: it lists the git tags of a GitHub (or GitHub Enterprise) repository that does not publish releases.
source/gitlabrelease
Package gitlabrelease is the "gitlab-release" Source: it lists the releases of a project on gitlab.com or on a self-managed GitLab instance.
Package gitlabrelease is the "gitlab-release" Source: it lists the releases of a project on gitlab.com or on a self-managed GitLab instance.
source/internal/apiclient
Package apiclient holds the token and redirect plumbing shared by the sources that call an authenticated HTTP API (github-release, github-tag, gitlab-release): the redacting token type, token providers, the test for where credentials may travel, the redirect guard that never carries credentials to another host or to plain http, and the fetch helper that adds the 404 and 401 hints.
Package apiclient holds the token and redirect plumbing shared by the sources that call an authenticated HTTP API (github-release, github-tag, gitlab-release): the redacting token type, token providers, the test for where credentials may travel, the redirect guard that never carries credentials to another host or to plain http, and the fetch helper that adds the 404 and 401 hints.
source/internal/ghapi
Package ghapi holds the GitHub-specific plumbing shared by the GitHub-API based sources (github-release, github-tag): the default base URL, the "owner/name" coordinate parser and the authenticated GET helper.
Package ghapi holds the GitHub-specific plumbing shared by the GitHub-API based sources (github-release, github-tag): the default base URL, the "owner/name" coordinate parser and the authenticated GET helper.
source/npm
Package npm is the Source for the npm registry.
Package npm is the Source for the npm registry.
source/pypi
Package pypi is the Source for PyPI releases (architecture.md section 3.3).
Package pypi is the Source for PyPI releases (architecture.md section 3.3).
source/registryauth
Package registryauth adds the credential of a private registry or mirror (PRD F16) to every request of a source's HTTP client, so the sources themselves stay credential-free.
Package registryauth adds the credential of a private registry or mirror (PRD F16) to every request of a source's HTTP client, so the sources themselves stay credential-free.
source/sourcetest
Package sourcetest is the contract test suite every source.Source must pass.
Package sourcetest is the contract test suite every source.Source must pass.
store
Package store defines the persistence contract for watches, versions, events and deliveries (docs/architecture.md §5).
Package store defines the persistence contract for watches, versions, events and deliveries (docs/architecture.md §5).
store/migrations
Package migrations holds the versioned goose migrations of the store schema, embedded into the binary, one directory per engine.
Package migrations holds the versioned goose migrations of the store schema, embedded into the binary, one directory per engine.
store/sqlite
Package sqlite implements store.Store on SQLite through the pure-Go modernc.org/sqlite driver (no CGO).
Package sqlite implements store.Store on SQLite through the pure-Go modernc.org/sqlite driver (no CGO).
store/storetest
Package storetest is the engine-independent test suite of the store contracts (store.Store, store.APIStore and store.SecretStore).
Package storetest is the engine-independent test suite of the store contracts (store.Store, store.APIStore and store.SecretStore).
subscription
Package subscription matches release events to subscription filters.
Package subscription matches release events to subscription filters.
supervisor
Package supervisor runs the Angelia roles (api, scheduler, worker, dispatcher) inside one process, serves /healthz and /readyz, and shuts everything down gracefully on cancellation.
Package supervisor runs the Angelia roles (api, scheduler, worker, dispatcher) inside one process, serves /healthz and /readyz, and shuts everything down gracefully on cancellation.
telemetry
Package telemetry is Angelia's OpenTelemetry tracing (story #118, ADR 0020).
Package telemetry is Angelia's OpenTelemetry tracing (story #118, ADR 0020).
telemetry/telemetrytest
Package telemetrytest records spans in memory for tests.
Package telemetrytest records spans in memory for tests.
ulid
Package ulid generates ULIDs (https://github.com/ulid/spec): 48 bits of Unix milliseconds then 80 random bits, written as 26 characters of Crockford base32, upper case.
Package ulid generates ULIDs (https://github.com/ulid/spec): 48 bits of Unix milliseconds then 80 random bits, written as 26 characters of Crockford base32, upper case.
version
Package version defines how Angelia parses, orders and classifies upstream versions.
Package version defines how Angelia parses, orders and classifies upstream versions.
version/calver
Package calver implements calendar versioning for tags such as "2026.10.1", "2026.10.15", "2026.3", "24.04" and "24.04.1-rc1".
Package calver implements calendar versioning for tags such as "2026.10.1", "2026.10.15", "2026.3", "24.04" and "24.04.1-rc1".
version/lexical
Package lexical is the fallback version scheme: any non-blank string is a version, ordered by natural string order (version.Natural), so "1.10" sorts after "1.9".
Package lexical is the fallback version scheme: any non-blank string is a version, ordered by natural string order (version.Natural), so "1.10" sorts after "1.9".
version/pep440
Package pep440 implements Python version identifiers as specified by PEP 440 / the PyPA "Version specifiers" specification, including epochs, pre-, post- and dev-releases, local versions and the normalization rules (case, separators, spelling variants such as "alpha", "c", "rev", implicit numbers and implicit post-releases "1.0-1").
Package pep440 implements Python version identifiers as specified by PEP 440 / the PyPA "Version specifiers" specification, including epochs, pre-, post- and dev-releases, local versions and the normalization rules (case, separators, spelling variants such as "alpha", "c", "rev", implicit numbers and implicit post-releases "1.0-1").
version/schemes
Package schemes chooses the version scheme of a watch (by source kind, overridable per watch) and wraps it so that unparseable versions fall back to the lexical scheme instead of failing.
Package schemes chooses the version scheme of a watch (by source kind, overridable per watch) and wraps it so that unparseable versions fall back to the lexical scheme instead of failing.
version/semver
Package semver implements Semantic Versioning 2.0.0 (https://semver.org) with the npm-style loose prefix: surrounding white space, a leading "=" and a leading "v" or "V" are accepted and dropped ("v1.2.3" == "1.2.3").
Package semver implements Semantic Versioning 2.0.0 (https://semver.org) with the npm-style loose prefix: surrounding white space, a leading "=" and a leading "v" or "V" are accepted and dropped ("v1.2.3" == "1.2.3").
watchfile
Package watchfile loads the declarative watch file (docs/watch-file.md): the sinks, watches and subscriptions an instance manages until the REST API exists.
Package watchfile loads the declarative watch file (docs/watch-file.md): the sinks, watches and subscriptions an instance manages until the REST API exists.

Jump to

Keyboard shortcuts

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