Crate map and API boundaries

hort is a Rust workspace organized around domain behavior, application use cases, protocol handlers, adapters, and executable entry points.

Main layers

LayerExample cratePurpose
Domainhort-domainEntities, events, and port traits; no infrastructure I/O.
Applicationhort-appUse cases and orchestration through declared ports.
Protocol handlershort-http-oci, hort-http-npm, hort-http-pypi, hort-http-cargo, hort-http-mavenHTTP-facing registry protocol behavior.
Format logichort-formatsFormat-specific parsing and normalization.
Infrastructurehort-adapters-postgres, hort-adapters-storage, hort-adapters-oidcImplement domain ports with external systems.
Compositionhort-server, hort-workerWire infrastructure and run server/background tasks.
Configurationhort-configParse and validate declared configuration.
CLIhort-cliOperator-facing command-line application.

Dependency direction

Inbound HTTP handlers call application use cases, which depend on domain ports; outbound adapters implement domain ports and server wires both.
Conceptual crate-layer boundaries, not a complete Cargo dependency graph.

Are these public SDKs?

Do not infer a stable public API from a crate name. Several crates exist to implement hort itself. Their presence in a Cargo workspace does not promise independent semantic-versioning compatibility, a plugin ABI, or dynamic runtime loading. Consult each crate's manifest and public API before adopting it as a dependency.

For changes inside the repository, see Ports and adapters. For the up-to-date list of all workspace members, read Cargo.toml.

View Markdown source on GitHub