Juicebox Rate Limits

SkillDev tools

'Implement Juicebox rate limiting.

Use Juicebox Rate Limits in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Juicebox Rate Limits and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Juicebox Rate Limits skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Juicebox Rate LimitsStart free

What this skill tells your AI

The instructions your AI receives, as published by jeremylongshore/tons-of-skills-marketplace in skills/.curated/juicebox-rate-limits/SKILL.md and read by Ahel’s review.

Overview

Juicebox's AI-powered data analysis API enforces plan-tiered rate limits across dataset uploads, analysis triggers, and result retrieval. Heavy analytical workloads like running comparative analyses across multiple datasets or batch-processing survey results hit the analysis trigger limit first. The enrichment endpoints for augmenting datasets with external data sources have separate, lower caps, making it essential to prioritize enrichment calls and batch analysis runs during off-peak windows.

Rate Limit Reference

EndpointLimitWindowScope
Dataset upload20 req1 minutePer API key
Analysis trigger30 req1 minutePer API key
Result retrieval120 req1 minutePer API key
Data enrichment15 req1 minutePer API key
Export download10 req1 minutePer API key

Rate Limiter Implementation

class JuiceboxRateLimiter {
  private tokens: number;
  private lastRefill: number;
  private readonly max: number;
  private readonly refillRate: number;
  private queue: Array<{ resolve: () => void }> = [];

  constructor(maxPerMinute: number) {
    this.max = maxPerMinute;
    this.tokens = maxPerMinute;
    this.lastRefill = Date.now();
    this.refillRate = maxPerMinute / 60_000;
  }

  async acquire(): Promise<void> {
    this.refill();
    if (this.tokens >= 1) { this.tokens -= 1; return; }
    return new Promise(resolve => this.queue.push({ resolve }));
  }

  private refill() {
    const now = Date.now();
    this.tokens = Math.min(this.max, this.tokens + (now - this.lastRefill) * this.refillRate);
    this.lastRefill = now;
    while (this.tokens >= 1 && this.queue.length) {
      this.tokens -= 1;
      this.queue.shift()!.resolve();
    }
  }
}

const analysisLimiter = new JuiceboxRateLimiter(25);
const enrichLimiter = new JuiceboxRateLimiter(12);

Retry Strategy

async function juiceboxRetry<T>(
  limiter: JuiceboxRateLimiter, fn: () => Promise<Response>, maxRetries = 3
): Promise<T> {
  for (let attempt = 0; attempt <= maxRetries; attempt++) {
    await limiter.acquire();
    const res = await fn();
    if (res.ok) return res.json();
    if (res.status === 429) {
      const retryAfter = parseInt(res.headers.get("Retry-After") || "15", 10);
      const jitter = Math.random() * 3000;
      await new Promise(r => setTimeout(r, retryAfter * 1000 + jitter));
      continue;
    }
    if (res.status >= 500 && attempt < maxRetries) {
      await new Promise(r => setTimeout(r, Math.pow(2, attempt) * 2000));
      continue;
    }
    throw new Error(`Juicebox API ${res.status}: ${await res.text()}`);
  }
  throw new Error("Max retries exceeded");
}

Batch Processing

async function batchAnalyzeDatasets(datasetIds: string[], query: string, batchSize = 5) {
  const results: any[] = [];
  for (let i = 0; i < datasetIds.length; i += batchSize) {
    const batch = datasetIds.slice(i, i + batchSize);
    const batchResults = await Promise.all(
      batch.map(id => juiceboxRetry(analysisLimiter, () =>
        fetch(`${BASE}/api/v1/datasets/${id}/analyze`, {
          method: "POST", headers,
          body: JSON.stringify({ query }),
        })
      ))
    );
    results.push(...batchResults);
    if (i + batchSize < datasetIds.length) await new Promise(r => setTimeout(r, 8000));
  }
  return results;
}

Error Handling

IssueCauseFix
429 on analysis triggerExceeded 30 req/min analysis capQueue analyses, space 3s apart
429 on enrichmentEnrichment limit (15/min) is lowestBatch enrichments separately with wider spacing
Upload timeoutDataset exceeds 50MBCompress CSV, use chunked upload endpoint
Analysis still processingComplex query on large datasetPoll status every 10s, timeout at 10 min
403 on exportPlan does not include export featureVerify plan tier supports data export

Prerequisites

  • An approved sandbox workload, synthetic records, current quota limits, source/destination allowlists, suppression controls, and a named operator for pause and rollback.

Instructions

  1. Exercise rate-limit behavior only with synthetic fixtures and bounded request budgets; reject real-record export or unapproved destinations.
  2. Apply idempotency keys, exponential backoff, and aggregate-only telemetry; verify suppression and contacts_exported=0 at each probe.
  3. Stop the canary on unexpected quota, scope, policy, or retention drift, then cancel queued work and revoke temporary access.
  4. Retain only redacted aggregate evidence and delete sandbox artifacts after the approved test window.

Output

Produce a rate-limit receipt with environment, request budget, aggregate response/error counts, suppression and no-export assertions, pause/rollback action, owner approval, and retention/deletion proof. Exclude queries, contacts, and credentials.

Examples

env=ci-synthetic; budget=30rpm; retries=backoff; suppression=pass; contacts_exported=0; queued_jobs=cancelled; cleanup=verified is an acceptable receipt.

Resources

  • Juicebox API Documentation

Next Steps

See juicebox-performance-tuning.

Signals

GitHub stars
3k
Forks
415
Last commit
Oct 2026
Advanced
Item type
skill
Key
juicebox-rate-limits
Source
github.com/jeremylongshore/tons-of-skills-marketplace