DECCF · Cash Flow Modeler and Calculator

Create a minimal model

A model needs a reporting currency, a timeline, and declarations collected with defineModel(). This example gives one asset a fixed monthly cash inflow for a year.

entity.asset() creates an entity that can group cashflows. cashflow() defines a signed series, and schedule.monthly() places it in every model period. defineModel() connects the declarations; run() returns the result object.

In this repository, an example under examples/ can import from ../src/index.js. Installed projects use the public package path deccf.

Validate without running

The compiler checks that referenced entities and cashflows belong to the model, schedules fit the timeline, and flow dependencies have no cycles.

Next: Add cashflows.