The Forge upload service in Go (formerly the Storacha upload service).
The repo ships a docker-compose.yaml that brings up sprue alongside
PostgreSQL and MinIO for self-hosted development:
docker compose up -d postgres minio
SPRUE_STORAGE_POSTGRES_DSN="postgres://sprue:sprue@localhost:5432/sprue?sslmode=disable" \
./sprue servePostgres is the default store backend, so no extra flag is required.
Sprue supports three store backends, selected by
storage.type (or SPRUE_STORAGE_TYPE; defaults to postgres):
memory— in-process only; all data is lost on restart. Dev/test only.postgres— PostgreSQL for metadata + S3-compatible storage (MinIO, Ceph, AWS S3) for storing payloads of invocations, receipts, and delegations. Schema is managed by goose migrations embedded ininternal/migrations/sql/and applied on startup.aws— DynamoDB for metadata + S3 for storing payloads of invocations, receipts, and delegations.
Sprue writes all logs to stdout/stderr through zap.
HTTP request logs are routed through the same zap logger (via Echo's
RequestLoggerWithConfig middleware), so application and request logs share one
output and format.
The output format depends on the mode. By default sprue uses zap's production
configuration, which emits a single JSON stream. When the log level is debug or
the deployment environment is development/test, sprue uses zap's development
configuration, which emits a human-readable console format (not JSON).
The JSON output makes it straightforward to collect logs with a sidecar such as
Grafana Alloy or Promtail: point the collector at the container's stdout/stderr
and use a json pipeline stage to extract fields like level, ts, and msg.
Request logs carry method, uri, status, latency, request_id,
content_length, response_size, headers, and related fields, and use the
request completed / client error / server error messages.
- Rate limits storage was not implemented. It has never been used in JS implementation, only supports blocking completely and can probably be applied at firewall.
- Plans, provisions, subscriptions, usage are not stores, they are services.
- The following dynamo tables have GSIs that do not exist in w3infra that need to be added:
consumer-consumerV3andcustomerV2
- Using
cid.Cidin new code overipld.Linkto ease transition to UCAN 1.0 when it comes. retrievalAuthis now an array of CIDs - an explicit delegation chain./upload/addnow takes an optionalindexCID, allowing us to track/remove indexes.