TOOLS

Two patterns, one project schema.

This page is the template every future data/automation tool follows. Publish a new project in Sanity, set its tool type, and it slots in without touching code.

Embedded App

iframe

For tools with their own runtime — a Streamlit dashboard, a Power BI report, or a Hugging Face Space. Host it externally, then paste the URL into the project's embedUrl field in Sanity.

No embed URL set yet — this is where your tool will render.

e.g. https://your-tool.streamlit.app

API-backed Tool

/api/tools

Example: an SLA Risk Predictor. Swap the mock logic for your real calculation in app/api/tools/sla-risk/route.ts.