Aerostack

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.

code_blocks

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.

security
code_blocks

text-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.

content
code_blocks

text-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.

content
code_blocks

text-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.

content
code_blocks

web-query-stringify

by @navin

Serialize a parameters object to a URL query string with support for arrays, encoding, and null skipping.

web-search
code_blocks

Daily Digest (skill function)

by @navin

Function backing the Daily Digest skill

skills
code_blocks

sec-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.

security
code_blocks

sec-csp-generate

by @navin

Generates a Content-Security-Policy header value from a structured directives object — supports report-only mode and report-uri.

security
code_blocks

sec-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.

security
code_blocks

sec-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.

security
code_blocks

sec-hash-sha256

by @navin

Hashes a string using SHA-256 via the Web Crypto API. Supports hex and base64 output. Zero dependencies.

security
code_blocks

sec-hmac-sign

by @navin

Signs a string payload with HMAC-SHA256 or HMAC-SHA512 using Web Crypto — outputs a hex-encoded signature.

security
code_blocks

sec-hmac-verify

by @navin

Verifies an HMAC-SHA256 or HMAC-SHA512 signature using timing-safe Web Crypto comparison — never throws.

security
code_blocks

sec-jwt-sign

by @navin

Signs a JWT token using HMAC-SHA256 or HMAC-SHA512 via Web Crypto — zero dependencies.

security
code_blocks

sec-jwt-verify

by @navin

Verifies a JWT token signature and expiry using HMAC-SHA256 or HMAC-SHA512 via Web Crypto — zero dependencies.

security
code_blocks

text-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.

content
code_blocks

text-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.

content
code_blocks

text-slug-generate

by @navin

Generates a URL-safe slug from any string. Handles Unicode, accents, and special characters. Zero dependencies.

content
code_blocks

text-to-camel-case

by @navin

Converts a space-separated, snake_case, kebab-case, or PascalCase string to camelCase. Zero dependencies.

content
code_blocks

text-to-snake-case

by @navin

Converts a camelCase, PascalCase, kebab-case, or space-separated string to snake_case. Zero dependencies.

content
code_blocks

text-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.

content
code_blocks

text-word-count

by @navin

Counts words, unique words, characters, and sentences in a text string. Handles edge cases like empty text, whitespace, and punctuation.

content
code_blocks

ai-chunk-overlap

by @navin

Splits text into overlapping chunks with configurable size, overlap, and boundary snapping (char, word, sentence) for RAG and embedding pipelines.

ai
code_blocks

ai-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.

ai
code_blocks

ai-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.

ai
code_blocks

ai-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.

ai
code_blocks

ai-guardrail-injection-detect

by @navin

Scores text for common prompt injection attack patterns including role overrides, instruction leaking, and jailbreak attempts.

ai
code_blocks

ai-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.

ai
code_blocks

ai-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.

ai
code_blocks

ai-output-extract-json

by @navin

Extracts the first valid JSON object or array embedded in LLM free-text output, handling markdown code fences.

ai
code_blocks

ai-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.

ai
code_blocks

ai-prompt-template

by @navin

Fills {{variable}} placeholders in a prompt template string, with optional strict mode to catch missing variables.

ai
code_blocks

data-aggregate-stats

by @navin

Computes descriptive statistics (count, sum, min, max, mean, median, stdDev, variance, percentiles) for an array of numbers.

data
code_blocks

data-array-group-by

by @navin

Groups an array of objects into a map keyed by the value of a specified property. Zero dependencies.

data
code_blocks

data-csv-parse

by @navin

Parses a CSV string into an array of row objects with headers, handling quoted fields, custom delimiters, and escaped characters.

data
code_blocks

data-csv-to-json

by @navin

Converts a CSV string to a typed JSON array, automatically inferring numbers, booleans, and null values from string fields.

data
code_blocks

data-deep-diff

by @navin

Computes a structural deep diff between two JSON-serializable values, classifying each change as added, removed, or modified.

data
code_blocks

data-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.

data
code_blocks

datetime-add

by @navin

Add or subtract a duration from a date, supporting units from milliseconds to years with correct month-end handling.

utilities
code_blocks

datetime-business-hours

by @navin

Check if a datetime falls within business hours and return the next opening time.

utilities
code_blocks

datetime-diff

by @navin

Calculate the difference between two dates in specified units (ms, seconds, minutes, hours, days, weeks, months, years).

utilities
code_blocks

datetime-duration-format

by @navin

Format a duration in milliseconds to a human-readable string with long, short, or compact styles.

utilities
code_blocks

datetime-format

by @navin

Format a date to a string using format tokens like YYYY-MM-DD HH:mm:ss with optional timezone support.

utilities
code_blocks

datetime-parse

by @navin

Parse a date string or unix timestamp to a normalised Unix millisecond timestamp and ISO string.

utilities
code_blocks

datetime-relative

by @navin

Format a date as a relative time string like '2 hours ago' or 'in 3 days' using Intl.RelativeTimeFormat.

utilities
code_blocks

datetime-timezone-convert

by @navin

Convert a datetime from one IANA timezone to another, returning the local time with UTC offset.

utilities
code_blocks

web-content-type-parse

by @navin

Parse a Content-Type header value into MIME type, subtype, charset, boundary, and convenience boolean flags.

web-search
code_blocks

web-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-search
code_blocks

web-ip-extract

by @navin

Extract the real client IP address from HTTP request headers, with proxy trust control and private IP detection.

web-search
code_blocks

web-query-parse

by @navin

Parse a URL query string into a typed object with support for arrays, number/boolean coercion, and bracket notation.

web-search

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.