flexport-rate-limits

Featured

Handle Flexport API rate limits with exponential backoff, queue-based throttling, and response header monitoring for logistics API calls. Trigger: "flexport rate limit", "flexport 429", "flexport throttling", "flexport backoff".

AI & Automation 2,266 stars 315 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

# Flexport Rate Limits ## Overview The Flexport API v2 enforces rate limits per API key. When exceeded, you get a `429 Too Many Requests` with `Retry-After` and `X-RateLimit-*` headers. Key limits to know: the API returns headers on every response telling you remaining quota. ## Rate Limit Headers | Header | Description | Example | |--------|-------------|---------| | `X-RateLimit-Limit` | Max requests per window | `100` | | `X-RateLimit-Remaining` | Remaining in current window | `47` | | `X-RateLimit-Reset` | Unix timestamp when window resets | `1711234567` | | `Retry-After` | Seconds to wait (only on 429) | `30` | ## Instructions ### Step 1: Monitor Rate Limit Headers ```typescript class RateLimitTracker { remaining = Infinity; resetAt = 0; update(headers: Headers) { this.remaining = parseInt(headers.get('X-RateLimit-Remaining') || '100'); this.resetAt = parseInt(headers.get('X-RateLimit-Reset') || '0') * 1000; } async waitIfNeeded() { if (this.remaining <= 2 && Date.now() < this.resetAt) { const wait = this.resetAt - Date.now() + 100; console.log(`Rate limit near. Waiting ${wait}ms`); await new Promise(r => setTimeout(r, wait)); } } } ``` ### Step 2: Exponential Backoff with Jitter ```typescript async function flexportWithRetry<T>( fn: () => Promise<Response>, maxRetries = 4 ): Promise<T> { for (let attempt = 0; attempt <= maxRetries; attempt++) { const res = await fn(); if (res.ok) return res.json(); ...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

flexport-performance-tuning

Optimize Flexport API performance with pagination tuning, response caching, parallel requests, and connection pooling for logistics data. Trigger: "flexport performance", "flexport slow API", "flexport caching", "optimize flexport".

2,266 Updated today
jeremylongshore
AI & Automation Featured

flexport-cost-tuning

Optimize Flexport API usage costs through efficient pagination, caching, webhook-driven updates, and monitoring API call volume. Trigger: "flexport costs", "flexport API usage", "reduce flexport calls", "flexport billing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

fireflies-rate-limits

Implement Fireflies.ai rate limiting, backoff, and request queuing. Use when handling rate limit errors, implementing retry logic, or optimizing API request throughput for Fireflies.ai. Trigger with phrases like "fireflies rate limit", "fireflies throttling", "fireflies 429", "fireflies retry", "fireflies backoff".

2,266 Updated today
jeremylongshore
AI & Automation Featured

exa-rate-limits

Implement Exa rate limiting, exponential backoff, and request queuing. Use when handling 429 errors, implementing retry logic, or optimizing API request throughput for Exa. Trigger with phrases like "exa rate limit", "exa throttling", "exa 429", "exa retry", "exa backoff", "exa QPS".

2,266 Updated today
jeremylongshore
AI & Automation Featured

flexport-observability

Set up observability for Flexport logistics integrations with metrics, structured logging, distributed tracing, and alerting dashboards. Trigger: "flexport monitoring", "flexport observability", "flexport metrics", "flexport alerts".

2,266 Updated today
jeremylongshore