ai-toolkit
ai-toolkit copied to clipboard
Add support for remote dataset source plugins
Introduce a plugin system that lets remote datasets be browsed and imported from external services directly in the UI.
- toolkit/dataset_sources/: base class, registry, and a CLI bridge that the Next.js API routes call to list plugins, browse items, fetch thumbnails, and build import job configs. Plugins live in extensions/ and self-register from their init.py, so they are only loaded on demand.
- ui: a RemoteSourceBrowseModal plus /api/datasets/remote/* routes for listing plugins, browsing, thumbnails, and importing, with the settings page driven by each plugin's settings_schema.
The framework is plugin-agnostic; no plugin is bundled here. There is a second PR coming that offers a PixlStash plugin (https://pixlstash.dev) but it should be possible to create other plugins (i.e. Immich).