cadi-server

Crates.iocadi-server
lib.rscadi-server
version1.1.1
created_at2026-01-12 03:20:32.050993+00
updated_at2026-01-12 05:54:30.732446+00
descriptionCADI registry server for content-addressed chunk storage and retrieval
homepagehttps://github.com/ConflictingTheories/cadi
repositoryhttps://github.com/ConflictingTheories/cadi
max_upload_size
id2036940
size80,168
Kyle Derby MacInnis (ConflictingTheories)

documentation

README

CADI Server

Registry server for CADI (Content-Addressed Development Interface).

Overview

The CADI server provides HTTP APIs for storing, retrieving, and managing content-addressed code chunks. It serves as the backend for CADI registries.

Installation

cargo install cadi-server

Usage

cadi-server

With custom bind address:

CADI_BIND_ADDRESS=0.0.0.0:8080 cadi-server

API Endpoints

Chunks

  • GET /chunks/:id - Retrieve a chunk by content hash
  • POST /chunks - Store a new chunk
  • GET /chunks/:id/metadata - Get chunk metadata

Health

  • GET /health - Health check endpoint

Search

  • GET /search?q=<query> - Search for chunks

Configuration

Environment variables:

Variable Default Description
CADI_BIND_ADDRESS 0.0.0.0:8080 Server bind address
CADI_STORAGE /data Storage path for chunks
RUST_LOG cadi_server=info Log level

Docker

docker run -p 8080:8080 -v ./data:/data cadi/registry:latest

License

MIT

Commit count: 66

cargo fmt