A public TypeScript function.
import fn from "@hostfunc/sdk";
export async function main(input: { name?: string }) {
const name = input.name ?? "world";
return { message: `hello, ${name}` };
}
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.
A public TypeScript function.
import fn from "@hostfunc/sdk";
export async function main(input: { name?: string }) {
const name = input.name ?? "world";
return { message: `hello, ${name}` };
}
26 official, deploy-ready templates — AI workflows, webhooks, scheduled automations, and integrations — each built on the hostfunc SDK.
The minimal starter — typed input, structured logging, JSON out.
Condense long text into a few sentences with the built-in AI.
Post formatted alerts to a Slack channel via an incoming webhook.
Catch, log, and echo any inbound webhook to see exactly what it sends.
Serve a styled web page — ships with an editable, live-previewable index.html.
A React + TypeScript web app. client.tsx is precompiled at deploy into a minified, self-hosted bundle — no CDN.
Pull the current top 10 Hacker News stories on a schedule.
Run a goal-driven, multi-step AI agent and return its result.
Ping a URL on a schedule and alert Slack the moment it goes down.
Fetch a GitHub user's profile and their most recently updated repos.
Classify text as positive, neutral, or negative with a confidence score.
Enrich new-signup webhooks with company context and post them to Slack.
Compile weekly growth metrics and post a summary to Slack every Monday.
Handle Telegram messages and commands, replying through the Bot API.
Answer Slack questions with AI and post the reply back to the channel.
Fan one inbound webhook out to multiple downstream destinations.
Extract the title, description, and OG image from any web page.
Watch Hacker News for keyword mentions and alert Slack on new hits.
Send transactional email through Resend from a simple JSON request.
Index documents as embeddings, then run semantic search over them.
A REST endpoint that enriches a lead from its email domain.
Receive product events and forward them into your analytics pipeline.
Convert between currencies using live exchange rates — no API key.
Merge several RSS/Atom feeds into one reverse-chronological digest.
Normalize and annotate an arbitrary JSON payload — a composable building block.
Turn a repo's newest GitHub stargazers into warm sales leads in Slack.
Public functions are open for discovery by default. Upgrade when you need private workspace-only functions for internal tools, customer workflows, or team secrets.