zoedsoupe

zoedsoupe

pesque is a Personal Data Server (PDS) for ATProto, written in Elixir. I know most of elixir developers use bluesky and i really love digital sovereign and federation protocols, so it became natural t build a PDS in the language i love.

A PDS is the server that holds your account and your repository in the AT Protocol: it stores records, signs commits, hands those commits to anyone who asks, and answers describeServer well enough that a client can decide to talk to it.

What it does

  • Account creation, with invite codes, did:web by default and did:plc when configured
  • OAuth (PAR, PKCE, DPoP) alongside legacy session tokens, so both new and old clients work
  • Signed repositories, public reads, blob storage, and a server-push firehose with cursor replay
  • Identity, handle resolution, service auth, and rate limiting

What makes it different

State is one SQLite file and one directory of blobs. The idea was to deviate explicit from the official TypeScript implementation since the focus here is to provide a simpler implementation a single operator or a small community can maintain and self-host their own data/PDS, without handling complex deployments with Postgres, S3 and etc.

The protocol primitives (CIDs, DAG-CBOR, the Merkle Search Tree, CAR archives, TIDs, JWTs, secp256k1) are implemented in-house since this is the funny coding part of the challenge =p.

The code is split three ways and the dependency direction only points down: a pure protocol core (Pesque.CBOR, Pesque.CID, Pesque.Mst, Pesque.Car, Pesque.Commit), an imperative shell that touches the world (Pesque.RepoStore, Pesque.Storage, Pesque.Accounts), and an HTTP edge (PesqueWeb.*). Writes serialize through one process per repository, which is the consistency model a PDS actually needs.

Status

Already workings asking for feedback and improvements! I’ll try to migrate my own account from did:plc (zoedsoupe.zeetech.io) to my own instance and will try to document the experience + found bugs.

Not implemented yet: signPlcOperation and requestPlcOperationSignature (the old PDS signs the move), and granular OAuth consent.

Running it

Needs Elixir 1.19+ and a C toolchain (the SQLite driver compiles from source).

MIX_ENV=prod mix deps.get, release

To host an account:

mix pesque.create_account --handle alice.example.com --email alice@example.com

Guides

  • Installation, identity, operations and migration guides live in docs/guides
  • The architecture reference (module map, write path, storage layout) is in docs/reference/architecture.md

Feedback

I’d love feedback, especially from people who know ATProto or have operated a PDS, and from anyone who reads the protocol code and disagrees with a choice. What’s missing, what’s wrong, what you’d want next.

Where Next? Top

Trending in Announcing Top

achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New
danschultzer
I’ve moved the strategies out of PowAssent and created a multi-provider framework for Elixir. This way the strategies can be used in any ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews