Public
Morning briefing API — digest + chat, powered by Claude
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A morning briefing PWA powered by Claude with web search. Delivers a concise digest across Geopolitics, Current Affairs, Sports, Trends, and AI — installable to your phone's home screen.
Rendering mermaid diagram...
| Method | Path | Description |
|---|---|---|
GET | / | The installable web app (HTML) |
GET | /manifest.json | PWA manifest |
GET | /icon.png | App icon (SVG) |
GET | /source | Redirects to the source on Val Town |
GET | /api/digest | Returns the latest stored digest JSON |
POST | /api/ask | Proxies a chat question to Claude (auto-enables web search for time-sensitive queries) |
- Add
ANTHROPIC_KEYin Val Town env vars (yoursk-ant-api03-...key). Without this, the cron and the Ask tab will fail. - The cron runs daily at 06:30 UTC — adjust in interval settings if you want a different time.
- Install on your phone:
- Open the val's public URL in Safari (iOS) or Chrome (Android)
- Tap Share → Add to Home Screen (iOS) or Menu → Install app (Android)
- The app opens in standalone mode with the dark masthead
index.html— The frontend app (vanilla JS, no build step)manifest.json— PWA manifest for home-screen installicon.svg— App icon (served as/icon.pngfor compatibility)api.ts— HTTP handler (serves app, digest, and chat)cron.ts— Interval job that builds the daily digestlib/claude.ts— Shared Claude API helperlib/config.ts— Model, topics, and blob key config