{
  "slug": "linear-github-dashboard-without-express",
  "title": "Linear and github dashboard without express server",
  "metaTitle": "Linear and github dashboard without - RealComposer",
  "metaDescription": "Linear and github dashboard without express server. Frontend / Web CORS fix for Linear and GitHub via RealComposer OPTIONS plus vault headers.",
  "headline": "Internal tools BFF with zero Node hosting",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 8,
  "clientPlatform": "Frontend / Web",
  "upstreamServices": [
    "Linear",
    "GitHub"
  ],
  "searchIntentQuery": "linear and github dashboard without express server",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Frontend / Web cannot attach secret headers to Linear and GitHub",
    "explanation": "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.",
    "risks": [
      "Proxy hacks that break when vendors tighten CSP",
      "Zapier-only workarounds adding cost and latency",
      "Guest users seeing failed network requests in demos"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Add LINEAR_API_KEY, GITHUB_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "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."
    },
    {
      "stepNumber": 3,
      "title": "Call from Frontend / Web",
      "description": "Allowed origins on the token should list every Frontend / Web host that calls this URL.",
      "codeSnippet": "const res = await fetch('https://realcomposer.com/v1/workspace/linear-github-dashboard-without-express', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "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"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "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"
      }
    }
  },
  "sampleSlimmedOutput": {
    "linear_issueId": "sample",
    "linear_title": "sample",
    "github_repoId": "sample",
    "github_fullName": "sample"
  },
  "curlSnippet": "curl -X POST \"https://realcomposer.com/v1/workspace/linear-github-dashboard-without-express\" \\\n  -H \"Authorization: Bearer rc_live_client_token\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"example\"}'",
  "faqs": [
    {
      "question": "Does Frontend / Web need CORS changes after adding RealComposer?",
      "answer": "Use scoped tokens where the vendor allows them on linear-github-dashboard-without-express. Admin keys stay {{secrets.*}} references only."
    },
    {
      "question": "When does edge caching apply to this recipe?",
      "answer": "linear-github-dashboard-without-express forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in linear-github-dashboard-without-express honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "bff-without-express-or-docker",
    "combine-linear-with-github-board"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/linear-github-dashboard-without-express",
    "markdown": "https://realcomposer.com/recipes/linear-github-dashboard-without-express.md",
    "json": "https://realcomposer.com/recipes/linear-github-dashboard-without-express.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=linear-github-dashboard-without-express&via=agent"
  }
}