RealComposer
Frontend / WebLinearGitHubMulti-API Aggregation

Merge Linear Issues and Github Pull Requests into One Dashboard API

Parallel Linear fetch merged before Frontend / Web hydrates

Direct Answer & Architecture Summary

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.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

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.

Critical Security & Operational Risks:
  • Race conditions between parallel manual fetches
  • Higher mobile data usage from redundant JSON
  • Timeouts when any upstream exceeds cellular RTT
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

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.

2

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.

3

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' }
});
                  
Payload Slimming Comparison
59% Bandwidth Reduction
Raw Upstream Response249 B
              {
  "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"
    }
  }
}
            
RealComposer Slimmed Edge Payload103 B
              {
  "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%)
Call from Terminal or Client
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"}'
Frequently Asked Questions

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

Instant Deployment

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.

CLONE THIS RECIPE
Related Architecture Recipes