Skip to content

feat: add Web UI for easy generation and history management (+ history bugfix)#10

Open
ugvfpdcuwfnh wants to merge 4 commits into
shadowcopyrz:mainfrom
ugvfpdcuwfnh:feat-web-ui
Open

feat: add Web UI for easy generation and history management (+ history bugfix)#10
ugvfpdcuwfnh wants to merge 4 commits into
shadowcopyrz:mainfrom
ugvfpdcuwfnh:feat-web-ui

Conversation

@ugvfpdcuwfnh
Copy link
Copy Markdown

@ugvfpdcuwfnh ugvfpdcuwfnh commented Apr 6, 2026

Summary

This PR introduces a lightweight, FastAPI-based Web UI to the ESET-Keygen project, providing a user-friendly way to generate keys and accounts without using the terminal.

Key Features

  • Modern Web Interface: A clean, single-page UI built with TailwindCSS and Alpine.js (no Node.js build step required).
  • Real-time Log Streaming: Uses WebSockets to stream execution logs from the underlying script directly to the browser.
  • Configuration Persistence: Automatically remembers and loads the user's last-used settings (Mode, Email API, Browser, etc.).
  • History Management: Includes a local SQLite database (web_data.sqlite) to store and view all previously generated accounts and keys.
  • Non-Invasive Architecture: Wraps the existing main.py logic using subprocesses, requiring minimal changes to the core CLI tool.

Additional Bugfix Included (code-only)

  • Fixes a web history regression where Generation History could stay empty because get_history() did not return fetched rows.
  • Ensures /api/history now returns a JSON-serializable list ([dict(row) for row in rows]).
  • Adds observability log when parsing is incomplete and history is not saved:
    • [SYSTEM] Parse incomplete; history not saved (email_found=..., password_found=...)
  • Keeps existing success-path history log unchanged.

How to Run

  1. Install dependencies: pip install -r requirements.txt
  2. Start the web server: python web.py
  3. Access at http://localhost:8000

This addition significantly lowers the barrier to entry for local users while keeping the powerful CLI functionality intact.

@ugvfpdcuwfnh
Copy link
Copy Markdown
Author

I have test . The web run successfully!

ESET

@ugvfpdcuwfnh ugvfpdcuwfnh changed the title feat: add Web UI for easy generation and history management feat: add Web UI for easy generation and history management (+ history bugfix) Apr 29, 2026
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