How danielsolomon007/g0dm0d3-ai works
G0DM0D3 is a privacy-oriented multi-model chat and red-teaming application, with a browser UI and an optional self-hosted API. The main user path is chat input through model selection/routing to a response, with AutoTune, Parseltongue, and STM transformations available in that flow; ULTRAPLINIAN separately races models and scores a winner. Settings and browser-persisted state support configuration and feedback learning. The API also exposes research-data collection and corpus access. The graph uses README claims and indexed references where excerpts are unavailable; those edges are limited to documented or visible relationships.
Main entry points: server.ts API server · ChatInput.tsx Chat interface · SettingsModal.tsx Settings · chat.ts Chat endpoint
Components 25
Browser app
- App shell
src/app/page.tsx - Chat interface
src/components/ChatInput.tsx - Settings
src/components/SettingsModal.tsx - Local state
src/store/index.ts
Chat engines
- Query classification
src/lib/classify.ts - AutoTune
src/lib/autotune.ts - Feedback learning
src/lib/autotune-feedback.ts - Parseltongue
src/lib/parseltongue.ts - STM transforms
src/stm/modules.ts - OpenRouter client
src/lib/openrouter.ts
Optional API
- API server
api/server.ts - Chat endpoint
api/routes/chat.ts - AutoTune endpoint
api/routes/autotune.ts - ULTRAPLINIAN endpoint
api/routes/ultraplinian.ts - Model race and scoring
api/lib/ultraplinian.ts - Tier controls
api/lib/tiers.ts - Dataset endpoint
api/routes/dataset.ts
Research data
- Dataset buffer
api/lib/dataset.ts - HuggingFace publisher
api/lib/hf-publisher.ts - Request metadata
api/lib/metadata.ts - Corpus research API
api/routes/research.ts - Corpus reader
api/lib/hf-reader.ts
Other components
- User
- OpenRouter
- HuggingFace dataset
Connections 35
- User → App shell: uses
src/app/page.tsx - App shell → Chat interface: renders
src/app/page.tsx - App shell → Settings: renders
src/app/page.tsx - Chat interface → Local state: reads and updates
src/components/ChatInput.tsx - Settings → Local state: configures
src/components/SettingsModal.tsx - Chat interface → Query classification: classifies query
src/components/ChatInput.tsx - Chat interface → AutoTune: tunes parameters
src/components/ChatInput.tsx - AutoTune → Feedback learning: applies learning
src/lib/autotune.ts - Settings → AutoTune: configures
src/components/SettingsModal.tsx - Settings → Feedback learning: manages feedback
src/components/SettingsModal.tsx - Chat interface → Parseltongue: transforms input
src/components/ChatInput.tsx - Settings → Parseltongue: configures
src/components/SettingsModal.tsx - Chat interface → OpenRouter client: sends requests
src/components/ChatInput.tsx - OpenRouter client → OpenRouter: calls
src/lib/openrouter.ts - API server → Chat endpoint: mounts
api/server.ts - API server → AutoTune endpoint: mounts
api/server.ts - API server → ULTRAPLINIAN endpoint: mounts
api/server.ts - API server → Dataset endpoint: mounts
api/server.ts - API server → Corpus research API: mounts
api/server.ts - Chat endpoint → AutoTune: uses
api/routes/chat.ts - Chat endpoint → Parseltongue: uses
api/routes/chat.ts - Chat endpoint → STM transforms: uses
api/routes/chat.ts - Chat endpoint → Model race and scoring: delegates to
api/routes/chat.ts - AutoTune endpoint → AutoTune: uses
api/routes/autotune.ts - ULTRAPLINIAN endpoint → Model race and scoring: delegates to
api/routes/ultraplinian.ts - Model race and scoring → OpenRouter: queries models
api/lib/ultraplinian.ts - API server → Tier controls: configures access
api/server.ts - Dataset endpoint → Dataset buffer: accesses
- Dataset buffer → HuggingFace publisher: publishes batches
api/lib/dataset.ts - Request metadata → HuggingFace publisher: registers buffer
api/lib/metadata.ts - Corpus research API → Corpus reader: queries corpus
api/routes/research.ts - Corpus research API → Dataset buffer: reads stats
api/routes/research.ts - Corpus research API → Request metadata: reads stats
api/routes/research.ts - Corpus reader → HuggingFace dataset: reads batches
- HuggingFace publisher → HuggingFace dataset: publishes