RealComposer
Platform

Frontend / Web Edge API Recipes

Production-ready templates for calling third-party APIs from Frontend / Webwithout exposing secrets or maintaining a custom backend.

Web Frontends safe & unsafe practices
Security & Secret Vault

Hide Google Maps API Key in Web App

Frontend / Web cannot safely store Google Maps production keys. Vault-bound headers reach https://maps.googleapis.com/maps/api/place/autocomplete/json?input={{query.input}}&key={{secrets.GOOGLE_MAPS_API_KEY}} on Workers while apps call your google-maps-api-proxy-edge edge URL.

Sub-10ms edgeView Recipe
Security & Secret Vault

Zendesk api secure proxy for customer portal

Scoped edge pipeline returns only public-safe ticket fields. For "zendesk api secure proxy for customer portal", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/zendesk-api-customer-portal-proxy with an rc_live_ client token.

Sub-10ms edgeView Recipe
Security & Secret Vault

Call linear api from client without exposing api key

Linear API key stays in Vault; GraphQL POST runs on Workers. For "call linear api from client without exposing api key", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/call-linear-api-from-client-securely with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge salesforce contacts with hubspot crm one api

Parallel fetch Salesforce Contact and HubSpot CRM contact into one JSON object. For "merge salesforce contacts with hubspot crm one api", store SALESFORCE_ACCESS_TOKEN, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-salesforce-with-hubspot-api with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine mailchimp audience with hubspot contacts

List membership from Mailchimp and CRM lifecycle stage from HubSpot. For "combine mailchimp audience with hubspot contacts", store MAILCHIMP_BASIC_AUTH, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-mailchimp-with-hubspot-contacts with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge linear issues with notion database tasks

Linear issues and Notion database rows returned as one timeline JSON. For "merge linear issues with notion database tasks", store LINEAR_API_KEY, NOTION_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-linear-with-notion-tasks with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine anthropic claude with openai fallback router

Primary Anthropic Messages step plus OpenAI fallback step in one pipeline. For "combine anthropic claude with openai fallback router", store ANTHROPIC_API_KEY, OPENAI_API_KEY in Secret Vault, call https://api.anthropic.com/v1/messages from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-anthropic-with-openai-fallback with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge salesforce opportunities with stripe mrr data

Salesforce Opportunity and Stripe subscription MRR merged for dashboards. For "merge salesforce opportunities with stripe mrr data", store SALESFORCE_ACCESS_TOKEN, STRIPE_SECRET_KEY in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Opportunity/{{query.opportunityId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-salesforce-opportunities-stripe-mrr with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge mailchimp campaigns with sendgrid stats

Campaign metadata from Mailchimp plus delivery stats from SendGrid. For "merge mailchimp campaigns with sendgrid stats", store MAILCHIMP_BASIC_AUTH, SENDGRID_API_KEY in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-mailchimp-with-sendgrid-stats with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine linear with github project board api

Upgraded multi-step Linear GraphQL plus GitHub repos (replaces single-step batch1). For "combine linear with github project board api", store LINEAR_API_KEY, GITHUB_TOKEN in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-linear-with-github-board with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge paddle with hubspot lifecycle stages

Paddle subscription state and HubSpot contact lifecycle in one view. For "merge paddle with hubspot lifecycle stages", store PADDLE_API_KEY, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/merge-paddle-with-hubspot-lifecycle with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Zendesk ticket api response slim for widgets

Expose ticket id subject and status only for embeddable widgets. For "zendesk ticket api response slim for widgets", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/slim-zendesk-ticket-json-widgets with an rc_live_ client token.

Sub-10ms edgeView Recipe

Salesforce contact json filter custom fields empty

Strip null custom properties like HubSpot slimming recipe. For "salesforce contact json filter custom fields empty", store SALESFORCE_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/filter-empty-salesforce-custom-fields with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Zendesk user json filter for customer directory

External id name email only for customer lookup tables. For "zendesk user json filter for customer directory", store ZENDESK_API_TOKEN in Secret Vault, call https://{{secrets.ZENDESK_SUBDOMAIN}}.zendesk.com/api/v2/tickets.json from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/filter-zendesk-user-json-directory with an rc_live_ client token.

Sub-10ms edgeView Recipe

Anthropic streaming api payload slim edge proxy

Edge strips rate limit headers and debug from streamed JSON chunks. For "anthropic streaming api payload slim edge proxy", store ANTHROPIC_API_KEY in Secret Vault, call https://api.anthropic.com/v1/messages from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/slim-anthropic-streaming-payload-edge with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

REST API Edge Cdn Caching Guide

To rest api edge cdn caching guide, set cacheTtlSeconds on a GET pipeline targeting https://jsonplaceholder.typicode.com/users/{{query.userId}}. Identical query strings reuse Cloudflare caches.default before upstream sees traffic.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

How to cache salesforce api responses at edge

Cache read-heavy Contact and Account queries with short TTL. For "how to cache salesforce api responses at edge", store SALESFORCE_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/cache-salesforce-api-at-edge with an rc_live_ client token. Enable 300s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Cache linear api graphql queries at edge

Cache issue list queries with stale-while-revalidate pattern. For "cache linear api graphql queries at edge", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/cache-linear-graphql-queries-edge with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Paddle catalog api stale while revalidate

SWR pattern on Paddle product catalog edge pipeline. For "paddle catalog api stale while revalidate", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/prices?per_page=20 from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/paddle-catalog-stale-while-revalidate with an rc_live_ client token. Enable 300s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Platforms & Frameworks

Linear and github dashboard without express server

Parallel Linear and GitHub steps without Docker or Express. For "linear and github dashboard without express server", store LINEAR_API_KEY, GITHUB_TOKEN in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/linear-github-dashboard-without-express with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe