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
- Host: GitHub
- URL: https://github.com/webpro/bare-minimum-atproto-feed-cf-durable-object
- Owner: webpro
- Created: 2024-11-02T08:38:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-13T05:34:29.000Z (over 1 year ago)
- Last Synced: 2025-04-01T21:48:09.981Z (11 months ago)
- Language: TypeScript
- Size: 148 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```