Skip to content

feat: queue retry, proxy support, CLI, and web UI#4

Open
callmedark44 wants to merge 1 commit into
l2studio:mainfrom
callmedark44:main
Open

feat: queue retry, proxy support, CLI, and web UI#4
callmedark44 wants to merge 1 commit into
l2studio:mainfrom
callmedark44:main

Conversation

@callmedark44

Copy link
Copy Markdown

Changes

Core library improvements

  • Queue retry loop: automatically retries when iqdb returns a queue position, with configurable retries via maxQueueRetries option
  • Proxy support: added proxy option for HTTP/HTTPS proxy (uses hpagent)
  • Cookie support: uses tough-cookie CookieJar for session persistence across retries
  • onQueuePosition callback: reports queue position during retries
  • Updated cheerio to v1.2.0, updated target to es2020

New CLI tool

  • src/cli.ts — command-line search by URL or local file
  • Usage: npx ts-node src/cli.ts <image-url|file-path>
  • Accepts https_proxy/http_proxy env vars

New Web UI

  • server.ts — Express-based web interface
  • Run with npm start (serves on http://localhost:3333)
  • File upload and URL search, service selection, tab switching (iqdb.org / 3d.iqdb.org)
  • Shows queue status after 4s of waiting

Other

  • Updated dev dependencies, removed unused lint/dev tooling
  • Updated test to use proxy from env

- Add queue position retry loop with cookie support (tough-cookie)
- Add proxy support (hpagent)
- Add CLI tool (src/cli.ts)
- Add Express web UI (server.ts)
- Update dependencies and target to es2020
- Add bin entry for CLI
- Update test to use new API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant