This is a sketchpad prototyping repo being used by 18F's Eligibility APIs Initiative to explore expressing SNAP eligibility through a Javascript API.
This prototype SNAP API calculates a household's estimated eligibility for the SNAP program. The API accepts inputs about a household and returns the following:
- an estimate of that household's SNAP eligibility
- an estimated benefit amount
- an explanation of the logic behind the API's decision-making
- As a developer building a project that requires SNAP eligibility logic, I want to pull from an existing source of SNAP eligibility logic rather than reinventing for my own use case.
See the project wiki for guides and project documentation, including API documentation.
Run feature tests, unit tests, type checks (partially implemented), and linter:
npm check-all
Build minified, browser-ready Javascript:
npm run build
See package.json
for all developer commands.
-
This project aims for the API itself to have no npm dependencies. The libraries included in
package.json
are used to compile and test the Javascript API, but none of them are bundled into the compiled API itself. -
This project is using flow for type checking, with flow checks being added incrementally file-by-file. Flow type checking coverage is currently low.