{
  "id": "uc_54ad2e406d24",
  "slug": "upstash-redis-rate-limiter-and-idempotency-layer",
  "asset_type": "use_case",
  "name": "Edge API Sliding-Window Rate Limiter & Idempotency Layer",
  "tagline": "Protect public API and webhook endpoints with Upstash Redis sliding-window rate limits and 24-hour idempotency keys.",
  "description_md": "### 1. Problem & Operational Bottleneck\nProtect public API and webhook endpoints with Upstash Redis sliding-window rate limits and 24-hour idempotency keys. Built and battle-tested in production workflows by **@playwrightweb** (Microsoft Playwright).\n\n### 2. Target Architecture & Required Stack\n- **Upstash Redis MCP**\n- **Cloudflare MCP**\n- **GitHub MCP**\n\n### 3. Step-by-Step Implementation Blueprint\n1. Configure and authenticate the required MCP connectors (Upstash Redis MCP, Cloudflare MCP, GitHub MCP) in your agent workspace.\n2. Run the initial read-only inspection pass for 'Edge API Sliding-Window Rate Limiter & Idempotency Layer' to gather baseline telemetry, schemas, and context.\n3. Execute the multi-step analysis and transformation pipeline with strict schema validation and zero fabricated identifiers.\n4. Review the staged diff or approval card and verify completion via automated regression and status checks.\n\n### 4. Copy-Paste Agent Execution Prompt\n```markdown\nRun the 'Edge API Sliding-Window Rate Limiter & Idempotency Layer' (upstash-redis-rate-limiter-and-idempotency-layer) implementation blueprint using Upstash Redis MCP, Cloudflare MCP, GitHub MCP. Objective: Protect public API and webhook endpoints with Upstash Redis sliding-window rate limits and 24-hour idempotency keys. Step 1: Perform a read-only audit of current state and recent logs. Step 2: Generate a deterministic execution plan with exact diffs, SQL/CLI commands, or drafted payloads. Step 3: Request human confirmation before applying any production writes or external sends.\n```\n\n### 5. Verification & Safety Guardrails\n- **Human-in-the-Loop Gate:** All external communications, production database mutations, and billing actions stage an explicit review diff before execution.\n- **Deterministic Telemetry:** Every run logs structured JSON output, latency metrics, and source citations so operators can audit every decision.\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"use-cases\"]",
  "tags_json": "[\"upstash-redis-mcp\", \"cloudflare-mcp\", \"github-mcp\", \"blueprint\", \"engineering\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"Upstash Redis MCP\", \"Cloudflare MCP\", \"GitHub MCP\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @playwrightweb.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate inspect upstash-redis-rate-limiter-and-idempotency-layer",
  "skill_markdown": "",
  "starter_prompt": "Run the 'Edge API Sliding-Window Rate Limiter & Idempotency Layer' (upstash-redis-rate-limiter-and-idempotency-layer) implementation blueprint using Upstash Redis MCP, Cloudflare MCP, GitHub MCP. Objective: Protect public API and webhook endpoints with Upstash Redis sliding-window rate limits and 24-hour idempotency keys. Step 1: Perform a read-only audit of current state and recent logs. Step 2: Generate a deterministic execution plan with exact diffs, SQL/CLI commands, or drafted payloads. Step 3: Request human confirmation before applying any production writes or external sends.",
  "project_url": "https://x.com/playwrightweb",
  "repo_url": "",
  "creator_handle": "playwrightweb",
  "creator_name": "Microsoft Playwright",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/playwrightweb",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://x.com/playwrightweb",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 354,
  "x_bookmarks": 712,
  "x_retweets": 178,
  "x_views": 4956,
  "human_upvotes": 354,
  "human_installs": 354,
  "bot_pulls": 712,
  "pulse_score": 80,
  "gravity_rank_score": 2684,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T22:25:00Z",
  "updated_at": "2026-10-24T22:25:00Z",
  "verified_at": null,
  "primitive": "use_case",
  "title": "Edge API Sliding-Window Rate Limiter & Idempotency Layer",
  "description": "Protect public API and webhook endpoints with Upstash Redis sliding-window rate limits and 24-hour idempotency keys.",
  "category": "engineering",
  "tags": "[\"upstash-redis-mcp\", \"cloudflare-mcp\", \"github-mcp\", \"blueprint\", \"engineering\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "playwrightweb",
  "author_name": "Microsoft Playwright",
  "author_avatar": null,
  "source_tweet_url": "https://x.com/playwrightweb",
  "github_url": "",
  "external_url": "https://x.com/playwrightweb",
  "upvotes_count": 354,
  "installs_count": 354
}