← back to Allnewsdaily
README.md
23 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.