Package reference
AI ROI and project cost
Compare low, base and high AI business-case assumptions without treating recovered staff capacity as cash by default.
npm install @tenhaw/ai-roiCLI
npx tenhaw@latest roi --input roi.json --jsonLibrary
import { calculateRoi } from '@tenhaw/ai-roi';
// Complete input: /examples/roi.json
const report = calculateRoi(input);
console.log(report.scenarios.base.npv);Input and output
calculateRoi(input); estimateProjectCost({ stage: 'poc' })
Inputs are validated against JSON Schema 2020-12. Invalid input reports a JSON path. Pure calculations return deterministic JSON without timestamps or promotion fields.