RealComposer
Client PlatformsOfficial Framer docs

Framer Safe & Unsafe Practices

Direct Answer

Framer code components and overrides are compiled into the published site and run in visitors browsers. Any key in that code is public. Fetch dynamic data from an edge proxy that injects secrets and caches results.

Credentials & Where They Belong

Client safe
Values in code components

Published with the site JavaScript.

Server only
Upstream API secrets

Belong in a proxy.

Safe Practices

  • Fetch from a cached proxy endpoint

    Caching protects upstream rate limits during traffic spikes.

  • Restrict proxy origins to your Framer domains

    Prevent other sites from reusing your endpoint.

Unsafe Practices

  • Hardcoding API keys in code overrides

    Anyone can read them from the published bundle.

The RealComposer Pattern

Call a RealComposer pipeline from a Framer code component, with allowed origins set to your published domains and edge caching enabled.

START BUILDING FREE

Frequently Asked Questions

Q:Do Framer code components run on a server?

No. They run in the browser, so treat their code as public.

Platforms & Frameworks

How to call anthropic api from framer without cors

Framer fetch to RealComposer with streaming-friendly headers. For "how to call anthropic api from framer without cors", store ANTHROPIC_API_KEY in Secret Vault, call https://api.anthropic.com/v1/messages from a Worker, and let Framer hit only https://realcomposer.com/v1/workspace/anthropic-api-framer-without-cors 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

Cloudinary upload api proxy for framer website

Framer components hit RealComposer for signed upload parameters. For "cloudinary upload api proxy for framer website", store CLOUDINARY_BASIC_AUTH in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/image/upload from a Worker, and let Framer hit only https://realcomposer.com/v1/workspace/cloudinary-upload-proxy-framer 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
Platforms & Frameworks

Mailchimp subscribe api from framer contact form

Real-time subscribe via edge instead of polling automation. For "mailchimp subscribe api from framer contact form", 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 Framer hit only https://realcomposer.com/v1/workspace/mailchimp-subscribe-framer-contact-form with an rc_live_ client token.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Cache anthropic api for repeated prompt previews

Short TTL cache on identical preview completions (non-production). For "cache anthropic api for repeated prompt previews", store ANTHROPIC_API_KEY in Secret Vault, call https://api.anthropic.com/v1/messages from a Worker, and let Framer hit only https://realcomposer.com/v1/workspace/cache-anthropic-api-prompt-previews 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

Related Concepts