How iamkk369/dice-roller-api works
Dice Roller API pairs a browser dashboard with a serverless roll endpoint. A user selects dice and quantity; the dashboard either requests the configured API or explicitly uses local simulation, then presents rolls with browser-calculated modifiers and statistics, history, and export. The documented deployed path runs through API Gateway to Lambda and returns JSON to the browser. The Lambda excerpt confirms parameter validation, cryptographic rolls, and response construction; dashboard internals and AWS wiring are described in the README rather than sampled source.
Main entry points: index.html API request routing · template.yaml API Gateway · index.mjs Validate and roll
Components 8
Browser dashboard
- Dashboard interface
frontend/index.html - API request routing
frontend/index.html - Local simulation
frontend/index.html - Roll statistics
frontend/index.html - History and CSV
frontend/index.html
Roll API
- Validate and roll
lambda/index.mjs
AWS hosting
- API Gateway
template.yaml
Other components
- Dashboard user
Connections 11
- Dashboard user → Dashboard interface: uses
README.md - Dashboard interface → API request routing: selects mode
README.md - API request routing → API Gateway: requests roll
README.md - API request routing → Local simulation: simulates roll
README.md - API Gateway → Validate and roll: routes request
README.md - Validate and roll → API Gateway: returns JSON
README.md - API Gateway → API request routing: returns response
README.md - API request routing → Roll statistics: calculates metrics
README.md - API request routing → History and CSV: records and exports
README.md - Roll statistics → Dashboard interface: displays results
README.md - History and CSV → Dashboard interface: displays history
README.md