Skip to content

Add Datacenter Monitor recipe#57

Draft
khushishelat wants to merge 4 commits into
mainfrom
add-datacenter-map-recipe
Draft

Add Datacenter Monitor recipe#57
khushishelat wants to merge 4 commits into
mainfrom
add-datacenter-map-recipe

Conversation

@khushishelat

Copy link
Copy Markdown
Collaborator

Datacenter Monitor

Moves the datacenter-map-demo into the cookbook as typescript-recipes/parallel-datacenter-map.

A live map of ~2,700 US datacenters — every facility discovered, enriched, and AI-impact classified by the Task API, with 31 event-stream monitors and 200 daily snapshot monitors watching the web for new developments. Per-field reasoning and citations come from output.basis.

Live demo: https://datacenter-demo.app

What it shows

  • Iterative facility discovery — shard-by-state + previous_interaction_id pagination (loop-until-dry) to break the single-query plateau (~50) and reach the long tail (~2,700).
  • 25-field enrichment per facility via ultra2x + Task Groups, structured output, with per-field basis.
  • AI-impact classification pass (structured output).
  • Monitor API: 31 event-stream monitors (classified, cited events) + 200 daily snapshot monitors (field-level change diffs), webhooks + SSE.
  • Weekly brief deep-researched and written by the Task API, every claim cited.

Notes

  • Draft while the write-up is reviewed and the recipe README is finalized.
  • Ships pre-generated data in public/data/ so it runs without re-running the pipeline.
  • No secrets committed (only .env.local.example). Anchored an over-broad datacenters.json gitignore rule so the shipped public/data/datacenters.json is included.
  • Added a catalog row under Scheduled Research & Webhooks in the root README.

🤖 Generated with Claude Code

khushishelat and others added 4 commits July 23, 2026 11:02
Live map of ~2,700 US datacenters, each discovered, enriched (25 fields),
and AI-impact classified by the Task API, with 31 event-stream monitors and
200 daily snapshot monitors watching the web. Per-field reasoning + citations
via output.basis. Facility discovery uses shard-by-state + previous_interaction_id
pagination. Moved from khushishelat/datacenter-map-demo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sibling recipes ship the app, not a large pre-generated dataset, and the live
demo already serves the full ~2,700 facilities. Trim public/data to one
facility per state (index-aligned across datacenters/enrichments-compact/
ai-classifications). public/data 5MB -> 164KB. App still renders a real
national map on clone; pipeline regenerates the full set. README documents it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
monitors.json and snapshot-monitors.json carried 231 live Parallel-account
resource IDs (31 + 200 monitors, 200 run IDs). Not credentials, but account-
specific artifacts not needed to run the recipe. Blank the monitorIds (keep the
monitor query definitions, which teach monitor design) and empty snapshot-
monitors.json; readers regenerate via setup-monitors.ts / create-snapshots.ts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Avoid implying a single Task call is weak; frame long-tail enumeration as a
decomposition problem the API is designed for. Also drop 'find all' to prevent
confusion with the FindAll API, and remove an em dash. Applies to recipe README
and the discovery script docstring.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant