Salesforce api composition tool for indie hackers
Solo founders wiring Salesforce without backends
Wire Salesforce REST from static sites with vault injection and no Express server. For "salesforce api composition tool for indie hackers", 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 Static HTML / Jamstack hit only https://realcomposer.com/v1/workspace/salesforce-api-composition-indie-hackers with an rc_live_ client token.
CORS blocks Salesforce in Static HTML / Jamstack
Low-code Static HTML / Jamstack tools expose connector tokens in shared workspaces, so Salesforce credentials leak to every editor.
- Browser console CORS errors blocking launches
- Editors pasting secrets into reusable components
- Inability to test locally without disabling security
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Add SALESFORCE_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Configure upstream steps and output mapping
Point step salesforce at https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache).
Call from Static HTML / Jamstack
Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.
fetch('https://realcomposer.com/v1/workspace/salesforce-api-composition-indie-hackers', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_salesfor",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "salesforce-api-composition-indie-hackers"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"contactId": "sample",
"email": "sample",
"name": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 3
- Payload
- 259 B to 55 B (-79%)
curl -X GET "https://realcomposer.com/v1/workspace/salesforce-api-composition-indie-hackers" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Salesforce credential belongs in the vault for this pipeline?
Point Static HTML / Jamstack at /recipes/salesforce-api-composition-indie-hackers edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins.
Does POST traffic get cached?
salesforce-api-composition-indie-hackers vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.
What happens if an upstream step times out?
Upstream steps in salesforce-api-composition-indie-hackers honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Static HTML / Jamstack + Salesforce Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.