poli0981andClaude Opus 5 8c32435d8a fix(strict-mode): derive the gate from state, not from mounted inputs
The first cut had each input register its own error into a shared store as it
rendered, clearing on unmount. That read as reasonable and was quietly useless:
the fields live on the Editor page, the gates live on Batch / Social / Output /
Profiles, and unmounting the Editor took every issue with it. Verified in the
browser — typing a malformed Steam URL, navigating to Batch, and finding
Generate perfectly enabled with no banner.

Replaced with two sources that between them cover what the setting promises:

- `collectEditorIssues` (pure, `@utils/editor-issues`) walks the editor STATE
  against the same validators and the same `PLATFORMS` / `SOCIAL_FIELDS` config
  the inputs use — one rule set, two consumers, no duplicated regexes. This is
  what catches data that never passed through an input at all: an imported
  profile, a preset shared by someone else, a draft persisted before a
  validator got stricter. Since `ValidatedInput` refuses to commit invalid
  text, imports are in fact the main way bad data reaches the store.
- `pending-invalid-store` holds text that is invalid and therefore *not*
  committed. Without it, a field showing a red error would still be invisible
  to every gate, because the store behind it holds the last good value. It has
  no unmount cleanup — that was the original bug — so an entry lives until the
  field is valid again.

Both are filtered through one relevance check, so a field nobody can see never
blocks: `adEmail` / `gameKeyEmail` while the split toggle is off, `zaloGroupLink`
outside Vietnamese output. Without that, Strict Mode could become an
unresolvable dead end — blocked on a field with no visible input to fix it.

Dropping the registry also removes the render-loop hazard it carried: the
effect published on every render of every input, guarded only by a deep-equal
bail-out.

Verified end to end in the browser: a bad Steam URL now disables Generate on
Batch and names the field in the banner; fixing it re-enables; and a Ko-fi link
on a vanity domain shows its inline prefix warning without blocking anything.

Tests 687 → 696.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 11:11:20 +07:00
2026-05-14 15:45:16 +07:00
2026-05-14 15:45:16 +07:00

🎮 YTDescGen

YouTube Gameplay Description Generator — an offline-first template engine for Gameplay No Commentary YouTube channels.

Generate YouTube titles, descriptions, and tags in six languages with one click. Save channel, rig, and game presets to skip repetitive data entry. Works in the browser (GitHub Pages), as a ~8 MB native desktop app (Windows / macOS / Linux), or as an installable Android APK — all from one Tauri 2 codebase.

License Node Latest release Last commit


What is YTDescGen

YTDescGen is a single-purpose template engine. It does one job: turn a small set of structured fields (video type, game name, genres, rig, social links, content warnings, …) into a publish-ready YouTube title + description + tag set.

It doesn't talk to the YouTube API. It doesn't upload anything. It doesn't track you. There is no server. State lives in your browser's localStorage (web) or your OS application-data directory (desktop) — and nowhere else.

Built for the gameplay no-commentary niche — especially horror / scary games — by someone running the @SkullMute channel who got tired of pasting the same boilerplate into every video. Released under Apache 2.0 in case it's useful to anyone else.

Features

  • 20 video types — Full Gameplay, Part, Boss Fight, Boss No-Hit, Ending, Speedrun, 100%, DLC, NG+, Challenge, Side Quest, Secret, Comparison, Guide, Mods, Collectibles, Livestream, Gacha Quest, Demo, Demo Part.
  • 6 UI languages — English, Vietnamese, Japanese, Spanish, Korean, Chinese. (VI authored by a native speaker; JA / ES / KO / ZH AI-translated — see DISCLAIMER.md.)
  • 40+ game genres — across action, RPG, FPS, horror, soulslike, indie, simulation, fighting, and more.
  • 248 content-warning IDs across 12 groups — spoilers, photosensitive/VFX, audio, dialogue/language, phobias (incl. color phobias), mental health, social phenomena, internet/digital life, sensitive themes (incl. method-specific death/violence and suggestive imagery), horror-specific, playstyle, and gameplay disclosure (mods / cheats / glitches / guide-assisted / educational purpose). Sets viewer expectations before they hit play.
  • Profile system — save channel / social / rig info once, reuse across every video.
  • Game presets — save game name + store links once, reuse across the entire part series.
  • Snapshot templates — save full-form configurations and recall in one click.
  • Smart tag generation — combines genre pool, platform, quality tier, multilingual hooks, and trending terms; auto-dedup and 500-char-limit aware.
  • Character counters — real-time limits for title (100), description (5000), tags (500).
  • Batch mode — generate metadata for all parts of a series in one pass.
  • Cross-post captions — a dedicated Social tab re-packages the same YouTube source into short-form captions for TikTok (4,000-char), Instagram Reels, and Facebook Reels — title, rig, content warnings, copyright, thanks, and hashtags (game + genre + curated per-platform popular tags). Single + bulk modes, per-platform character limits with smart overflow trimming, and JSON import/export.
  • Desktop app — Windows, macOS & Linux native binaries via Tauri (~8 MB).
  • Android app — installable, sideloadable .apk built from the same Tauri 2 codebase. Requires Android 11+ (tested 11–16; real-device test on Android 12). Grab it from Releases and enable "Install unknown apps" to sideload.
  • Mobile-responsive web — drawer navigation, touch-sized controls, iOS-safe text-input behavior. Tested down to 360 × 640.
  • 100% offline — no server, no telemetry, no account. See PRIVACY.md.

Quick Start

git clone https://github.com/poli0981/youtube-generator.git
cd yt-desc-gen
npm install
npm run dev        # web dev server at http://localhost:5173

Desktop build (Windows / macOS / Linux):

npm run tauri:build
# Output: src-tauri/target/release/bundle/{msi,deb,dmg,app}

Android build (.apk) — requires the Android SDK + NDK + a JDK:

cargo tauri android init          # one-time; generates src-tauri/gen/android
cargo tauri android build --apk
# Output: src-tauri/gen/android/app/build/outputs/apk/universal/release/

See docs/PACKAGING.md for the SDK/NDK setup and signing steps.

Full development setup, IDE config, and troubleshooting: see docs/DEVELOPMENT.md. Vietnamese version: docs/i18n/vi/DEVELOPMENT.md.

Use Cases

  • Gameplay no-commentary channels — the primary target. Default templates assume no voice-over and lean on visual hooks, music attribution, and timestamps.
  • Horror / scary-game channels — the content-warning system is especially deep here (analog horror, liminal spaces, pursuit / chase, entity / SCP-style, body horror, etc.).
  • Demo / Early Access playthroughs — dedicated video types and language-patch / game-version disclosure fields.
  • Speedrunners and 100% completionists — playstyle disclosures, run-type metadata, and difficulty fields.
  • Solo creators tired of copy-paste — profiles and presets exist specifically to eliminate repetitive data entry.

Privacy & Offline-First

Nothing leaves your device. No analytics, no telemetry, no tracking. The web version stores your work in localStorage; the desktop version stores it in the OS application-data directory. Clearing site data (web) or uninstalling the app (desktop) wipes everything. Full details in PRIVACY.md.

Tech Stack

React 18 · TypeScript (strict) · Vite 8 · Tailwind CSS 3 · Zustand · i18next · Tauri 2 (Rust stable).

Architecture overview: docs/ARCHITECTURE.md.

Documentation

Document What's in it
Development Guide Toolchain, IDE setup, build commands, troubleshooting. (Also: Vietnamese.)
Architecture Layer model, data flow, engine design.
Features Full feature matrix.
Content Inventory Every video type, genre, and content warning the editor surfaces. (Also: Vietnamese.)
Roadmap Development phases.
Tech Spec Implementation details and configs.
i18n Guide Adding new locales.
Packaging Tauri desktop + Android release builds and signing.
Contributing PR process, commit conventions, auto-ignore rules.
Security Reporting vulnerabilities.
Privacy Data handling (TL;DR: none).
Disclaimer AI-assistance and translation-quality disclosure. (Also: Vietnamese.)
Terms of Use Acceptable use and license compliance.
Code of Conduct Contributor Covenant v2.1.
Maintainers Who runs this.
Third-Party Notices Dependency attribution.
Changelog Per-release notes.

Contributing

PRs welcome — read CONTRIBUTING.md first. Native-speaker corrections to AI-translated locales (JA / ES / KO / ZH) are especially appreciated.

License

Licensed under the Apache License 2.0. See NOTICE for the copyright statement and THIRD_PARTY_NOTICES.md for dependency licenses.

AI Disclosure

This project was co-authored with Anthropic's Claude Code (model 4.7 Opus, 1M-context variant). Source code, locale translations, documentation, and CI workflows were generated or edited with AI assistance, then reviewed by the human maintainer (@poli0981) before being committed. See DISCLAIMER.md for the full disclosure.

Channel & Socials

Reference channel and maintainer links:

S
Description
No description provided
Readme Apache-2.0
5 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 95.4%
Rust 2.1%
CSS 0.8%
HTML 0.7%
JavaScript 0.6%
Other 0.4%