From d81cd26a1ee9a6e389ac073ec05e137052623fb6 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 25 Sep 2026 14:00:45 -0700 Subject: [PATCH] Docs: Add GitHub Sponsors button and fix rate limit/cache info Co-Authored-By: Claude Opus 5.5 --- README.md | 8 ++++++-- index.html | 16 ++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f04df75..726d059 100644 --- a/README.md +++ b/README.md @@ -88,12 +88,14 @@ Use images to complement your responses, powered by Brave. | Rule | Limit | Action | |---|---|---| -| Rate Limit | 10 requests/10s per IP | Block for 10s | +| Rate Limit | ~10 requests/10s per IP | HTTP 429 for ~10s | ### New Searches (Cache Misses) -- **15 new searches per day per IP** (resets at midnight UTC) +- **35 new searches per day per IP** (resets at midnight UTC), then `limit.webp` is served - **Cache hits are unlimited** (within WAF limits above) +- Failed searches count toward the limit and are remembered for 24h (`bad.webp`) +- WAF counters are approximate (not shared perfectly across Cloudflare servers), so bursts may slip slightly past 10 - **Brave API quota:** $5 free monthly credits (1,000 queries), then $5/1k requests ## Caching @@ -107,6 +109,8 @@ Use images to complement your responses, powered by Brave. Free community service. Donations help cover API and infrastructure costs. +**GitHub Sponsors:** [github.com/sponsors/multipleof4](https://github.com/sponsors/multipleof4) + **BTC:** `bc1q3d975cd57205dx6mz05s2g27xujxsc3q0nlv59` --- diff --git a/index.html b/index.html index d139ab2..0677e4c 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,8 @@ .status-notice{padding:20px;background:#fff5f5;border:1px solid #ffe0e0;border-radius:var(--radius);margin-bottom:48px;} .status-notice p{margin:0;font-size:1rem;} .status-notice strong{color:var(--warning);} - .btc-address{font-family:monospace;background:rgba(0,0,0,0.05);padding:4px 8px;border-radius:4px;font-size:0.85rem;word-break:break-all;display:inline-block;margin-top:12px;} + .donate{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px;} + .btc-address{font-family:monospace;background:rgba(0,0,0,0.05);padding:4px 8px;border-radius:4px;font-size:0.85rem;word-break:break-all;display:inline-block;} section{margin-bottom:48px;} h2{font-size:1.5rem;font-weight:700;margin-bottom:16px;border-bottom:1px solid var(--border);padding-bottom:8px;} pre{background:var(--code-bg);padding:16px;border-radius:var(--radius);overflow-x:auto;font-size:0.9rem;border:1px solid var(--border);} @@ -39,7 +40,10 @@

This service is free to use. However, search API and server costs are high. Without community donations, this project will die quickly.

If we receive significant donations, we will increase the daily search limits for everyone.

-
BTC: bc1q3d975cd57205dx6mz05s2g27xujxsc3q0nlv59
+
@@ -65,17 +69,17 @@ Use images to complement your responses, powered by Brave. ScopeLimitAction - Global Traffic10 req/10s per IPBlock (10s) - New Searches15 per day per IPCache only + Burst~10 req/10s per IPHTTP 429 (~10s) + New Searches35 per day per IPLimit image served -

* Cache hits are unlimited within global traffic limits.

+

* Cached images don't count toward the daily limit and keep loading after you hit it. The burst limit applies to all image requests and is enforced approximately. The daily limit resets at 00:00 UTC.

Caching

-

Images are cached for 30 days. Subsequent requests for the same query are served instantly.

+

Images are cached for 90 days. Subsequent requests for the same query are served instantly. Failed searches are remembered for 24 hours.