RealComposer
React NativeLinearSecurity & Secret Vault

Linear api proxy for react native app

Mobile issue trackers without decompiled secrets

Direct Answer & Architecture Summary

iOS and Android call one edge URL for Linear issue lists. For "linear api proxy for react native app", store LINEAR_API_KEY in Secret Vault, call https://api.linear.app/graphql from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/linear-api-proxy-react-native with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

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

Why React Native leaks Linear credentials

Attackers routinely extract Linear secrets from React Native builds. Direct browser calls also expose internal error payloads with hostnames.

Critical Security & Operational Risks:
  • Production Linear keys copied from React Native bundles
  • Compliance violations after credential leaks
  • Attackers replaying vault-grade scopes from a laptop
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Bind vault keys to the Worker

Store LINEAR_API_KEY in the vault. React Native never embeds the raw secret, only a revocable rc_live_ client token.

2

Configure upstream steps and output mapping

Point step linear at https://api.linear.app/graphql with POST. Add output mapping fields that mirror the JSON contract your screen already expects. POST pipelines set cache TTL to 0 because RealComposer only stores GET responses at the edge.

3

Call from React Native

Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.

                    const res = await fetch('https://realcomposer.com/v1/workspace/linear-api-proxy-react-native', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
});
                  
Payload Slimming Comparison
85% Bandwidth Reduction
Raw Upstream Response248 B
              {
  "requestId": "req_linear-a",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "linear-api-proxy-react-native"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload37 B
              {
  "issueId": "sample",
  "title": "sample"
}
            

Recipe Specs

HTTP method
POST
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
2
Payload
248 B to 37 B (-85%)
Call from Terminal or Client
curl -X POST "https://realcomposer.com/v1/workspace/linear-api-proxy-react-native" \
  -H "Authorization: Bearer rc_live_client_token" \
  -H "Content-Type: application/json" \
  -d '{"model":"example"}'
Frequently Asked Questions

Developer Questions & Troubleshooting

Does React Native need CORS changes after adding RealComposer?

Store LINEAR_API_KEY for linear-api-proxy-react-native. React Native never sees decrypted values.

When does edge caching apply to this recipe?

linear-api-proxy-react-native forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.

What happens if an upstream step times out?

Allowed origins on the linear-api-proxy-react-native client token restrict which domains may call the edge URL.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this React Native + Linear 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