Use cases
What you can build with hostfunc
One exported main() is enough for most automations. Here are the patterns people reach for most — each with real code you can fork.
HTTP
Webhook handlers
Give any provider a stable HTTPS endpoint backed by typed TypeScript.
Cron
Scheduled jobs & cron
Standard 5-field cron expressions, timezone-aware, unified observability.
MCP
AI agents & MCP tools
Let Claude (or any MCP client) create, run, and compose your functions as tools.
HTTP
Slack & chat bots
Slash commands, notifications, and chat workflows on a stable endpoint.
HTTP or Cron
Scraping & data extraction
Fetch, parse, and transform pages and feeds — on demand or on a schedule.
HTTP
Custom API endpoints
Typed JSON endpoints with stable URLs — compose them into a backend.