mirror of
https://github.com/aykhans/bsky-feedgen.git
synced 2025-06-01 11:03:23 +00:00
31 lines
761 B
Markdown
31 lines
761 B
Markdown
# API Service
|
|
|
|
## Overview
|
|
|
|
The API service is responsible for serving custom Bluesky feeds to clients. It implements the necessary endpoints required by the Bluesky protocol to deliver feed content.
|
|
|
|
**Pre-Built Docker Image**: `git.aykhans.me/bsky/feedgen-api:latest`
|
|
|
|
## API Endpoints
|
|
|
|
- `GET /.well-known/did.json`: DID configuration
|
|
- `GET /xrpc/app.bsky.feed.describeFeedGenerator`: Describe the feed generator
|
|
- `GET /xrpc/app.bsky.feed.getFeedSkeleton`: Main feed endpoint
|
|
|
|
## Running the Service
|
|
|
|
### Docker
|
|
|
|
```bash
|
|
docker build -f cmd/api/Dockerfile -t bsky-feedgen-api .
|
|
docker run --env-file config/app/.api.env --env-file config/app/.mongodb.env -p 8421:8421 bsky-feedgen-api
|
|
```
|
|
|
|
### Local Development
|
|
|
|
```bash
|
|
task run-api
|
|
# or
|
|
make run-api
|
|
```
|