hangar

command module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Hangar

Self-hosted object storage in Go. Content-addressed chunks (blake3 + zstd) on Pebble, served via Fiber. Native HTTP API and S3-compatible API on the same storage.

Full documentation: hangar.mth.lc

Single-node or cluster mode. Cluster mode (HRW chunk placement RF=2 or Reed-Solomon k+m, key-sharded metadata, replicated system state, WAL catchup, anti-entropy, seed-based dynamic membership, zone-aware placement, deep-scrub, secret rotation, optional dRPC TLS) is beta — see hangar.mth.lc.

Quickstart

make build
./bin/hangar server -c config.toml

A default config.toml is generated on first start. The HTTP API binds to :8080; the S3 API is disabled by default — enable it in [s3].

Docker

Pre-built multi-arch image on GHCR:

docker run --rm -p 8080:8080 -v $(pwd)/data:/data ghcr.io/sowahq/hangar:latest

Or build locally:

make docker
docker run --rm -p 8080:8080 -v $(pwd)/data:/data hangar:dev
Pre-built binaries

Linux / macOS / Windows binaries for tagged releases: github.com/sowahq/hangar/releases.

Development

make test        # tests
make test-race   # race detector
make vet         # static analysis
make fmt         # format

License

AGPL-3.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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