···11microcosm
22=========
3344-This repo contains APIs and libraries for [atproto](https://atproto.com/) services from [microcosm](https://microcosm.blue):
44+HTTP APIs and rust libraries for [atproto](https://atproto.com/) services from [microcosm](https://microcosm.blue).
55+66+[](https://bsky.app/profile/microcosm.blue)
77+[](https://discord.gg/tcDfe4PGVB)
88+[](https://github.com/sponsors/uniphil/)
99+[](https://ko-fi.com/bad_example)
1010+1111+Welcome!
1212+1313+The documentation for microcosm services is under active development. If you like reading API docs, you'll probably hit the ground running!
1414+1515+Tutorials, how-to guides, and client SDK libraries are all in the works for gentler on-ramps, but are not quite ready yet. But don't let that stop you! Hop in the [microcosm discord](https://img.shields.io/badge/microcosm_discord-join-purple), or post questions and tag [@bad-example.com](https://bsky.app/profile/bad-example.com) on Bluesky if you get stuck anywhere!
1616+1717+This repository's primary home is moving to tangled: [@microcosm.blue/microcosm-rs](https://tangled.sh/@microcosm.blue/microcosm-rs). It will continue to be mirrored on [github](https://github.com/at-microcosm/microcosm-rs) for the forseeable future, and it's fine to open issues or pulls in either place!
518619720🌌 [Constellation](./constellation/)
···9221023A global atproto interactions backlink index as a simple JSON API. Works with every lexicon, runs on a raspberry pi, consumes less than 2GiB of disk per day. Handles record deletion, account de/re-activation, and account deletion, ensuring accurate link counts while respecting users' data choices.
11241212-- source: [./constellation/](./constellation/)
1313-- [public instance + API docs](https://constellation.microcosm.blue/)
1414-- status: used in production. APIs will change but backwards compatibility will be maintained as long as needed.
2525+- Source: [./constellation/](./constellation/)
2626+- [Public instance/API docs](https://constellation.microcosm.blue/)
2727+- Status: used in production. APIs will change but backwards compatibility will be maintained as long as needed.
152816291730🎇 [Spacedust](./spacedust/)
···19322033A global atproto interactions firehose. Extracts all at-uris, DIDs, and URLs from every lexicon in the firehose, and exposes them over a websocket modelled after [jetstream](github.com/bluesky-social/jetstream).
21342222-- source: [./spacedust/](./spacedust/)
2323-- [public instance + API docs](https://spacedust.microcosm.blue/)
2424-- status: v0: the basics work and the APIs are in place! missing cursor replay, forward link storage, and delete event link hydration.
3535+- Source: [./spacedust/](./spacedust/)
3636+- [Public instance/API docs](https://spacedust.microcosm.blue/)
3737+- Status: v0: the basics work and the APIs are in place! missing cursor replay, forward link storage, and delete event link hydration.
25382626-Demos:
3939+### Demos:
27402841- [Spacedust notifications](https://notifications.microcosm.blue/): web push notifications for _every_ atproto app
2942- [Zero-Bluesky real-time interaction-updating post embed](https://bsky.bad-example.com/zero-bluesky-realtime-embed/)
···34473548A fast, eager, production-grade edge cache for atproto records and identities. Pre-caches all records from the firehose and maintains a longer-term cache of requested records on disk.
36493737-- source: [./slingshot/](./slingshot/)
3838-- [public instance + API docs](https://slingshot.microcosm.blue/)
3939-- status: v0: most XRPC APIs are working. cache storage is being reworked.
5050+- Source: [./slingshot/](./slingshot/)
5151+- [Public instance/API docs](https://slingshot.microcosm.blue/)
5252+- Status: v0: most XRPC APIs are working. cache storage is being reworked.
405341544255🛸 [UFOs API](./ufos)
···44574558Timeseries stats and sample records for every [collection](https://atproto.com/guides/glossary#collection) ever seen in the atproto firehose. Unique users are counted in hyperloglog sketches enabling arbitrary cardinality aggregation across time buckets and/or NSIDs.
46594747-- source: [./ufos/](./ufos/)
4848-- [public instance + API docs](https://ufos-api.microcosm.blue/)
4949-- status: Used in production. It has APIs and they work! Needs improvement on indexing; needs more indexes and some more APIs to the data exposed.
6060+- Source: [./ufos/](./ufos/)
6161+- [Public instance/API docs](https://ufos-api.microcosm.blue/)
6262+- Status: Used in production. It has APIs and they work! Needs improvement on indexing; needs more indexes and some more APIs to the data exposed.
50635151-See also: [UFOs atproto explorer](https://ufos.microcosm.blue/) built on UFOs API. ([source](github.com/at-microcosm/spacedust-utils))
6464+> [!info]
6565+> See also: [UFOs atproto explorer](https://ufos.microcosm.blue/) built on UFOs API. ([source](github.com/at-microcosm/spacedust-utils))
526653675468💫 [Links](./links)
···56705771Rust library for parsing and extracting links (at-uris, DIDs, and URLs) from atproto records.
58725959-- source: [./links/](./links/)
6060-- status: not yet published to crates.io; needs some rework
7373+- Source: [./links/](./links/)
7474+- Status: not yet published to crates.io; needs some rework
7575+7676+7777+🛩️ [Jetstream](./jetstream)
7878+---------------------------
7979+8080+A low-overhead jetstream client with cursor handling and automatic reconnect.
8181+8282+- Source: [./links/](./links/)
8383+- Status: used in multiple apps in production, but not yet published to crates.io; some rework planned
8484+8585+> [!info]
8686+> See also: [Rocketman](https://github.com/teal-fm/cadet/tree/main/rocketman), another excellent rust jetstream client which shares some lineage and _is_ published on crates.io.
8787+618862896390🔭 Deprecated: [Who am I](./who-am-i)
···65926693An identity bridge for microcosm demos, that kinda worked. Fixing its problems is about equivalent to reinventing a lot of OIDC, so it's being retired.
67946868-- source: [./who-am-i/](./who-am-i/)
6969-- status: ready for retirement.
9595+- Source: [./who-am-i/](./who-am-i/)
9696+- Status: ready for retirement.
70977171-Still in use for the Spacedust Notifications demo, but that will hopefully be migrated to use atproto oauth directly instead.
9898+> [!warning]
9999+> Still in use for the Spacedust Notifications demo, but that will hopefully be migrated to use atproto oauth directly instead.