A public TypeScript function.
Find proven functions. Fork in one click.
Browse public TypeScript functions, official templates, automations, AI workflows, webhooks, and integrations. Star what you love, comment with improvements, and fork any function into your workspace.
Public functions ready to fork
A public TypeScript function.
import fn from "@hostfunc/sdk";
// HTTP endpoint. POST { "name": "Ada" } — or GET ?name=Ada
export async function main(input: { name?: string }) {
const name = input.name?.trim() || "world";
fn.log("info", "hello.invoked", { name });
return {
message: `hello, ${name}`,
invokedAt: new Date().toISOString(),
};
}
Curated starting points
25 official, deploy-ready templates — AI workflows, webhooks, scheduled automations, and integrations — each built on the hostfunc SDK.
Hello world
The minimal starter — typed input, structured logging, JSON out.
AI text summarizer
Condense long text into a few sentences with the built-in AI.
Slack notifier
Post formatted alerts to a Slack channel via an incoming webhook.
Webhook inspector
Catch, log, and echo any inbound webhook to see exactly what it sends.
HTML page
Serve a styled web page — ships with an editable, live-previewable index.html.
Hacker News digest
Pull the current top 10 Hacker News stories on a schedule.
AI task agent
Run a goal-driven, multi-step AI agent and return its result.
Uptime monitor
Ping a URL on a schedule and alert Slack the moment it goes down.
GitHub profile lookup
Fetch a GitHub user's profile and their most recently updated repos.
AI sentiment classifier
Classify text as positive, neutral, or negative with a confidence score.
New signup enrichment
Enrich new-signup webhooks with company context and post them to Slack.
Weekly growth report
Compile weekly growth metrics and post a summary to Slack every Monday.
Telegram bot
Handle Telegram messages and commands, replying through the Bot API.
AI Slack bot
Answer Slack questions with AI and post the reply back to the channel.
Webhook relay
Fan one inbound webhook out to multiple downstream destinations.
URL unfurler
Extract the title, description, and OG image from any web page.
Keyword monitor
Watch Hacker News for keyword mentions and alert Slack on new hits.
Transactional email
Send transactional email through Resend from a simple JSON request.
AI knowledge search
Index documents as embeddings, then run semantic search over them.
Lead enrichment API
A REST endpoint that enriches a lead from its email domain.
Analytics event forwarder
Receive product events and forward them into your analytics pipeline.
Currency converter
Convert between currencies using live exchange rates — no API key.
RSS aggregator
Merge several RSS/Atom feeds into one reverse-chronological digest.
JSON transformer
Normalize and annotate an arbitrary JSON payload — a composable building block.
GitHub stargazer leads
Turn a repo's newest GitHub stargazers into warm sales leads in Slack.
Build from proven foundations.
Public functions are open for discovery by default. Upgrade when you need private workspace-only functions for internal tools, customer workflows, or team secrets.
