Anime Search
The anime-search capability is a consumer of a selectable anime-provider plugin. Configure Provider plugin (default Anime Providers) and backend (anikoto, pahe, anineko) in Config → Plugins. Enabling requires the selected provider to be enabled. AniNeko is legacy/retired.
Search.search(query, page=1) validates query/page and forwards to the selected provider with the configured backend. info(identifier) and episodes(identifier) use the same provider; namespaced IDs preserve their original source. This normalizes the integration interface for Watchlist without coupling Watchlist to Node, individual sites, or fixed backend choices.
GET /plugins/anime-search/ runs an explicitly submitted search, displays result tiles and pagination, and handles provider errors. It does not fetch media streams or download video. GET /api/search?q=...&page=... exposes the same result dictionary to authenticated permitted users. POST /watchlist requires content.write and CSRF, validates a target advertising watchlist, calls its add(title, external_id=..., category='plan-to-watch'), audits the addition and redirects to the search results.
The active Watchlist implementation is chosen by the result form, so Search does not need a saved reverse dependency on Watchlist. A Watchlist can independently select Anime Search (or another conforming search plugin) in its settings without creating a dependency cycle. service(), index(), api_search() and add_watchlist() adapt the service to these routes.