···510510 return
511511 }
512512513513- if err != nil {
514514- c.JSON(http.StatusBadGateway, gin.H{"error": fmt.Sprintf("Failed to resolve DID: %v", err)})
515515- return
516516- }
517517-518513 var targetEndpoint string
519514 for _, svc := range didDoc.Service {
520515 if svc.Type == "BskyFeedGenerator" && strings.HasSuffix(svc.ID, "#bsky_fg") {
+45-1
readme.md
···1515- `app.bsky.feed.getPosts` (post rendering is incomplete)
1616- `app.bsky.feed.getFeed` (post rendering is incomplete)
1717- `app.bsky.unspecced.getConfig` (placeholder)
1818-- `app.bsky.unspecced.getPostThreadV2` (mostly working! doesnt use prefered sort, not performant)1818+- `app.bsky.unspecced.getPostThreadV2` (mostly working! doesnt use prefered sort, not performant yet)
1919+2020+> [!NOTE]
2121+> uh im not very confident with the current directory structure, so files and folders might move around
2222+2323+## Runnables
2424+run all of these using `go run .` inside the respective directories
2525+2626+### `/cmd/appview`
2727+the main entry point, the actual appview itself. the api server that implements app.bsky.* XRPC methods
2828+2929+### `/cmd/backstream`
3030+experimental backfiller that kinda (but not really) conforms to the jetstream event shape. designed to be ingested by consumers expecting jetstream
3131+3232+## Packages
3333+3434+### `/auth`
3535+taken from [go-bsky-feed-generator](https://github.com/jazware/go-bsky-feed-generator) but modified a bit.
3636+3737+handles all of the auth, modified to have a more lenient version to make `getFeed` work
3838+3939+### `/microcosm/*`
4040+microcosm api clients, implements constellation slingshot and spacedust
4141+4242+slingshot's api client is compatible with `github.com/bluesky-social/indigo/*` stuff, like `agnostic.RepoGetRecord` and `util.LexClient`
4343+4444+### `/shims/*`
4545+most of Red Dwarf Server logic lives here. pulls data from upstream services like microcosm constellation and slingshot, transforms it, and spits out bsky api -like responses using the published app.bsky.* codegen from `github.com/bluesky-social/indigo/api/bsky`
4646+4747+4848+### `/sticket`
4949+unused leftover sorry
5050+5151+5252+### `/store`
5353+unused leftover sorry
5454+5555+## todo
5656+5757+- appview-side query caches
5858+- notification service
5959+- bookmarks service
6060+- create aturilist service
6161+- make backstream usable
6262+- create jetrelay service