[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix readme stuff

Florian (Mar 20, 2026, 9:54 PM +0100) e202ddc2 263b6cf5

+6 -5
+6 -5
README.md
··· 13 13 pnpm install 14 14 # Edit src/config.ts with your collections 15 15 pnpm generate:pull # pull lexicons from network, auto-detect fields, generate types 16 - pnpm dev:auto # start wrangler dev with auto-ingestion 17 - pnpm sync # discover users + backfill records from PDS 16 + pnpm dev:auto # start wrangler dev with auto-ingestion, leave running while you sync 17 + pnpm sync # in a different terminal, discover users + backfill records from PDS 18 18 ``` 19 19 20 20 ### Production ··· 216 216 export default defineLexiconConfig({ 217 217 outdir: "src/lexicon-types/", 218 218 imports: ["@atcute/atproto"], 219 + files: ["lexicons/**/*.json"], 219 220 pull: { 220 221 outdir: "lexicons/", 221 222 sources: [ 222 223 { 223 224 type: "git", 224 225 remote: "https://github.com/USER/REPO.git", // the Contrail instance repo 225 - pattern: ["lexicons-generated/**/*.json", "lexicons-pulled/**/*.json"], 226 + pattern: ["lexicons-generated/**/*.json", "lexicons-pulled/**/*.json", "lexicons/**/*.json"], 226 227 }, 227 228 ], 228 229 }, ··· 241 242 242 243 ```ts 243 244 import "./lexicon-types/index.js"; // registers ambient types 244 - import { XRPC } from "@atcute/client"; 245 + import { Client } from "@atcute/client"; 245 246 246 - const rpc = new XRPC({ handler: /* your handler */ }); 247 + const rpc = new Client({ handler: /* your handler */ }); 247 248 248 249 const { data } = await rpc.get("community.lexicon.calendar.event.getRecords", { 249 250 params: { status: "going", limit: 10 }, // typed params