How guritadarattt/guritagpt works
Gurita GPT is a web-based Indonesian GPT-J assistant. A chat user enters an API key, creates or opens a conversation, and sends a message; the server stores it, optionally searches DuckDuckGo, builds a persona-aware prompt, generates a reply, and stores the response. Separate admin flows manage API keys, inspect usage and conversations, edit the persona, and use owner chat; the app also exposes a health endpoint and serves a dashboard and API documentation. The runtime wiring is based on sampled server and module source; README capabilities without sampled frontend implementation are represented at their documented entry points.
Main entry points: server.js HTTP API server · search.js Prompt and search · persona.js Persona handling · db.js SQLite state
Components 15
Web experience
- Conversation UI
public/js/chat.js - Status dashboard
public/index.html - API documentation
public/docs.html - Admin panel
public/js/admin.js
API orchestration
- HTTP API server
server.js
Assistant generation
- Prompt and search
search.js - Title generation
title.js - GPT-J generator
model.js
Configuration and state
- Persona handling
persona.js - Persona settings
data/persona.json - Training examples
data/training_data.json - SQLite state
db.js
Other components
- Chat user
- Admin
- DuckDuckGo
Connections 18
- Chat user → Conversation UI: uses
- Conversation UI → HTTP API server: calls chat API
- Admin → Admin panel: uses
- Admin panel → HTTP API server: calls admin API
- HTTP API server → Status dashboard: serves page
- HTTP API server → API documentation: serves page
- HTTP API server → SQLite state: validates and stores
- HTTP API server → Prompt and search: builds prompts and searches
- HTTP API server → Title generation: requests title
- HTTP API server → GPT-J generator: generates reply
- Title generation → GPT-J generator: generates title
- Prompt and search → Persona handling: loads persona
- HTTP API server → Persona handling: loads or saves
- Persona handling → Persona settings: reads and writes
- HTTP API server → Training examples: loads examples
- Prompt and search → DuckDuckGo: searches web
- HTTP API server → SQLite state: reads and writes conversations
- HTTP API server → SQLite state: logs usage and manages keys