ChBysk commited on
Commit
e35f67f
·
verified ·
1 Parent(s): fa7b380

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. ROADMAP.md +72 -0
ROADMAP.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Imageboard Grabber - Further Development & Roadmap
2
+
3
+ This document outlines a roadmap and future development plan for the **Imageboard Grabber** application on Hugging Face Spaces.
4
+
5
+ ---
6
+
7
+ ## 🚀 1. Feature Enhancements
8
+
9
+ ### 1.1 Support for Authenticated APIs (API Keys & Username)
10
+ * **Goal:** Allow users to safely search and download from private or rate-limited sites (like Danbooru premium tiers, e621 personal accounts).
11
+ * **Implementation:**
12
+ - Add credential fields (API Key / Password Hash, Username) to the **Add Site** dialog.
13
+ - Securely transmit credentials to the server using HTTP headers or request bodies.
14
+ - Store credentials locally in the browser's `localStorage` or session-only cookies so they are never stored globally on the server.
15
+
16
+ ### 1.2 Persistent Site Configuration
17
+ * **Goal:** Avoid losing newly added schemas when refreshing or clearing session storage.
18
+ * **Implementation:**
19
+ - Sync the list of added custom sites with IndexedDB or `localStorage`.
20
+ - Provide an **Export/Import Sites** button to allow users to backup their custom configurations as JSON.
21
+
22
+ ### 1.3 Advanced Query Builder
23
+ * **Goal:** Help non-technical users build complex booru search queries.
24
+ * **Implementation:**
25
+ - Add UI controls for searching by rating (Safe, Questionable, Explicit), score range, upload date, or file extension.
26
+ - Autocomplete / tag suggestion box by querying the active site's tag API endpoint (e.g., `/tags.json?search[name_matches]=*`).
27
+
28
+ ### 1.4 Enhanced Lightbox & Media Viewer
29
+ * **Goal:** Support video playback and metadata exploration.
30
+ * **Implementation:**
31
+ - Auto-detect video extensions (`.webm`, `.mp4`) in the Lightbox and render a native HTML `<video>` player with volume and speed controls.
32
+ - Show side-panel info: Artist, Character, Copyright, and Meta tags. Click a tag to search.
33
+
34
+ ---
35
+
36
+ ## 🛠️ 2. Architectural & Performance Improvements
37
+
38
+ ### 2.1 Concurrent / Streamed Server Downloads
39
+ * **Goal:** Speed up ZIP compilation and handle massive file downloads without causing OOM (Out Of Memory) crashes.
40
+ * **Implementation:**
41
+ - Implement streaming ZIP using `fflate` on the server so bytes are sent back to the client immediately as they download, rather than buffering entire gigabytes in server memory.
42
+ - Limit concurrent download workers per request to avoid IP bans from image hosters.
43
+
44
+ ### 2.2 Client-Side Image Caching
45
+ * **Goal:** Reduce bandwidth usage and accelerate browsing.
46
+ * **Implementation:**
47
+ - Register a Service Worker to cache thumbnails and UI assets.
48
+ - Use `Cache-Control` headers for downloaded image URLs.
49
+
50
+ ---
51
+
52
+ ## 🧪 3. Quality Assurance & Automated Testing
53
+
54
+ ### 3.1 End-to-End Tests with Playwright
55
+ * **Goal:** Ensure code modifications do not break key features like site additions or tag searches.
56
+ * **Implementation:**
57
+ - Add E2E test suites inside a `tests/` directory.
58
+ - Mock API responses from e621/Danbooru to test search, grid rendering, and selection UI without hitting actual boorus.
59
+
60
+ ### 3.2 Unit and API Integration Tests
61
+ * **Goal:** Validate parsing logic, schema validation, and URL building helpers.
62
+ * **Implementation:**
63
+ - Write Vitest suites to verify mapping functions in `src/lib/grabber/sites.ts` and zip streaming endpoints.
64
+
65
+ ---
66
+
67
+ ## 🌐 4. Deployment & Infrastructure Optimization
68
+
69
+ ### 4.1 Hugging Face Storage Integration
70
+ * **Goal:** Retain user session data or cache assets on persistent storage.
71
+ * **Implementation:**
72
+ - Connect a Hugging Face Dataset or persistent Space storage to backup logs or temporary configuration files if requested.