How brookmaodev/youtubeautocomment works
YouTubeAutoComment is a small Express service that lets users connect a YouTube account, register channels and comments, and periodically checks those channels for new videos before posting comments. Its main runtime is concentrated in app.ts; the HTML pages provide the user-facing entry points, while Postgres and Google APIs support the workflow. The README documents Cloud Scheduler triggering /poll. The excerpts do not show the form submissions or all route details, so those links are omitted.
Main entry points: app.ts Comment posting · index.html Home page · create.html Setup page · confirmation.html Confirmation page
Components 13
User interface
- Home page
static/index.html - Setup page
static/create.html - Confirmation page
static/confirmation.html
Application workflows
- Express service
app.ts - OAuth onboarding
app.ts - Channel setup
app.ts - Video polling
app.ts - Comment posting
app.ts
Application state
- Postgres
External services
- YouTube API
- Google OAuth
Other components
- User
- Cloud Scheduler
Connections 18
- User → Home page: opens
README.md - User → Setup page: configures
README.md - Express service → Home page: serves
app.ts - Express service → Setup page: serves
app.ts - Express service → Confirmation page: serves
app.ts - Cloud Scheduler → Video polling: triggers
README.md - OAuth onboarding → YouTube API: looks up channel
app.ts - OAuth onboarding → Postgres: stores account
app.ts - Channel setup → YouTube API: validates channel
app.ts - Channel setup → YouTube API: checks latest video
app.ts - Channel setup → Postgres: stores setup
app.ts - Video polling → Postgres: loads channels
app.ts - Video polling → YouTube API: checks uploads
app.ts - Video polling → Postgres: updates latest video
app.ts - Comment posting → Postgres: loads comments
app.ts - Comment posting → Postgres: loads refresh tokens
app.ts - Comment posting → Google OAuth: refreshes tokens
app.ts - Comment posting → YouTube API: posts comments
app.ts