$ show elder-plinius/G0DM0D3
The G0DM0D3 repository provides an AI chat interface for interacting with multiple LLMs via OpenRouter, Venice, or local models, featuring advanced capabilities like multi-model racing (Ultraplinian), hive-mind synthesis (Consortium), context-adaptive parameter tuning (AutoTune), input obfuscation (Parseltongue), and output transformation (STM). It includes a privacy-first telemetry system and opt-in dataset contribution for research. The architecture combines a standalone HTML option, a React/Next.js frontend, and a Node/Express backend with OpenAI-compatible API endpoints, middleware for authentication, rate limiting, and tier-based access control. Key reusable components include the telemetry beacon, feedback learning system, modular transformation engines, and tier-based access control pattern.
The LLM identified 5 files worth highlighting for reuse:
Implements a fire-and-forget telemetry beacon that batches metadata events and uses sendBeacon fallback for reliable delivery without blocking the UI. Strictly avoids collecting PII or content, making it a reusable pattern for privacy-conscious analytics in any web application.
Provides an EMA-based feedback learning system that adjusts AutoTune parameters based on user ratings. Learned weights are capped at 50% influence and scaled by sample count, preventing overfitting while enabling continuous adaptation. This component can be extracted for any parameter tuning system requiring online learning from binary feedback.
Defines a set of composable string-to-string transformation modules (hedge_reducer, direct_mode, casual_mode) for post-processing LLM outputs. Each module is a pure function with clear intent, enabling flexible pipelines for output normalization without tight coupling to the core chat logic.
Implements a tier-based access control system with three tiers (free/pro/enterprise) featuring configurable rate limits and feature flags. Middleware enforces access rules (e.g., tierGate('dataset:export')) and maps API keys to tiers via environment variables, offering a reusable pattern for SaaS applications requiring differentiated service levels.
Offers a configurable input obfuscation system (Parseltongue) with techniques like leetspeak, Unicode substitution, and zero-width joiner insertion at adjustable intensities. Designed to test LLM robustness against content filters, this module is self-contained and can be used independently for input perturbation in any NLP pipeline.