Social gaming + chat serverless full-stack su Val Town.
Live: https://pawclash-app.val.run/
| File | Ruolo |
|---|---|
main.ts | Endpoint HTTP — tutte le API (/api/*) + serve la SPA |
db.ts | Schema & helper SQLite val-scoped (std/sqlite/main.ts) |
ai.ts | Moderazione automatica con IA + assistente di supporto |
index.html / style.css / app.js | Frontend dark-neon glassmorphism |
Rendering mermaid diagram...
POST /api/register · POST /api/login · POST /api/forgot-password · GET /api/me · POST /api/status
POST /api/chat/send · GET /api/chat/messages · POST /api/chat/react
POST /api/voice/join · POST /api/report · POST /api/support
GET /api/scores · GET /api/quiz
Supporto e moderazione usano un vero LLM (gpt-4o-mini via std/openai, con visione per gli screenshot) se è presente l'env var OPENAI_API_KEY. Senza chiave ripiegano su un motore euristico offline (l'app funziona comunque).
👉 Add OPENAI_API_KEY here: https://www.val.town/x/culostrapulito/pawclash/environment-variables?key=OPENAI_API_KEY