Initial commit — ComfyUI Discord bot + web UI

Full source for the-third-rev: Discord bot (discord.py), FastAPI web UI
(React/TS/Vite/Tailwind), ComfyUI integration, generation history DB,
preset manager, workflow inspector, and all supporting modules.

Excluded from tracking: .env, invite_tokens.json, *.db (SQLite),
current-workflow-changes.json, user_settings/, presets/, logs/,
web-static/ (build output), frontend/node_modules/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Khoa (Revenovich) Tran Gia
2026-03-02 09:55:48 +07:00
commit 1ed3c9ec4b
82 changed files with 20693 additions and 0 deletions

81
.gitignore vendored Normal file
View File

@@ -0,0 +1,81 @@
# ── Python ────────────────────────────────────────────────────────────────────
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# ── Virtual environments ───────────────────────────────────────────────────────
venv/
env/
ENV/
.venv/
# ── Secrets / environment ─────────────────────────────────────────────────────
# Contains DISCORD_BOT_TOKEN and other credentials — NEVER commit
.env
# Hashed invite tokens — auth credentials; regenerate via token_store.py CLI
invite_tokens.json
# ── SQLite databases ──────────────────────────────────────────────────────────
# generation_history.db — user generation records
# input_images.db — image BLOBs (can be hundreds of MB)
*.db
# ── Runtime / generated state ─────────────────────────────────────────────────
# Active workflow overrides (prompt, seed, etc.) — machine-local runtime state
current-workflow-changes.json
# Per-user persistent settings (created at runtime under user labels)
user_settings/
# User-created presets — runtime data; not project source
presets/
# NSSM / service log files
logs/
# ── Frontend build artefacts ──────────────────────────────────────────────────
# Regenerate with: cd frontend && npm run build
web-static/
# npm dependencies — restored with: cd frontend && npm install
frontend/node_modules/
# Vite cache
frontend/.vite/
# ── IDE / editor ──────────────────────────────────────────────────────────────
.vscode/
.idea/
*.swp
*.swo
*~
# ── OS ────────────────────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
# ── Syncthing ─────────────────────────────────────────────────────────────────
.stfolder/
.stignore
# ── Claude Code project files ─────────────────────────────────────────────────
# Local conversation history and per-project Claude config — not shared
.claude/