lokalise-rate-limits

Featured

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

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

# Lokalise Rate Limits ## Overview Lokalise enforces a strict **6 requests per second** rate limit across all API endpoints (`https://api.lokalise.com/api2`). Exceeding this triggers a `429 Too Many Requests` response. This skill covers request queuing with 170ms minimum spacing, exponential backoff for 429 recovery, bulk operation throttling, and proactive quota monitoring via response headers. ## Prerequisites - `@lokalise/node-api` SDK installed (`npm install @lokalise/node-api`) - API token configured (read or read/write scope depending on operations) - Node.js 18+ for native `AbortController` support in timeout handling ## Instructions ### 1. Understand the Rate Limit Headers Every Lokalise API response includes rate limit headers: ``` X-RateLimit-Limit: 6 # Max requests per second X-RateLimit-Remaining: 4 # Requests remaining in current window X-RateLimit-Reset: 1700000000 # Unix timestamp when the window resets Retry-After: 1 # Seconds to wait (only on 429 responses) ``` Always read these headers. Never hardcode assumptions about the window — Lokalise may adjust limits per plan tier. ### 2. Implement a Request Queue with 170ms Spacing Space requests at minimum 170ms apart (1000ms / 6 = ~167ms, rounded up). Use `p-queue` for concurrency control: ```typescript import PQueue from "p-queue"; const lokaliseQueue = new PQueue({ concurrency: 1, interval: 170, intervalCap: 1, }); async function queuedRequest<T>(fn: () => Promise...

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