Small Node.js/Express API prototype used by the LABP-Stack portfolio.
Requires Node.js 18 or newer.
GET /returns a basic service health response.POST /analyzeaccepts{ "text": "..." }.- Text containing
pricereturnsPRICING. - Text containing
helloorhireturnsGREETING. - Other text returns
UNKNOWN. - Each request receives a UUID and produces a structured console log.
- A Node.js test suite verifies the current API contract.
This is deterministic keyword matching. It does not use an LLM, NLP model, vector database, automation platform, or voice system.
npm install
npm startThe service listens on PORT, defaulting to 3000.
Run the tests with:
npm testcurl http://localhost:3000/
curl -X POST http://localhost:3000/analyze \
-H 'Content-Type: application/json' \
-d '{"text":"hello"}'- No authentication or rate limiting
- Permissive CORS configuration
- No persistence
- No model-based intent classification or confidence score
- No deployment configuration or Infrastructure as Code in this repository
- Public Railway URL previously referenced by LABP-Stack is currently unavailable
Learning prototype. It should not be described as production-ready.