RealComposer
Platform

React Native Edge API Recipes

Production-ready templates for calling third-party APIs from React Nativewithout exposing secrets or maintaining a custom backend.

React Native safe & unsafe practices
Security & Secret Vault

Hide firebase api key in react native mobile app

Client uses anon rules; privileged reads run through edge proxy with Firebase tokens injected. For "hide firebase api key in react native mobile app", store FIREBASE_ACCESS_TOKEN in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/hide-firebase-api-key-react-native with an rc_live_ client token.

Sub-10ms edgeView Recipe
Security & Secret Vault

Linear api proxy for react native app

iOS and Android call one edge URL for Linear issue lists. For "linear api proxy for react native app", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/linear-api-proxy-react-native 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
Security & Secret Vault

Mailchimp api proxy for react native signup

Mobile posts to edge; Mailchimp list subscribe runs server-side. For "mailchimp api proxy for react native signup", store MAILCHIMP_BASIC_AUTH in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/mailchimp-api-proxy-react-native with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Stitch firebase with clerk session bootstrap

Clerk session and Firebase FCM registration merged at startup. For "stitch firebase with clerk session bootstrap", store FIREBASE_ACCESS_TOKEN, CLERK_SECRET_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/stitch-firebase-with-clerk-bootstrap with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Salesforce api response too large trim fields mobile

Map only id name email and owner fields; drop nested attributes URLs. For "salesforce api response too large trim fields mobile", 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 React Native hit only https://realcomposer.com/v1/workspace/trim-salesforce-json-for-mobile with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Contentful api response slim down for mobile app

Returns entry sys id fields and locale only from Delivery API. For "contentful api response slim down for mobile app", store CONTENTFUL_ACCESS_TOKEN in Secret Vault, call https://cdn.contentful.com/spaces/{{query.spaceId}}/entries from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/slim-contentful-api-response-mobile with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Linear graphql response filter fields for mobile

Pick issue id title state assignee from GraphQL response. For "linear graphql response filter fields for mobile", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/filter-linear-graphql-response-mobile 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
Payload Slimmer

Firebase user profile api strip sensitive fields

Remove refresh tokens providerData internals at edge. For "firebase user profile api strip sensitive fields", store FIREBASE_ACCESS_TOKEN in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/strip-firebase-user-profile-sensitive with an rc_live_ client token.

Sub-10ms edgeView Recipe
Payload Slimmer

Linear issue api optimize response react native

Trim GraphQL issue payloads before JSON.parse on device. For "linear issue api optimize response react native", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/optimize-linear-issue-response-react-native 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

Cache firebase firestore reads at edge

Edge cache Firestore REST document GETs keyed by document path. For "cache firebase firestore reads at edge", store FIREBASE_ACCESS_TOKEN in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/cache-firebase-firestore-reads-edge with an rc_live_ client token. Enable 180s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Salesforce composite api cache mobile dashboard

Composite read responses cached per user id at edge. For "salesforce composite api cache mobile dashboard", 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 React Native hit only https://realcomposer.com/v1/workspace/cache-salesforce-composite-mobile-dashboard with an rc_live_ client token. Enable 120s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Platforms & Frameworks

React native api gateway for cloudinary uploads

Sign Cloudinary uploads at the edge instead of shipping API secrets in the app bundle. For "react native api gateway for cloudinary uploads", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/best-api-gateway-cloudinary-react-native with an rc_live_ client token.

Sub-10ms edgeView Recipe