Skip to content

Releases: 0xH4KU/babel-discord-translator

v0.4.0

Choose a tag to compare

@0xH4KU 0xH4KU released this 05 Sep 05:16
80c3380

Babel 0.4.0 adds multimodal provider routing, fair-use budget controls, and a redesigned dashboard.

Highlights

  • Route Babel Lens directly through image-capable providers and use Cloud Vision OCR for text-only provider legs.
  • Share prompt, glossary, cache, fallback, and accounting behavior between text and image translation.
  • Add UTC monthly budgets with configurable rolling 5-hour and 7-day fair-use limits.
  • Isolate Guild and Pocket budget pools, reserve worst-case provider spend, and persist settled costs.
  • Redesign dashboard navigation, Settings, provider selection, diagnostics, and bottom-pinned save actions.
  • Tighten OCR region filtering, marker normalization, and truncated-response handling.

Upgrade

Back up babel.sqlite before deployment. Existing SQLite data migrates automatically at startup. Review the new fair-use limit defaults in Settings and Access after upgrade. No Discord command re-registration is required when upgrading from v0.3.0.

v0.3.0

Choose a tag to compare

@0xH4KU 0xH4KU released this 29 Aug 12:08
a598600

Babel Lens adds private image translation for both Babel Guild and Babel Pocket.

Highlights

  • OCR Discord PNG, JPEG, and WebP attachments with Google Cloud Vision.
  • Return translated JPEGs with numbered source and translation regions.
  • Control monthly Vision usage globally and per Guild server or Pocket user.
  • Use dedicated OCR caching, bounded rendering, and localized Lens guidance in all 16 /help languages.
  • Preserve existing global Vision usage during the scoped-quota migration.

Upgrade

Re-register the Discord commands after deployment so Babel Lens appears in Apps. Combined deployments must register both Guild and Pocket commands. Configure the Cloud Vision key and monthly image limit in Settings, then enable Lens for selected Guild servers in Access. Direct Linux installs need Noto Core and CJK fonts; the Docker image already includes them.

See CHANGELOG.md and README.md for details.

v0.2.3

Choose a tag to compare

@0xH4KU 0xH4KU released this 27 Aug 13:12
d1b469d

Highlights

  • Retired the Cloudflare Worker/D1 runtime so Babel now ships one Node.js Gateway and SQLite deployment path.
  • Hardened provider prompt roles, atomic budget reservations, deterministic retries, fallback diagnostics, and readiness checks.
  • Improved Discord delivery with Unicode-safe splitting, thread-aware webhook reuse, serialized creation, and safer public webhook handling.
  • Made dashboard configuration, login, Setup Doctor, usage exports, and glossary imports more reliable.
  • Enforced glossary key uniqueness, fixed container maintenance and IPv4 health checks, and refreshed vulnerable transitive dependencies.

Validation

  • 417 tests on Node.js 22 and 24
  • Coverage thresholds, type checks, lint, production dependency audit, builds, and dashboard smoke tests
  • Docker image build and GitHub Pages deployment

v0.2.2

Choose a tag to compare

@0xH4KU 0xH4KU released this 12 Jul 05:16
44b0cb6

Highlights

  • Added the Cloudflare Workers runtime with signed Discord HTTP interactions, static dashboard assets, and D1-backed state.
  • Added SQLite-to-D1 migration tooling and Cloudflare deployment documentation.
  • Added Setup Doctor diagnostics, Pocket budget views, 30-day CSV usage export, and guild-scoped language preferences.
  • Hardened dashboard scoping, configuration validation, metrics authentication, provider HTTP errors, and retry classification.

Validation

  • 490 tests on Node.js 22 and 24
  • Coverage thresholds, type checks, lint, audit, dashboard builds, and smoke tests
  • Cloudflare Worker dry-run bundle and Docker image build
  • GitHub Pages and Railway deployment checks

v0.2.1

Choose a tag to compare

@0xH4KU 0xH4KU released this 22 Jun 06:59
c64bf58

Highlights

  • Added multilingual server glossary support and CSV/TSV glossary import workflows.
  • Scoped combined dashboard logs and usage history by active app profile.
  • Added optional metrics token authentication and safer dashboard error handling.
  • Fixed Pocket history scope bypass and escaped stored glossary fields in dashboard rendering.
  • Pinned undici via npm override to satisfy the high-severity audit gate.

Validation

  • PR #13 checks passed: ci (22), docker, Railway.
  • Local verification: npm audit --audit-level=high, npm test, npm run typecheck, npm run lint, npm run build.

Babel v0.2.0 — Guild + Pocket combined deployment

Choose a tag to compare

@0xH4KU 0xH4KU released this 13 Jun 11:16

Highlights

  • Added BABEL_APP=combined for running Babel Guild and Babel Pocket in one Node.js process with one SQLite database.
  • Added clean combined dashboard routing: / opens a product chooser, /guild manages Babel Guild, and /pocket manages Babel Pocket.
  • Added scoped dashboard APIs under /guild/api/* and /pocket/api/* while keeping root /api/* compatibility.
  • Updated Railway, Docker, VPS, and deployment docs for combined mode, profile-specific Discord tokens, persistent volumes, and low-cost shared-fate hosting.
  • Added health-only dashboard mode and Docker memory tuning for constrained hosts.
  • Improved runtime performance with in-flight provider call deduplication, cached runtime config reads, prepared SQLite statement reuse, faster daily usage paths, and tighter Discord.js cache bounds.
  • Improved provider resilience by persisting circuit breaker state and avoiding extra exhausted-retry requests.
  • Updated the read-only Guild and Pocket dashboard demos for the new combined-compatible frontend assets.

Upgrade Notes

  • Existing single-product deployments can keep using BABEL_APP=guild or BABEL_APP=pocket.
  • To run both products in one service, set BABEL_APP=combined and configure BABEL_GUILD_DISCORD_TOKEN plus BABEL_POCKET_DISCORD_TOKEN.
  • In combined mode, use /guild and /pocket for product-specific dashboard management.

Validation

  • npm test -- tests/version.test.ts tests/dashboard.test.ts tests/build-demo.test.ts — 3 files, 68 tests passed
  • npm run typecheck
  • npm run lint
  • npm test — 46 files, 409 tests passed
  • npm run build
  • git diff --check

Babel v0.1.3

Choose a tag to compare

@0xH4KU 0xH4KU released this 03 Jun 10:30
7d5096c

Highlights

  • Added the Babel Guild and Babel Pocket monorepo app split so server/guild install and user-install products share translation, provider, cache, usage, metrics, logging, and persistence foundations.
  • Added app-specific command registration scripts and workspace builds for Guild and Pocket deployments.
  • Added user-install persistence, access control, pending owner tracking, and per-user budget/usage support for Babel Pocket.
  • Synced root, Guild, Pocket, dashboard, demo fixtures, and runtime version surfaces to 0.1.3.
  • Added separate read-only dashboard demos for Guild and Pocket.
  • Clarified Railway template deployment so one template can select Guild or Pocket with BABEL_APP.
  • Fixed translation usage scope handling so user-install billing is user-scoped without changing Guild behavior.

Validation

  • npm test — 38 files, 295 tests passed
  • npm run lint
  • npm run typecheck
  • npm run build
  • GitHub Actions PR checks: ci (22) and docker

Babel v0.1.2

Choose a tag to compare

@0xH4KU 0xH4KU released this 01 Jun 06:53
  • Added the Railway one-click deployment path with a public template button, railway.json, /livez healthcheck wiring, Railway PORT support, and /app/data SQLite persistence guidance.
  • Added per-server glossary management so each Discord server can keep its own term mappings for names, brands, game terms, and community vocabulary.
  • Added Docker self-host operations docs covering first deploy, updates, cleanup, and server migration.
  • Improved self-hosting docs around Railway, Docker, setup flow, and optional Ko-fi support.
  • Kept the README lean by moving release history into this changelog.

Babel 0.1.1

Choose a tag to compare

@0xH4KU 0xH4KU released this 01 Jun 02:54
1ed2b9f

Highlights

  • Added support links and GitHub Sponsors-style funding metadata for Ko-fi.
  • Added a generated read-only dashboard demo published through GitHub Pages.
  • Added deployment documentation for Railway, VPS, Docker, PM2, and static demo hosting.
  • Added dashboard version metadata and update checks against the latest GitHub release.
  • Cleaned Discord translation output: right-click Babel keeps the original preview without diagnostics, while /translate sends only the translated text.

Verification

  • npm run typecheck
  • npm run lint
  • npm test
  • npm run build

Babel 0.1.0

Choose a tag to compare

@0xH4KU 0xH4KU released this 31 May 13:04
0845da3

Babel 0.1.0

First release-tagged operations build for Babel.

Highlights

  • Discord-safe long translation output chunking and richer context menu extraction.
  • /translate delivery mode for public webhook output or private ephemeral output.
  • Translation response metadata with provider, token, cache, and fallback details.
  • Vertex AI, OpenAI-compatible, and fallback provider setup paths.
  • Structured provider errors, Retry-After aware retries, jittered backoff, and provider circuit breaker behavior.
  • Runtime queue limits, max wait handling, and budget estimate guards.
  • TTL-cached health probes, Prometheus /metrics, and dashboard operations guidance.
  • Dashboard session management, security headers, user preference search, and batch clear controls.
  • Operations runbooks for alert triage and SQLite backup/restore.
  • CI hardening with audit, build, coverage, smoke checks, and Docker build.

Validation

  • GitHub Actions CI passed for PR #5.
  • Jobs passed: ci (22) and docker.