← back to Allnewsdaily

README.md

31 lines

# All News Daily

Global news outlet directory — logo + name + country, with a **red glowing LIVE pill** on any outlet currently broadcasting live (detected via YouTube `/channel/<id>/live`).

- `data/outlets.json` — curated outlet list (logos via clearbit, YouTube channel IDs for live detection)
- `scripts/check-live.js` — polls every channel's YouTube live page, writes `data/live-status.json`
- `server.js` — Express on `:9788`, merges outlets + live status, runs the checker every 90s
- `public/index.html` — grid view, sort + density slider, region/lang/category filters, RED glowing LIVE pill

## Run

```
npm i
node server.js
# → http://localhost:9788
```

## Live detection

The checker hits `https://www.youtube.com/channel/<id>/live`. If the response HTML
contains `hlsManifestUrl` (or `"isLive":true` / `"isLiveNow":true`), the outlet is
flagged live and the LIVE pill links to that exact stream.

## Proxy cutover readiness (TK-11340)

Run `bash approve ungate` to check the prerequisites for the already-authorized
proxy cutover. This command checks local configuration and checker syntax; it
does not deploy. Exit 2 means missing or invalid configuration; exit 3 means a
proxy URL exists but still needs real validation. Exit 64 indicates invalid usage.
Follow `verification/TK-11340-cutover.md` for the canary, cutover and rollback.