feat: add read-only bird boundary

This commit is contained in:
2026-07-13 10:52:30 +09:00
parent 5873728c30
commit 65fae12e67
5 changed files with 310 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
import { TwitterClient } from '@yuta/bird'
import type { BirdReader } from './post-service'
let client: TwitterClient | undefined
export function getBirdReader(): BirdReader {
client ??= new TwitterClient({
relayBaseUrl: process.env.TWITTER_RELAY_BASE_URL,
profileName: process.env.BIRD_PROFILE_NAME,
timeoutMs: 20_000,
})
return client
}