Compare

hostfunc vs Val Town

Val Town pioneered the idea of writing and running small TypeScript functions straight from the browser. hostfunc takes the same write-a-function-and-deploy ergonomics and builds it for the agent era: an MCP server that lets Claude create, run, and compose your functions as tools, a live lineage graph, and a platform you can fully self-host under AGPL-3.0.

CapabilityhostfuncVal Town
LanguageTypeScript-firstTypeScript / JavaScript
RuntimeIsolated V8 on Cloudflare WorkersDeno-based
TriggersHTTP, cron, email, MCPHTTP, cron, email
Agent / MCP nativeBuilt-in MCP server, scratch functionsNot MCP-native
Composition + lineagefn.executeFunction with a live lineage graphFunctions can import each other; no lineage view
MarketplacePublic, forkable function marketplacePublic vals you can fork
Self-hostYes — Docker Compose, your Cloudflare accountHosted only
LicenseOpen source (AGPL-3.0)Proprietary
Free tier100 executions/dayGenerous free tier

Choose hostfunc when

  • You want agents (Claude or any MCP client) to create, run, and compose functions as first-class tools.
  • You want to watch functions compose into systems via a live lineage graph.
  • You need the option to self-host the entire platform on your own Cloudflare account.

Choose Val Town when

  • You want the most mature browser-first editing experience with a large existing community of public vals.
  • You don't need MCP/agent integration or a self-hostable deployment.
  • You prefer a Deno-based runtime and its standard library.

Ship your first function in 90 seconds

Sign in, drop in some TypeScript, hit deploy. See the pricing or browse use cases.