How inkithai/dynarq works
Dynarq is a local, dependency-free payment-reminder assistant. Its primary workflow reads invoice and sent-reminder JSON, validates invoices, applies overdue-step rules, and presents actions, approvals, and skipped records on an owner page; a CLI can also write the plan. Owners submit decisions for approval-required reminders, held in memory. The README documents these capabilities, while the supplied source excerpts show the principal calls. Data files and research notes are inputs/supporting material, not runtime components.
Main entry points: planData.ts Data loading · dates.ts Calendar dates · server.ts HTTP routes · plan.ts Rules engine
Components 14
Product entry points
- Plan CLI
typescript/src/cli.ts - Web app startup
typescript/src/app.ts
Reminder planning
- Data loading
typescript/src/planData.ts - Rules engine
typescript/src/plan.ts - Invoice validation
typescript/src/invoice.ts - Reminder wording
typescript/src/messages.ts
Owner review
- HTTP routes
typescript/src/server.ts - Reminder page
typescript/src/page.ts - Decision store
typescript/src/decisions.ts
Shared validation
- Calendar dates
typescript/src/dates.ts - Input errors
typescript/src/errors.ts
Other components
- Owner
- Invoice and sent JSON
data/invoices.json - Plan JSON output
Connections 25
- Owner → Plan CLI: runs plan
README.md - Plan CLI → Data loading: reads lists
typescript/src/cli.ts - Plan CLI → Rules engine: builds plan
typescript/src/cli.ts - Plan CLI → Plan JSON output: writes plan
typescript/src/cli.ts - Owner → Web app startup: opens page
README.md - Web app startup → HTTP routes: starts server
typescript/src/app.ts - HTTP routes → Data loading: loads plan
typescript/src/server.ts - HTTP routes → Reminder page: renders page
typescript/src/server.ts - HTTP routes → Decision store: records decision
typescript/src/server.ts - Reminder page → Decision store: shows decisions
typescript/src/page.ts - Data loading → Rules engine: builds plan
typescript/src/planData.ts - Data loading → Invoice validation: indexes invoices
typescript/src/planData.ts - Invoice and sent JSON → Data loading: reads files
README.md - Rules engine → Invoice validation: validates entries
typescript/src/plan.ts - Rules engine → Reminder wording: builds wording
typescript/src/plan.ts - Rules engine → Calendar dates: calculates overdue
typescript/src/plan.ts - Invoice validation → Calendar dates: parses dates
typescript/src/invoice.ts - Reminder wording → Calendar dates: formats dates
typescript/src/messages.ts - Reminder page → Reminder wording: formats amounts
typescript/src/page.ts - Reminder page → Calendar dates: formats dates
typescript/src/page.ts - Web app startup → Calendar dates: gets today
typescript/src/app.ts - HTTP routes → Input errors: formats errors
typescript/src/server.ts - Data loading → Input errors: formats errors
typescript/src/planData.ts - Invoice validation → Input errors: raises input errors
typescript/src/invoice.ts - Calendar dates → Input errors: raises input errors
typescript/src/dates.ts