How janithbandara1/dynarq-task works
Dynarq is a small-business payment-reminder assistant. Its main workflow reads invoice and sent-reminder data, validates dates and invoice records, plans at most one due reminder per invoice, and generates a message. The TypeScript command writes the plan; the owner’s web page uses the same rules, shows actions and skipped records, and records approval decisions in memory. The README also specifies owner research notes based on the supplied source documents. The sampled TypeScript files show the runtime wiring; research implementation was not sampled.
Main entry points: app.ts HTTP application · plan.ts Plan command · rules.ts Rules engine · page.ts Page renderer
Components 13
Invoice inputs
- Invoice records
data/invoices.json - Sent reminders
data/sent.json
Reminder planning
- Plan command
typescript/src/plan.ts - Rules engine
typescript/src/rules.ts - Date validation
typescript/src/dates.ts - Message builder
typescript/src/messages.ts - Plan JSON output
Owner page
- HTTP application
typescript/src/app.ts - Page renderer
typescript/src/page.ts - Approval decisions
typescript/src/app.ts
Owner research
- Research answers
RESEARCH.md - Research sources
sources
Other components
- Business owner
Connections 17
- Business owner → Plan command: runs command
README.md - Plan command → Invoice records: reads records
typescript/src/plan.ts - Plan command → Sent reminders: reads history
typescript/src/plan.ts - Plan command → Rules engine: builds plan
typescript/src/plan.ts - Rules engine → Date validation: parses dates
typescript/src/rules.ts - Rules engine → Message builder: builds message
typescript/src/rules.ts - Plan command → Plan JSON output: writes plan
typescript/src/plan.ts - Business owner → HTTP application: opens page
README.md - HTTP application → Invoice records: reads records
typescript/src/app.ts - HTTP application → Sent reminders: reads history
typescript/src/app.ts - HTTP application → Date validation: validates today
typescript/src/app.ts - HTTP application → Rules engine: builds plan
typescript/src/app.ts - HTTP application → Page renderer: renders page
typescript/src/app.ts - Page renderer → Message builder: formats amounts
typescript/src/page.ts - HTTP application → Approval decisions: records choice
typescript/src/app.ts - Business owner → Research answers: reads answers
README.md - Research sources → Research answers: informs research
README.md