serverless #atproto jetstream to webhook connector, powered by cloudflare durable objects
at main 30 lines 1.0 kB view raw
1#!/bin/bash 2 3echo "🏠 Setting up Local Development Environment" 4echo "==========================================" 5echo "" 6 7if [ ! -f .dev.vars ]; then 8 echo "Creating .dev.vars from template..." 9 cp .dev.vars.example .dev.vars 10 echo "✅ Created .dev.vars file" 11 echo "" 12 echo "📝 Please edit .dev.vars with your configuration:" 13 echo " - WEBHOOK_URL: Your webhook endpoint" 14 echo " - JETSTREAM_COLLECTIONS: Collections to watch" 15 echo " - WEBHOOK_BEARER_TOKEN: Your auth token (optional)" 16 echo "" 17 echo "Example collections to watch:" 18 echo " - app.bsky.feed.post (all Bluesky posts)" 19 echo " - app.bsky.graph.follow (all follows)" 20 echo " - app.bsky.actor.profile (profile updates)" 21else 22 echo "⚠️ .dev.vars already exists" 23 echo " Edit it manually if you need to update your config" 24fi 25 26echo "" 27echo "🎯 Next steps:" 28echo "1. Edit .dev.vars with your configuration" 29echo "2. Run: pnpm run dev" 30echo "3. Test: curl http://localhost:8787/stats"