Serverless Edge Functions for Claude, Cursor & AI Agents on Aerostack
Browse 75+ 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.
sec-api-key-generate
by @navin
Generates a cryptographically random API key with a custom prefix using a base62 alphabet — no ambiguous characters, URL-safe.
securitytext-extract-emails
by @navin
Extracts all valid email addresses from free-form text using an RFC 5321 compliant pattern. Supports deduplication and preserves order of first appearance.
contenttext-html-to-markdown
by @navin
Converts HTML to Markdown text. Handles headings, bold, italic, links, code, lists, blockquotes, and horizontal rules. Strips all other HTML tags while preserving text content.
contenttext-markdown-to-html
by @navin
Converts Markdown text to HTML with optional sanitization. Supports all common Markdown syntax including headings, bold, italic, code blocks, lists, links, images, and blockquotes.
contentweb-query-stringify
by @navin
Serialize a parameters object to a URL query string with support for arrays, encoding, and null skipping.
web-searchDaily Digest (skill function)
by @navin
Function backing the Daily Digest skill
skillssec-cors-validate
by @navin
Validates a request Origin against an allow list and returns the correct CORS response headers to set — supports wildcards and credentials.
securitysec-csp-generate
by @navin
Generates a Content-Security-Policy header value from a structured directives object — supports report-only mode and report-uri.
securitysec-decrypt-aes
by @navin
Decrypts an AES-256-GCM encrypted bundle produced by sec-encrypt-aes — key is derived via SHA-256, auth tag is verified automatically.
securitysec-encrypt-aes
by @navin
Encrypts a string with AES-256-GCM using Web Crypto — key is derived via SHA-256, output is a portable IV:ciphertext bundle.
securitysec-hash-sha256
by @navin
Hashes a string using SHA-256 via the Web Crypto API. Supports hex and base64 output. Zero dependencies.
securitysec-hmac-sign
by @navin
Signs a string payload with HMAC-SHA256 or HMAC-SHA512 using Web Crypto — outputs a hex-encoded signature.
securitysec-hmac-verify
by @navin
Verifies an HMAC-SHA256 or HMAC-SHA512 signature using timing-safe Web Crypto comparison — never throws.
securitysec-jwt-sign
by @navin
Signs a JWT token using HMAC-SHA256 or HMAC-SHA512 via Web Crypto — zero dependencies.
securitysec-jwt-verify
by @navin
Verifies a JWT token signature and expiry using HMAC-SHA256 or HMAC-SHA512 via Web Crypto — zero dependencies.
securitytext-keyword-highlight
by @navin
Highlights keyword occurrences in text by wrapping them in configurable HTML tags. Handles case-insensitive matching, longest-match-first for overlapping keywords, and HTML entity escaping.
contenttext-sanitize-html
by @navin
Sanitizes HTML by removing dangerous tags and attributes. Always strips script, style, iframe, form elements, and all event handlers. Keeps only whitelisted tags with whitelisted attributes.
contenttext-slug-generate
by @navin
Generates a URL-safe slug from any string. Handles Unicode, accents, and special characters. Zero dependencies.
contenttext-to-camel-case
by @navin
Converts a space-separated, snake_case, kebab-case, or PascalCase string to camelCase. Zero dependencies.
contenttext-to-snake-case
by @navin
Converts a camelCase, PascalCase, kebab-case, or space-separated string to snake_case. Zero dependencies.
contenttext-truncate-smart
by @navin
Truncates text at character, word, or sentence boundaries. Appends a configurable suffix and never cuts mid-word or mid-sentence when using smart modes.
contenttext-word-count
by @navin
Counts words, unique words, characters, and sentences in a text string. Handles edge cases like empty text, whitespace, and punctuation.
contentai-chunk-overlap
by @navin
Splits text into overlapping chunks with configurable size, overlap, and boundary snapping (char, word, sentence) for RAG and embedding pipelines.
aiai-context-window-fit
by @navin
Trims a conversation message array to fit within a model's context window using configurable strategies, without making any API calls.
aiai-cost-estimate
by @navin
Calculates the API cost for an LLM request given a model name, prompt token count, and completion token count, supporting multiple currencies.
aiai-extract-keywords
by @navin
Extracts the top N keywords from text using TF-IDF inspired scoring with built-in English stopword filtering, no external API calls required.
aiai-guardrail-injection-detect
by @navin
Scores text for common prompt injection attack patterns including role overrides, instruction leaking, and jailbreak attempts.
aiai-language-detect
by @navin
Detects the natural language of a text string using character trigram frequency analysis, supporting 13 languages with no external API calls.
aiai-messages-to-prompt
by @navin
Serialises a structured message array into a formatted prompt string for open-source LLMs, supporting ChatML, Llama 2, Alpaca, and plain text formats.
aiai-output-extract-json
by @navin
Extracts the first valid JSON object or array embedded in LLM free-text output, handling markdown code fences.
aiai-output-validate
by @navin
Validates and optionally repairs LLM output against a schema type (JSON, list, boolean, number, email, URL) without calling any external API.
aiai-prompt-template
by @navin
Fills {{variable}} placeholders in a prompt template string, with optional strict mode to catch missing variables.
aidata-aggregate-stats
by @navin
Computes descriptive statistics (count, sum, min, max, mean, median, stdDev, variance, percentiles) for an array of numbers.
datadata-array-group-by
by @navin
Groups an array of objects into a map keyed by the value of a specified property. Zero dependencies.
datadata-csv-parse
by @navin
Parses a CSV string into an array of row objects with headers, handling quoted fields, custom delimiters, and escaped characters.
datadata-csv-to-json
by @navin
Converts a CSV string to a typed JSON array, automatically inferring numbers, booleans, and null values from string fields.
datadata-deep-diff
by @navin
Computes a structural deep diff between two JSON-serializable values, classifying each change as added, removed, or modified.
datadata-sort-objects
by @navin
Sorts an array of objects by one or more fields with configurable direction, null handling, and nested field dot-notation support.
datadatetime-add
by @navin
Add or subtract a duration from a date, supporting units from milliseconds to years with correct month-end handling.
utilitiesdatetime-business-hours
by @navin
Check if a datetime falls within business hours and return the next opening time.
utilitiesdatetime-diff
by @navin
Calculate the difference between two dates in specified units (ms, seconds, minutes, hours, days, weeks, months, years).
utilitiesdatetime-duration-format
by @navin
Format a duration in milliseconds to a human-readable string with long, short, or compact styles.
utilitiesdatetime-format
by @navin
Format a date to a string using format tokens like YYYY-MM-DD HH:mm:ss with optional timezone support.
utilitiesdatetime-parse
by @navin
Parse a date string or unix timestamp to a normalised Unix millisecond timestamp and ISO string.
utilitiesdatetime-relative
by @navin
Format a date as a relative time string like '2 hours ago' or 'in 3 days' using Intl.RelativeTimeFormat.
utilitiesdatetime-timezone-convert
by @navin
Convert a datetime from one IANA timezone to another, returning the local time with UTC offset.
utilitiesweb-content-type-parse
by @navin
Parse a Content-Type header value into MIME type, subtype, charset, boundary, and convenience boolean flags.
web-searchweb-headers-parse
by @navin
Parse a raw HTTP header block string or object into a structured lowercase-keyed object with content-type and authorization extraction.
web-searchweb-ip-extract
by @navin
Extract the real client IP address from HTTP request headers, with proxy trust control and private IP detection.
web-searchweb-query-parse
by @navin
Parse a URL query string into a typed object with support for arrays, number/boolean coercion, and bracket notation.
web-searchFrequently 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.