Ditto Architecture
Ditto is a Deno/TypeScript application comprised of the following parts:
- Web Server (HTTP) - web server built with Hono.
- Mastodon API (
/api
) - implementation of Mastodon's client-server REST API. - Nostr Relay (
/relay
) - NIP-01 relay implementation. - SQL - Postgres database for storing Nostr events.
- Relay Pool - connection pool to a list of Nostr relays, configured by the Ditto admin.
- Firehose - stream of Nostr events from the Relay Pool to the Pipeline.
- Pipeline - processes all Nostr events that go through Ditto, from all sources.