kickable
v2.0.0
Published
Kickable is a service meant to answer the question "Can I Kick It?"
Downloads
190
Readme
kickable
kickable is a microservice built to answer the age old question, "Can I Kick It?"
What is a kickable?
Currently only the word "it" is kickable.
| NPM | Build | Coverage | Vulnerabilities | | :--- | :--- | :--- | :--- | | | | | | | | | | |
Requirements
Node.js 22+
Usage
$ npm ci
$ npm run build
$ npm startThe service listens on port 3000 by default. Set the PORT environment variable to override:
$ PORT=8080 npm startDevelopment
Type check
$ npm run typecheckLint
$ npm run lintBuild
$ npm run buildTest
$ npm testCoverage
$ npm run test:coverageAPI
GET /healthz
Returns 200 OK. Used by load balancers and orchestrators to verify liveness.
GET /kick/:it
Returns true if :it is kickable, otherwise false.
Example:
$ curl http://localhost:3000/kick/it
true
$ curl http://localhost:3000/kick/sky
falseWhat's next?
- Case insensitivity
- Support for configuring kickable items other than
it - Return true if the item is a known kickable noun (ball, wall, door); otherwise false (sky, feelings, comments)
Maintainers
Hector Gray (Twitter: @defstream)
Contribute
Pull Requests welcome. Please make sure all checks pass:
$ npm run typecheck
$ npm run lint
$ npm testPlease submit Github issues for any feature enhancements, bugs or documentation problems.
License
MIT
