How kaguya2021/project-ttnews- works
TikTokPulse collects recent RSS articles, scores and stores them, then exposes them through a Telegram bot and scheduled digests. Users can browse by category or date, save favorites, manage subscriptions, and generate short-video scripts from articles. The runtime entry point runs migrations, performs an initial collection, and starts the scheduler, bot, and health-check server. Relationships are based on the shown source excerpts and README; unsampled capabilities are not given speculative implementation links.
Main entry points: pool.js Database pool · index.js Application startup · handlers.js Commands and callbacks · rssFetcher.js RSS fetch and storage
Components 16
Runtime and interfaces
- Application startup
src/index.js - Health check
src/index.js - Environment config
src/config.js - Database pool
src/db/pool.js - Schema and seed data
src/db/migrate.js
News ingestion
- Collection and digest schedule
src/services/scheduler.js - RSS fetch and storage
src/services/rssFetcher.js
Telegram experience
- Bot runtime
src/bot/index.js - Commands and callbacks
src/bot/handlers.js - Inline keyboards
src/bot/keyboards.js
Content tools
- Virality scoring
src/services/newsScorer.js - Video script generation
src/services/scriptGen.js
Other components
- Telegram user
- Telegram API
- RSS sources
- PostgreSQL
Connections 22
- Telegram user → Telegram API: sends updates
- Telegram API → Bot runtime: delivers updates
src/bot/index.js - Bot runtime → Commands and callbacks: registers handlers
src/bot/index.js - Commands and callbacks → Telegram API: replies and sends
src/bot/handlers.js - Commands and callbacks → Database pool: queries and updates
src/bot/handlers.js - Commands and callbacks → Inline keyboards: uses menus
src/bot/handlers.js - Commands and callbacks → Video script generation: generates scripts
src/bot/handlers.js - Application startup → Environment config: reads settings
src/index.js - Application startup → Schema and seed data: runs migrations
src/index.js - Application startup → RSS fetch and storage: collects initially
src/index.js - Application startup → Collection and digest schedule: starts schedule
src/index.js - Application startup → Bot runtime: starts bot
src/index.js - Schema and seed data → Database pool: creates schema
src/db/migrate.js - Database pool → Environment config: uses database URL
src/db/pool.js - Database pool → PostgreSQL: connects to
src/db/pool.js - Collection and digest schedule → RSS fetch and storage: schedules collection
src/services/scheduler.js - Collection and digest schedule → Database pool: queries and records deliveries
src/services/scheduler.js - Collection and digest schedule → Telegram API: sends digests
src/services/scheduler.js - RSS fetch and storage → RSS sources: parses feeds
src/services/rssFetcher.js - RSS fetch and storage → Virality scoring: scores articles
src/services/rssFetcher.js - RSS fetch and storage → Database pool: reads sources and stores news
src/services/rssFetcher.js - Health check → Telegram user: serves health response