An open API service indexing awesome lists of open source software.

https://github.com/webpro/bare-minimum-atproto-feed-cf-durable-object


https://github.com/webpro/bare-minimum-atproto-feed-cf-durable-object

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# atproto feed generator with cloudflare worker + durable object (sqlite)

The bare minimum implementation is in [src/index.ts](./src/index.ts).

Three locations having variables:

- `cp .env.example .env`
- `wranger.toml`
- `scripts/publishFeedGen.ts`

## Development

```sh
pnpm run dev
```

Should have these paths exposed:

- [localhost:8787](http://localhost:8787)
- [localhost:8787/.well-known/did.json](http://localhost:8787/.well-known/did.json)
- [localhost:8787/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://[DID]/app.bsky.feed.generator/[RECORD_NAME]](http://localhost:8787/xrpc/app.bsky.feed.getFeedSkeleton?feed=at://DID/app.bsky.feed.generator/RECORD_NAME)

## Publish worker + durable object

```sh
pnpm run publish
```

## Publish feed generator

```sh
node --env-file .env --experimental-strip-types scripts/publishFeedGen.ts
```

Run this command again to update the feed.

## Unpublish

```sh
node --env-file .env --experimental-strip-types scripts/unpublishFeedGen.ts
```