A minimal ChatGPT-style chatbot gateway with rule-based intent routing.
- Node.js (>=18) + Express
- better-sqlite3 for persistence
- Vanilla JS frontend (no build step)
npm install
npm start
# Server: http://localhost:3003Set PORT to override.
- Sessions and messages persisted in SQLite (
data/gateway.db). - Rule-based intent classifier.
- Built-in handlers:
- English dictionary (dictionaryapi.dev):
hello 뜻,define serendipity,/en ephemeral - Korean dictionary (ko.wiktionary + ko.wikipedia fallback):
사과 뜻,행복의 의미,/ko 인공지능 - Fallback message for unsupported queries.
- English dictionary (dictionaryapi.dev):
GET /api/sessionsPOST /api/sessionsGET /api/sessions/:id/messagesDELETE /api/sessions/:idPOST /api/chatbody{ sessionId?, message }