How psmri/ubi-eligibility-sdk works
Project type and purpose
• This is a Node.js–based SDK exposing RESTful endpoints to determine benefit eligibility.
• It ingests user profiles and benefit schemas, applies configurable rules, and returns an eligibility result.
File structure
• Top-level files: Dockerfile, docker-compose.yml, deploy.sh, .env.example, GitHub workflows – this indicates containerized deployment and CI/CD.
• src/config/: Swagger/OpenAPI setup and environment config.
• src/index.js: Application entrypoint, bootstraps the HTTP server.
• src/schemas/: Joi or JSON schemas for validating incoming requests.
• src/services/:
– eligibilityService.js: Orchestrates the eligibility check.
– interfaces/RuleInterface.js: Defines the contract for rule modules.
– rules/: Concrete rule implementations (e.g., userProfileRule.js, userDocumentRule.js).
• src/utils/: Shared utilities (schema loaders, eligibility logic helpers, logger).
README
• Confirms it’s an SDK for benefit eligibility with RESTful API endpoints.
• Mentions Swagger/OpenAPI and environment variable configuration—key integrations.