linear-rate-limits

Featured

Handle Linear API rate limiting, complexity budgets, and quotas. Use when dealing with 429 errors, implementing throttling, or optimizing request patterns to stay within limits. Trigger: "linear rate limit", "linear throttling", "linear 429", "linear API quota", "linear complexity", "linear request limits".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linear Rate Limits ## Overview Linear uses the **leaky bucket algorithm** with two rate limiting dimensions. Understanding both is critical for reliable integrations: | Budget | Limit | Refill Rate | |--------|-------|-------------| | **Requests** | 5,000/hour per API key | ~83/min constant refill | | **Complexity** | 250,000 points/hour | ~4,167/min constant refill | | **Max single query** | 10,000 points | Hard reject if exceeded | **Complexity scoring:** Each property = 0.1 pt, each object = 1 pt, connections multiply children by `first` arg (default 50), then round up. ## Prerequisites - `@linear/sdk` installed - Understanding of HTTP response headers - Familiarity with async/await patterns ## Instructions ### Step 1: Read Rate Limit Headers Linear returns rate limit info on every response. ```typescript const response = await fetch("https://api.linear.app/graphql", { method: "POST", headers: { Authorization: process.env.LINEAR_API_KEY!, "Content-Type": "application/json", }, body: JSON.stringify({ query: "{ viewer { id } }" }), }); // Key headers const headers = { requestsRemaining: response.headers.get("x-ratelimit-requests-remaining"), requestsLimit: response.headers.get("x-ratelimit-requests-limit"), requestsReset: response.headers.get("x-ratelimit-requests-reset"), complexityRemaining: response.headers.get("x-ratelimit-complexity-remaining"), complexityLimit: response.headers.get("x-ratelimit-complexity-limit"), queryComplexity: ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category