# Imageboard Grabber - Further Development & Roadmap This document outlines a roadmap and future development plan for the **Imageboard Grabber** application on Hugging Face Spaces. --- ## ๐Ÿš€ 1. Feature Enhancements ### 1.1 Support for Authenticated APIs (API Keys & Username) - **Goal:** Allow users to safely search and download from private or rate-limited sites (like Danbooru premium tiers, e621 personal accounts). - **Implementation:** - Add credential fields (API Key / Password Hash, Username) to the **Add Site** dialog. - Securely transmit credentials to the server using HTTP headers or request bodies. - Store credentials locally in the browser's `localStorage` or session-only cookies so they are never stored globally on the server. ### 1.2 Persistent Site Configuration - **Goal:** Avoid losing newly added schemas when refreshing or clearing session storage. - **Implementation:** - Sync the list of added custom sites with IndexedDB or `localStorage`. - Provide an **Export/Import Sites** button to allow users to backup their custom configurations as JSON. ### 1.3 Advanced Query Builder - **Goal:** Help non-technical users build complex booru search queries. - **Implementation:** - Add UI controls for searching by rating (Safe, Questionable, Explicit), score range, upload date, or file extension. - Autocomplete / tag suggestion box by querying the active site's tag API endpoint (e.g., `/tags.json?search[name_matches]=*`). ### 1.4 Enhanced Lightbox & Media Viewer - **Goal:** Support video playback and metadata exploration. - **Implementation:** - Auto-detect video extensions (`.webm`, `.mp4`) in the Lightbox and render a native HTML `