RealComposer

GitHub Safe & Unsafe Practices

Direct Answer

GitHub personal access tokens, OAuth tokens, and GitHub App private keys are server-only. Prefer fine-grained tokens or GitHub Apps scoped to specific repositories, and cache responses because unauthenticated requests are limited to 60 per hour.

Credentials & Where They Belong

Server only
Fine-grained personal access token

Scoped to selected repositories and permissions.

Server only
Classic personal access token

Broad scopes such as repo grant access to every repository.

Server only
GitHub App private key

Mints installation tokens for the app.

Safe Practices

  • Use fine-grained tokens or GitHub Apps

    Limit access to the repositories and permissions each integration needs.

  • Cache with ETags

    Conditional requests that return 304 do not count against your rate limit.

  • Verify webhook signatures

    Check X-Hub-Signature-256 with your webhook secret before handling events.

Unsafe Practices

  • Shipping a classic repo-scoped token to a client

    It can read and push to every private repository the user owns.

  • Committing tokens to source control

    Secret scanning will revoke many leaked tokens, but attackers often find them first.

The RealComposer Pattern

Store GITHUB_TOKEN in the vault, cache repository and release reads at the edge, and slim large payloads into compact stats objects.

START BUILDING FREE

Frequently Asked Questions

Q:Why do I hit GitHub rate limits from the browser?

Unauthenticated requests share a 60 per hour limit per IP. Authenticated, cached server calls get far higher limits.

Security & Secret Vault

Call Github API with Private Personal Access Token from Client

To solve call github api with private personal access token from client, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

How to Cache Github API Rate Limit 60 Requests Per Hour

To solve how to cache github api rate limit 60 requests per hour, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe
Multi-API Aggregation

How to Merge Github Profile and Repos into One API Call

To solve how to merge github profile and repos into one api call, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Merge Linear Issues and Github Pull Requests into One Dashboard API

To solve merge linear issues and github pull requests into one dashboard api, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe

Github API Response Payload Slimming for Mobile Widgets

To solve github api response payload slimming for mobile widgets, never execute unauthenticated requests or embed private tokens directly in client bundles. RealComposer acts as a sub-10ms edge gateway running on Cloudflare Workers that securely injects credentials from your Secret Vault, normalizes responses, and prevents unauthorized API usage. Route calls through your RealComposer edge URL to guarantee complete privacy, robust origin validation, and low mobile latency.

Sub-10ms edgeView Recipe

Related Concepts