Serverless Edge Functions for Claude, Cursor & AI Agents on Aerostack
Browse 32+ serverless edge functions on Aerostack Marketplace — including Stripe webhooks, Slack handlers, PDF extractors, and more. Each function deploys to Cloudflare Workers in one command from your Aerostack workspace. Use them as callable tools from Claude, Cursor, or any MCP-compatible AI agent.
Generates a cryptographically random API key with a custom prefix using a base62 alphabet — no ambiguous characters, URL
@navin
Extracts all valid email addresses from free-form text using an RFC 5321 compliant pattern. Supports deduplication and p
@navin
Converts HTML to Markdown text. Handles headings, bold, italic, links, code, lists, blockquotes, and horizontal rules. S
@navin
Converts Markdown text to HTML with optional sanitization. Supports all common Markdown syntax including headings, bold,
@navin
Validates a request Origin against an allow list and returns the correct CORS response headers to set — supports wildcar
@navin
Generates a Content-Security-Policy header value from a structured directives object — supports report-only mode and rep
@navin
Decrypts an AES-256-GCM encrypted bundle produced by sec-encrypt-aes — key is derived via SHA-256, auth tag is verified
@navin
Encrypts a string with AES-256-GCM using Web Crypto — key is derived via SHA-256, output is a portable IV:ciphertext bun
@navin
Highlights keyword occurrences in text by wrapping them in configurable HTML tags. Handles case-insensitive matching, lo
@navin
Sanitizes HTML by removing dangerous tags and attributes. Always strips script, style, iframe, form elements, and all ev
@navin
Truncates text at character, word, or sentence boundaries. Appends a configurable suffix and never cuts mid-word or mid-
@navin
Counts words, unique words, characters, and sentences in a text string. Handles edge cases like empty text, whitespace,
@navin
Splits text into overlapping chunks with configurable size, overlap, and boundary snapping (char, word, sentence) for RA
@navin
Trims a conversation message array to fit within a model's context window using configurable strategies, without making
@navin
Calculates the API cost for an LLM request given a model name, prompt token count, and completion token count, supportin
@navin
Extracts the top N keywords from text using TF-IDF inspired scoring with built-in English stopword filtering, no externa
@navin
Scores text for common prompt injection attack patterns including role overrides, instruction leaking, and jailbreak att
@navin
Detects the natural language of a text string using character trigram frequency analysis, supporting 13 languages with n
@navin
Serialises a structured message array into a formatted prompt string for open-source LLMs, supporting ChatML, Llama 2, A
@navin
Validates and optionally repairs LLM output against a schema type (JSON, list, boolean, number, email, URL) without call
@navin
Computes descriptive statistics (count, sum, min, max, mean, median, stdDev, variance, percentiles) for an array of numb
@navin
Parses a CSV string into an array of row objects with headers, handling quoted fields, custom delimiters, and escaped ch
@navin
Converts a CSV string to a typed JSON array, automatically inferring numbers, booleans, and null values from string fiel
@navin
Computes a structural deep diff between two JSON-serializable values, classifying each change as added, removed, or modi
@navin
Sorts an array of objects by one or more fields with configurable direction, null handling, and nested field dot-notatio
@navin
Calculate the difference between two dates in specified units (ms, seconds, minutes, hours, days, weeks, months, years).
@navin
Parse a raw HTTP header block string or object into a structured lowercase-keyed object with content-type and authorizat
@navin
Removes duplicate items from an array using strict equality for primitives, deep equality for objects, or a key field fo
@navin
Filters an array of objects using a MongoDB-style query language supporting $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $
@navin
Paginates an array of items with offset-based page/limit logic, returning metadata like totalPages, hasNext, and hasPrev
@navin
Reads the full content (blocks) of a Notion page — paragraphs, headings, lists, code blocks — and returns both structure
@navin
Updates an existing Notion page's properties — change status, tags, dates, or any database field. Supports archiving pag
@navin
Frequently asked questions
What community edge functions are available?+
Browse TypeScript edge functions for authentication, payment processing, AI inference, data transformation, and webhook handling — all deployable to Cloudflare Workers.
Can I fork a community function?+
Yes. Fork any community function to your workspace and modify it. Your fork is private by default — publish it when ready.
Do community functions have full TypeScript support?+
Yes. All Aerostack functions are TypeScript. They include type-safe DB bindings, fetch utilities, and the full Cloudflare Workers API surface.
How do I call a community function from my project?+
Install the function to your workspace. It deploys as an edge endpoint with a stable URL. Call it from your app like any REST API.
Are community functions production-ready?+
Quality varies. Look for verified-developer badge, high install count, and active maintenance date. Aerostack-official functions are production-hardened.