# Linear and github dashboard without express server

> Parallel Linear and GitHub steps without Docker or Express. For "linear and github dashboard without express server", store LINEAR_API_KEY, GITHUB_TOKEN in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/linear-github-dashboard-without-express with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

- Canonical page: https://realcomposer.com/recipes/linear-github-dashboard-without-express
- Client platform: Frontend / Web
- Upstream services: Linear, GitHub
- Category: Platforms & Frameworks
- JSON version: https://realcomposer.com/recipes/linear-github-dashboard-without-express.json
- Install in RealComposer (free plan, pre-fills this pipeline): https://realcomposer.com/dashboard/pipelines/new?recipe=linear-github-dashboard-without-express&via=agent

## Problem: Frontend / Web cannot attach secret headers to Linear and GitHub

Frontend / Web runs in the browser or a sandbox without a secret store. Linear and GitHub 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

## Solution steps

1. **Add vault secrets for this pipeline**: 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**: 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 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/linear-github-dashboard-without-express', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
});
```

## Pipeline config

Import this config into a RealComposer pipeline. `{{secrets.NAME}}` values are read from the encrypted Secret Vault at request time, so the client never sees them.

```json
{
  "name": "Linear and github dashboard without express server",
  "method": "POST",
  "cacheTtlSeconds": 0,
  "authMode": "client_token",
  "steps": [
    {
      "stepKey": "linear",
      "upstreamUrlTemplate": "https://api.linear.app/graphql",
      "httpMethod": "POST",
      "headersTemplate": {
        "Authorization": "{{secrets.LINEAR_API_KEY}}",
        "Content-Type": "application/json"
      },
      "timeoutMs": 10000
    },
    {
      "stepKey": "github",
      "upstreamUrlTemplate": "https://api.github.com/user/repos?per_page=5",
      "httpMethod": "GET",
      "headersTemplate": {
        "Authorization": "Bearer {{secrets.GITHUB_TOKEN}}",
        "Accept": "application/vnd.github+json"
      },
      "timeoutMs": 3000
    }
  ],
  "outputMapping": {
    "version": 1,
    "fields": [
      {
        "targetPath": "linear.issueId",
        "sourcePath": "data.issue.id",
        "type": "string",
        "sourceStep": "linear"
      },
      {
        "targetPath": "linear.title",
        "sourcePath": "data.issue.title",
        "type": "string",
        "sourceStep": "linear"
      },
      {
        "targetPath": "github.repoId",
        "sourcePath": "0.id",
        "type": "number",
        "sourceStep": "github"
      },
      {
        "targetPath": "github.fullName",
        "sourcePath": "0.full_name",
        "type": "string",
        "sourceStep": "github"
      }
    ]
  }
}
```

## Call the pipeline

```bash
curl -X POST "https://realcomposer.com/v1/workspace/linear-github-dashboard-without-express" \
  -H "Authorization: Bearer rc_live_client_token" \
  -H "Content-Type: application/json" \
  -d '{"model":"example"}'
```

## Payload before and after

Raw upstream response:

```json
{
  "requestId": "req_linear-g",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "linear-github-dashboard-without-express"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
```

Slimmed RealComposer response:

```json
{
  "linear_issueId": "sample",
  "linear_title": "sample",
  "github_repoId": "sample",
  "github_fullName": "sample"
}
```

## FAQ

### Does Frontend / Web need CORS changes after adding RealComposer?

Use scoped tokens where the vendor allows them on linear-github-dashboard-without-express. Admin keys stay {{secrets.*}} references only.

### When does edge caching apply to this recipe?

linear-github-dashboard-without-express forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.

### What happens if an upstream step times out?

Upstream steps in linear-github-dashboard-without-express honor timeoutMs and optional fallback JSON without leaking secrets.
