Zero Code API Gateway for Indie Hackers and Solopreneurs
Low-code REST API BFF for Frontend / Web
Frontend / Web browsers cannot call https://jsonplaceholder.typicode.com/users/{{query.userId}} directly because of CORS and hidden credentials. RealComposer responds to OPTIONS and proxies authorized traffic.
Frontend / Web cannot attach secret headers to REST API
Frontend / Web runs in the browser or a sandbox without a secret store. REST API rejects unsigned browser origins or requires server-only headers.
- Proxy hacks that break when vendors tighten CSP
- Zapier-only workarounds adding cost and latency
- Guest users seeing failed network requests in demos
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Create API_BEARER_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.
Set headers, mapping, and cache TTL
Use GET against https://jsonplaceholder.typicode.com/users/{{query.userId}}. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).
Call from Frontend / Web
Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.
const res = await fetch('https://realcomposer.com/v1/workspace/zero-code-api-gateway-indie-hackers', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_zero-cod",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "zero-code-api-gateway-indie-hackers"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"userId": "sample",
"name": "sample",
"email": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 3
- Payload
- 254 B to 52 B (-80%)
curl -X GET "https://realcomposer.com/v1/workspace/zero-code-api-gateway-indie-hackers" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Does Frontend / Web need CORS changes after adding RealComposer?
Use scoped tokens where the vendor allows them on zero-code-api-gateway-indie-hackers. Admin keys stay {{secrets.*}} references only.
When does edge caching apply to this recipe?
Cache key for zero-code-api-gateway-indie-hackers: internal edge-cache path plus sorted query. Identical params hit; vary userId per user.
How do I rotate upstream credentials?
Allowed origins on the zero-code-api-gateway-indie-hackers client token restrict which domains may call the edge URL.
Sources & Definitions Used in This Answer
Deploy this Frontend / Web + REST API Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.