| src | ||
| vendor | ||
| .gitignore | ||
| .gitmodules | ||
| AGENTS.md | ||
| CMakeLists.txt | ||
| README.md | ||
amduat-api
amduat-api builds amduatd, a minimal HTTP server over a Unix domain socket that exposes Amduat substrate operations for a single ASL store root.
Build
cmake -S . -B build
cmake --build build -j
Core dependency
This repo vendors the core implementation as a git submodule at vendor/amduat.
git submodule update --init --recursive
Quickstart (local)
Initialize a store:
./vendor/amduat/build/amduat-asl init --root .amduat-asl
Run the daemon:
./build/amduatd --root .amduat-asl --sock amduatd.sock
Query store meta:
curl --unix-socket amduatd.sock http://localhost/v1/meta
Upload raw bytes:
curl --unix-socket amduatd.sock -X POST http://localhost/v1/artifacts \
-H 'Content-Type: application/octet-stream' \
--data-binary 'hello'
Download raw bytes:
curl --unix-socket amduatd.sock http://localhost/v1/artifacts/<ref>
Download artifact framing (ENC/ASL1-CORE v1):
curl --unix-socket amduatd.sock \
'http://localhost/v1/artifacts/<ref>?format=artifact' --output artifact.bin
Current endpoints
GET /v1/meta→{store_id, encoding_profile_id, hash_id}POST /v1/artifacts- raw bytes:
Content-Type: application/octet-stream(+ optionalX-Amduat-Type-Tag: 0x...) - artifact framing:
Content-Type: application/vnd.amduat.asl.artifact+v1
- raw bytes:
GET|HEAD /v1/artifacts/{ref}- raw bytes default
- artifact framing:
?format=artifact
Notes
- This is intentionally a local-first surface (Unix socket, no TLS). HTTPS can be added later without changing the semantics.