How elder-plinius/g0dm0d3 works
G0DM0D3 is a multi-model chat and red-teaming product, with a React interface, a self-hostable REST API, and research-data services. The main user path is configuring a provider, submitting a chat request, and receiving a generated or multi-model-ranked response; AutoTune and Parseltongue can adapt that request. The README also describes Classic racing, local models, privacy controls, and research capabilities. Some route and UI wiring is inferred only from imports or documentation; unsampled relationships are omitted rather than assumed.
Main entry points: ChatInput.tsx Chat Interface · chat.ts Chat API · page.tsx Web App · research.ts Research API
Components 24
Chat Client
- Web App
src/app/page.tsx - Chat Interface
src/components/ChatInput.tsx - Settings
src/components/SettingsModal.tsx - Browser State
src/store/index.ts - App Telemetry
src/lib/telemetry.ts
Generation Engines
- Model Providers
src/lib/openrouter.ts - Query Classification
src/lib/classify.ts - AutoTune
src/lib/autotune.ts - Tuning Feedback
src/lib/autotune-feedback.ts - Parseltongue
src/lib/parseltongue.ts - STM Modules
src/stm/modules.ts - ULTRAPLINIAN
api/lib/ultraplinian.ts - Consortium Mode
api/lib/consortium.ts
API Services
- API Server
api/server.ts - Chat API
api/routes/chat.ts
Research Data
- Dataset Buffer
api/lib/dataset.ts - Metadata Buffer
api/lib/metadata.ts - HF Publisher
api/lib/hf-publisher.ts - Research API
api/routes/research.ts - Corpus Reader
api/lib/hf-reader.ts - Telemetry Endpoint
functions/api/telemetry.ts
Other components
- User
- Hugging Face
- Local Model Server
Connections 33
- User → Web App: opens
src/app/page.tsx - Web App → Chat Interface: renders
src/app/page.tsx - Web App → Settings: renders
src/app/page.tsx - Web App → Browser State: reads state
src/app/page.tsx - Chat Interface → Browser State: uses
src/components/ChatInput.tsx - Settings → Browser State: configures
src/components/SettingsModal.tsx - Chat Interface → Query Classification: classifies
src/components/ChatInput.tsx - Chat Interface → AutoTune: tunes parameters
src/components/ChatInput.tsx - Chat Interface → Parseltongue: transforms input
src/components/ChatInput.tsx - Chat Interface → Model Providers: sends requests
src/components/ChatInput.tsx - Model Providers → Local Model Server: calls optionally
src/lib/openrouter.ts - Model Providers → API Server: calls optionally
src/lib/openrouter.ts - AutoTune → Tuning Feedback: applies learning
src/lib/autotune.ts - Chat Interface → App Telemetry: records events
src/components/ChatInput.tsx - Web App → API Server: detects optionally
src/app/page.tsx - API Server → Chat API: routes requests
api/server.ts - Chat API → AutoTune: uses
api/routes/chat.ts - Chat API → Parseltongue: uses
api/routes/chat.ts - Chat API → STM Modules: uses
api/routes/chat.ts - Chat API → Model Providers: uses
api/routes/chat.ts - Chat API → ULTRAPLINIAN: uses
api/routes/chat.ts - Chat API → Consortium Mode: uses
api/routes/chat.ts - API Server → Research API: routes research
api/server.ts - Research API → Corpus Reader: queries corpus
api/routes/research.ts - Research API → Dataset Buffer: reads stats
api/routes/research.ts - Research API → Metadata Buffer: reads stats
api/routes/research.ts - Research API → HF Publisher: flushes buffers
api/routes/research.ts - Dataset Buffer → HF Publisher: registers store
api/lib/dataset.ts - Metadata Buffer → HF Publisher: registers store
api/lib/metadata.ts - HF Publisher → Hugging Face: publishes
- Corpus Reader → Hugging Face: reads corpus
- App Telemetry → Telemetry Endpoint: posts events
README.md - Telemetry Endpoint → Hugging Face: publishes metadata
README.md