Spaces:
Running
Running
Commit History
7 days ago
-
Log whether the app can reach Cloudflare siteverify
In production every Turnstile check fails with a ConnectTimeout to challenges.cloudflare.com, on both attempts, though the Space reaches the Anthropic API and the HF Hub. The log does not tell whether IPv4, IPv6 or all of Cloudflare is unreachable, so the fix is unclear. When Turnstile is on, the app now tests the connection at startup and after a network error (at most every 10 minutes), in the background. It logs one "Turnstile probe:" line per check: DNS, TCP to each address, siteverify over the default route, IPv4 and IPv6, and https://www.cloudflare.com/. The siteverify checks send Cloudflare's test secret, never the real one.ae59f0f -
Log why a Turnstile check fails and retry a network error
In production every Turnstile check failed with the log line "Turnstile verification failed:" and nothing after it: the call to Cloudflare siteverify raised an httpx timeout or connect error, whose message is empty. A token that Cloudflare rejected was not logged at all. The warning now names the exception and how long the call took, or Cloudflare's error codes and hostname, or the HTTP status and the start of the body of an error page. The secret and the token are never logged. A network error is retried once with the same idempotency key, so Cloudflare does not reject the retry as a reused token. README-DEV lists what each warning means.178059b -
Start the AI answer by itself for a typed question or a cached answer
Since 0.9.0 the AI answer waits for a click, so a visitor who typed a question on the home page had to click a second time, and a cached answer, which costs nothing, waited for a click and the human check. The search box now hands a submitted question to the search page in sessionStorage, and the page starts the AI when its query matches (once; a reload or a filter change is not typing). On load, every AI section first asks /api/ask?cached=1, which returns only a cached answer, without Turnstile or the rate limit, or a not_cached event that shows the button.9a1bbc3 -
Add a monthly AI budget and pause at the workspace spend limit
When the Anthropic workspace reached its spend limit, every AI question failed with "Something went wrong while answering", and each one still sent a request to the API. The app knew only a daily budget. A monthly budget (ANKI_CATALOG_MONTHLY_BUDGET_USD, default $18) now stops AI search before a $20 workspace limit. If the API still reports the limit, the app pauses AI search until the time in the error and sends no more requests. In all three cases visitors see "AI search is paused until <date> because its budget is used up", and the question log records the outcome "budget". The admin usage page shows the month's spend and the pause.365ef12 -
Limit AI questions per Turnstile pass, not only per IP
The pass cookie was not bound to an IP and not counted, so a bot that solved Turnstile once could reuse the cookie from many IPs for an hour, with a fresh rate limit on each. Each pass now has a random id, and the rate limit counts questions per pass as well as per IP. Cookies in the old format no longer validate, so visitors who passed the check before the deploy solve it once more.0155d96 -
Start the AI answer only when the visitor clicks a button
The search page and the alternatives page used to ask the AI as soon as they loaded. Most of these questions were cancelled: a filter change reloads the search page, and many visitors leave the alternatives page within a few seconds. They still cost money, more than half of the AI spend since 17 November. The AI answer section now shows a button ("Ask the AI", "Ask the AI for alternatives"); the question and the human check start on a click. robots.txt also keeps crawlers away from the alternatives pages.32e4a43
10 days ago
-
Show the "Built with AI" badge only on the addon page
Addon cards in search results and other lists no longer show the badge. The addon page still shows it, with the signals in its tooltip.67fbc75 -
Mark addons built with AI
The addon page and every addon card show a "Built with AI" badge when the addon has AI coding tool traces in its GitHub repo, AI-usage words in its AnkiWeb description, or the "ai" feature tag: an author who builds AI features most likely also uses AI to write the code. The badge's tooltip lists the signals found. The declaration words also match addons that only use AI as a feature; such addons carry the "ai" tag anyway, so they would get the badge either way.79ca5dc -
Add a search field to the category filter
The category list is long, like the language list, so it gets the same find field: it hides the categories that do not contain the typed text, a chosen category stays visible so it can be cleared, and a message shows when nothing matches. The field does not reload the page and is not part of the search URL.8575b0f -
Filter the Browse page by keywords
A Keywords field in the filter panel narrows the list with a full-text search (titles, descriptions, AI summaries, tags, GitHub topics) and keeps the chosen sort order through the sort_by of search_addons in MCP 0.13.0. It runs no AI. Keywords only apply while browsing, like the sort order: a question drops them, so the AI and the keyword matches never see them.a995bab
15 days ago
-
Add a search field to the programming language filter
The language list is long and sorted by how many addons use each language, so a rare language was hard to find. A field above the list now hides the languages that do not contain the typed text; a chosen language stays visible so it can be cleared, and a message shows when nothing matches. The field does not reload the page and is not part of the search URL.a28f866 -
Filter search results by programming language
Add a "Programming language" group to the filter panel: the visitor can choose several languages, and an addon must contain all of them. The list shows every language found in the GitHub repos and AnkiWeb packages, with counts, most used first. The filter also applies to the AI answer; languages the AI asks for are added to the visitor's choice.cac0a26 -
Upgrade to anki-addons-mcp 0.12.0 and show the license and virus scan
MCP 0.12.0 follows dataset v2.0-2026-11-01, which adds licenses and ClamAV scan results. Each addon gets one license with its source (package license file, GitHub, .py headers, README or description); cards and the license statistics use it, and github.license can be NOASSERTION. get_addon no longer returns github.languages, and cards and the search tools gain primary_language. The addon page shows the addon's license with its source and the ClamAV result of the newest package, with a note on what a scan can prove. The GitHub language row reads language_bytes. Cards built from get_addon take the resolved license, as the search results do. The AI prompt explains a null license and the limits of a ClamAV scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>969a806 -
Give "Ask about alternatives" a short link: /addon/<id>/alternatives
The button linked to /search?q=Alternatives%20to%20...%20%28addon%20<id>%29, which is long and ugly to share, and the keyword matches under the AI answer were mostly noise for that sentence. The new page asks the AI the same question, built on the server, so every visitor of a shared link hits the answer cache. Below the answer it lists similar addons found without AI, so the page is still useful when the AI is not available. It keeps the Anki version as a filter, has its own link preview, and is noindex for now. The AI answer section is now a partial shared with the search page. Old /search links keep working.ef05478 -
Name the addon id in "Ask about alternatives"
The button asked "Addons similar to <title>". Titles are not unique, so the AI searched by title first and could pick a fork or a copy: the original Review Heatmap is only the 7th result of a title search. The question is now "Alternatives to <title> (addon <id>)", and it keeps the Anki version the visitor checked on the page as a filter. The AI prompt asks Claude to start from a named addon id (get_addon and find_similar_addons), not to recommend the addon itself or its copies as alternatives, and to say how each alternative differs.33061a1
18 days ago
-
Upgrade to anki-addons-mcp 0.11.0 and show addon copies
MCP 0.11.0 follows dataset v1.0-2026-11-01 and pins the dataset to that tag; the in-process server takes the pin from its defaults. It adds copies (duplicate_of/duplicates: listings whose newest packages are byte-identical) and shared GitHub repos (github.shared_with). The addon page says which addon a copy copies, lists the copies of an original and the other addons of the same repo (at most 10 links), and notes that the stars belong to the whole repo. Cards of copies get a copy badge that links to the original. The AI prompt asks Claude to prefer originals, to name copies, and not to compare addons of one repo by repo numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>a587037
22 days ago
-
Show the live addon count and forks in link previews
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>78529a8 -
Show the app version on the header's Beta label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1553c87 -
Upgrade to anki-addons-mcp 0.10.2
The dataset 4.2.1 republish names package languages with GitHub Linguist names (Python, JSON, JavaScript) instead of lowercase labels. The addon and stats pages show the names as they come, so only the test fixtures were stale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>9cc2f62
23 days ago
-
Shorten the package languages label on the addon page
The AnkiWeb box already says where the data comes from, so "Languages" is enough. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>bcf139c -
Upgrade to anki-addons-mcp 0.10.1 and show package languages
The server renamed the GitHub fork count from forks to fork_count, so the addon page showed "forks" with no number. Read the new name. Show the languages detected in the AnkiWeb package: a row on the addon page, which also covers addons without GitHub, and a group on the stats page. Give the two language groups clear titles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>63974fc
-
Grow the search box with the question
The question field is now a textarea that starts at one line and grows up to 40% of the screen. Enter asks and Shift+Enter starts a new line; Enter that confirms an input method (Japanese, Chinese, Korean) does not submit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>452d66b -
Allow questions up to 2000 characters
The search box now takes its maxlength from the config instead of a fixed 500. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>2ccb73c
-
Let the admin login ask the AI search without Turnstile for smoke tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>e61f1b1 -
Compare all versions of an addon on its page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>36b8231 -
Open addon pages from search results in a new tab
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>5303b29
-
Show the addon count in the home page hero text
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>560f2fd -
Replace the pass cookie in test_turnstile_gate instead of adding a second one
The newer FastAPI TestClient keeps the issued cookie under domain testserver.local, so cookies.set() added the forged one beside it, both were sent and the valid one passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>b5a732b
-
Suggest real Anki versions in the Anki version inputs
The search filter panel and the addon page's compatibility check offer the stable Anki releases from the MCP server's list_anki_versions tool (newest first) as a datalist; picking one applies the filter right away. Claude can use the tool in Ask too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016PhrfpoapqCnr6Qufo6CHA85a200d -
Show the MCP server version on the About page
The version comes from the MCP handshake (server_info), so it is right for the in-process server and a remote one alike. The page still renders, without the version, when the catalog is unavailable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016PhrfpoapqCnr6Qufo6CHA9c64562
-
Show a forks badge on parent addon cards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>842686c -
Show addon forks from the MCP server's fork relations
Pin anki-addons-mcp to e7a56f9, the commit the MCP Space runs, which adds forked_from/forks to addon records and the is_fork/has_forks/fork_of filters. - Addon pages link the parent of a fork (noting AI-detected relations), show the GitHub fork source and list the addon's forks. - Cards mark forks and count an addon's forks. - A "Hide forks" search filter (nofork=1). - The AI search looks for forks of stale or abandoned addons; the visitor's "Hide forks" filter does not apply to its fork_of calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>0670c04
-
Show both the description and the README, collapsed when long
The addon page showed the README instead of the AnkiWeb description; it now shows the description first, then the README. Texts taller than 24rem are cut with a fade and a "Show more" button; without JavaScript they show in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>0445a10 -
Render the AnkiWeb description as sanitized HTML on addon pages
Fetch the author's HTML from the MCP server (get_addon_description format=html), sanitize it with the README allowlist and keep AnkiWeb's pre-wrap line breaks for older descriptions. Fall back to the plain text when there is no HTML. Bump anki-addons-mcp to cdf4f2b, the commit the Space runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>f756e42 -
Show votes and approval instead of raw rating
AnkiWeb's rating is the vote count (likes + dislikes), so labelling it "Rating" read as a quality score. The MCP server now ranks by approval (Wilson lower bound of likes among votes); bump it and relabel the UI, filters and Ask prompt accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>4fccde4 -
Render raw HTML in addon READMEs, sanitized
GitHub READMEs may embed HTML (e.g. centered images and video links), which was escaped and shown as literal tags. READMEs now keep raw HTML and pass through an nh3 allowlist; relative URLs in raw HTML resolve against the repository. AI answers still escape raw HTML. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>9bbcb91
-
Revert "Make the filtered catalog the home page"
This reverts commit 108ad04a53282bad564d0ad410f68cb960d635a8: the home page is back as it was, and the filter panel lives on /search again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi9a848fa -
Make the filtered catalog the home page
/search now only answers questions; without one it redirects home with the filters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi108ad04 -
Add a filter panel to search and browsing
Filters (Anki version, categories, rating, maintenance status, paid/obsolete) narrow the keyword results, browsing without a query and the AI answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXif5239c0 -
Show the data collection date instead of the report generation date
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi59c0ff1 -
Link static files by path so they load over HTTPS on the custom domain
The HuggingFace proxy for www.anki-addons-catalog.com reports the scheme as http, so url_for built http:// links that browsers blocked as mixed content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXib397741 -
Browse addons by AI tag on /tags and /tag/{name}
List the tag vocabulary with counts and descriptions, list each tag's addons best rated first (obsolete ones hidden except on /tag/obsolete), link the tag chips to the tag pages, add the pages to the nav and sitemap, and show an AI tag table on /stats. Tests run against anki-addons-mcp 0.3.0 with tagged and version-parsed fixtures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi73aef43
-
Switch the AI model with one setting: ANKI_CATALOG_MODEL=sonnet or haiku
Prices and the refusal fallback come from a table of known models (Sonnet 5.5, Haiku 5.5 with its long-prompt price tier), so the daily budget stays right after a switch. Fixes the Sonnet 5.5 cache-read price ($0.10, was $0.20). The question log stores which model answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi624ec75 -
Log every AI question with its trace for analysis on /admin/questions
The usage database gets a questions table (kept 90 days, no IP): question, outcome, tokens, cost, duration, answer and each model round with its tool calls. The admin pages list them, show one in detail and export all as JSON Lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi478b59a -
Show the About page dataset date as "1 Oct 2026"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXibd84dff -
Add a Contacts section to the About page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXid60cea1 -
Show the header dataset date as "1 Oct 2026" with an explanatory tooltip
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXie32b2da -
Show the dataset creation date in the header of every page
The date sits next to the Beta badge and links to About; on phones it is hidden and the header wraps instead of overflowing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXi7280c39 -
Add a private usage statistics page
/admin/usage (HTTP Basic, password ANKI_CATALOG_ADMIN_TOKEN) shows keyword searches, AI questions by outcome, AI spend and page views per UTC day. Counters live in SQLite under /data when the Space has persistent storage, else in memory; the daily budget resumes from the persisted spend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXidca4399 -
Mark the site as Beta in the header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G7oQmr9fvktpV3N8KDbTXia464b90