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 Connect Custom REST API to Framer

To solve how to connect custom rest api to framer, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe

Related Concepts