atproto pds pds.zat.dev
README.md

zds #

an AT Protocol personal data server in Zig, built on zat for protocol primitives and webauthn for passkeys.

live: pds.zat.dev

Spaces support is experimental; protocol updates can require coordinated client migrations.

featured in the atproto spaces alpha. name credit: jim (calabro.io) suggested zds.

develop #

requires Zig 0.17.1. smoke tests also use Just, uv, curl, jq, and SQLite.

zig build                                       # build binaries
zig build run -- --port 2583 --db dev/zds.sqlite3  # local server
just test                                       # unit tests
just smoke-all                                  # public and permissioned HTTP tests

run #

container images are published to knotless and mirrored to ATCR:

docker pull knotless.dev/zat.dev/zds
docker pull atcr.io/zat.dev/zds:latest

see the operator guide for configuration, persistent storage, and deployment behind a public HTTPS origin.

backups #

the image ships Litestream: set ZDS_LITESTREAM_BUCKET plus S3 credentials and it streams the SQLite database to any S3-compatible bucket (Cloudflare R2, S3, B2, MinIO, ...). zds can also mirror every blob to the same bucket. pds.zat.dev and zds.zzstoatzz.io both run this way against R2. settings, the restore drill and recovery steps are in docs/backups.md.

ZDS_LITESTREAM_BUCKET=zds-backups
AWS_ENDPOINT_URL_S3=https://<account_id>.r2.cloudflarestorage.com
AWS_REGION=auto
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...

docs #

docs/ contains architecture, development, operations, and protocol notes.

license #

MIT · changelog