forked from
samuel.fm/statusphere-react
the statusphere demo reworked into a vite/react app in a monorepo
1import { OAuthClient } from '@atproto/oauth-client-node'
2import { Firehose } from '@atproto/sync'
3import pino from 'pino'
4
5import { Database } from '#/db'
6import { BidirectionalResolver } from '#/id-resolver'
7import { Jetstream } from '#/ingestors'
8
9// Application state passed to the router and elsewhere
10export type AppContext = {
11 db: Database
12 ingester: Firehose | Jetstream<any>
13 logger: pino.Logger
14 oauthClient: OAuthClient
15 resolver: BidirectionalResolver
16}