How devsecobie/cyberjudah-telegram works
CyberJudah for Telegram combines a React Mini App with a Cloudflare Worker bot/API. Readers enter through the app, search teachings or read the Bible, and open results in their source; Ask retrieves library material and streams cited answers. Separate branches cover recordings, account sync, billing, and admin note editing. The README documents most product flows; source excerpts confirm app routing/bootstrap and webhook/API wiring, but much bot and feature implementation was not sampled.
Main entry points: index.ts Worker routes · App.tsx App router · agent.ts Ask retrieval and agent · Search.tsx Teaching search
Components 18
Telegram Mini App
- App router
app/src/App.tsx - Telegram bridge
app/src/tg/sdk.ts - Personal store
app/src/tg/store.ts
Library Experience
- Teaching search
app/src/screens/Search.tsx - Bible reader
app/src/bible/BibleTab.tsx - Ask interface
app/src/screens/Ask.tsx - Note editor
app/src/admin/ResourceAdmin.tsx
Worker API
- Worker routes
bot/src/index.ts - Teaching search API
bot/src/teachings.ts - Ask retrieval and agent
bot/src/agent.ts - Ask billing
bot/src/credits.ts - Repository note edits
bot/src/cms-github.ts
Data and Integrations
- Teaching corpus
- Vectorize index
- AI models
- Telegram platform
- CyberJudah repository
Other components
- Reader
Connections 22
- Reader → App router: opens
- App router → Telegram bridge: boots through
app/src/main.tsx - App router → Teaching search: routes to
app/src/App.tsx - App router → Bible reader: routes to
- App router → Ask interface: routes to
app/src/App.tsx - App router → Note editor: provides editing
- Teaching search → Worker routes: requests results
- Worker routes → Teaching search API: dispatches search
bot/src/index.ts - Teaching search API → Teaching corpus: queries passages
- Teaching search → Bible reader: opens reference
- Ask interface → Worker routes: calls Ask API
- Worker routes → Ask retrieval and agent: dispatches Ask
- Ask retrieval and agent → Teaching corpus: retrieves passages
- Ask retrieval and agent → Vectorize index: retrieves by meaning
- Ask retrieval and agent → AI models: generates answer
- Worker routes → Ask billing: accounts charges
bot/src/index.ts - Ask billing → Telegram platform: sells Stars top-ups
- Note editor → Worker routes: submits edits
- Worker routes → Repository note edits: dispatches edit
bot/src/index.ts - Repository note edits → CyberJudah repository: commits note
- Telegram bridge → Personal store: stores account data
app/src/tg/store.ts - Worker routes → Telegram platform: handles bot updates