Merge Linear Issues and Github Pull Requests into One Dashboard API
Parallel Linear fetch merged before Frontend / Web hydrates
Instead of Frontend / Web firing serial fetches to Linear and GitHub, one pipeline hits https://api.linear.app/graphql (and sibling steps) in parallel and returns mapped JSON.
Waterfall latency from multiple Linear and GitHub requests
Frontend / Web widgets often await Linear and GitHub sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.
- Race conditions between parallel manual fetches
- Higher mobile data usage from redundant JSON
- Timeouts when any upstream exceeds cellular RTT
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Add LINEAR_API_KEY, GITHUB_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Configure upstream steps and output mapping
Configure headersTemplate to inject vault secrets, target https://api.linear.app/graphql, and Add output mapping fields that mirror the JSON contract your screen already expects.
Call from Frontend / Web
Allowed origins on the token should list every Frontend / Web host that calls this URL.
const res = await fetch('https://realcomposer.com/v1/workspace/merge-linear-and-github-pr-api', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_merge-li",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "merge-linear-and-github-pr-api"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"linear_issueId": "sample",
"linear_title": "sample",
"github_repoId": "sample",
"github_fullName": "sample"
}
Recipe Specs
- HTTP method
- POST
- Upstream calls
- 2
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 4
- Payload
- 249 B to 103 B (-59%)
curl -X POST "https://realcomposer.com/v1/workspace/merge-linear-and-github-pr-api" \
-H "Authorization: Bearer rc_live_client_token" \
-H "Content-Type: application/json" \
-d '{"model":"example"}'Developer Questions & Troubleshooting
Can Frontend / Web call Linear without holding the production key?
Log request IDs for merge-linear-and-github-pr-api, not raw Linear payloads, because upstream bodies may include PII.
How do I forward JSON bodies to POST upstreams?
merge-linear-and-github-pr-api keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache.
Can I restrict which domains call this pipeline?
Allowed origins on the merge-linear-and-github-pr-api client token restrict which domains may call the edge URL.
Sources & Definitions Used in This Answer
Deploy this Frontend / Web + Linear, GitHub Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.