@loanscope/compare
v0.1.1
Published
Comparison grid builder, executor, and goal-seek for evaluating a LoanScope mortgage scenario across product, term, rate, LTV, occupancy, and other dimensions.
Downloads
63
Maintainers
Readme
@loanscope/compare
Comparison grid builder, executor, and goal-seek for evaluating a LoanScope mortgage scenario across multiple dimensions (term, rate, LTV, loan amount, occupancy, products, lenders, borrower sets, FICO, down payment, property type, loan purpose). Produces a GridResult with per-cell evaluations and a GridSummary aggregating eligibility counts.
Goal-seek searches for the maximum (or other criterion) value along a single knob given target check satisfaction.
Install
pnpm add @loanscope/compare @loanscope/engine @loanscope/domainUsage
import { ComparisonGridBuilder, executeGrid } from "@loanscope/compare";
const grid = new ComparisonGridBuilder(transaction)
.addDimension({ kind: "LTV", min: 0.75, max: 0.95, step: 0.05 })
.build();
const result = executeGrid(grid, products);Part of the LoanScope monorepo
See the repository root for the full list of @loanscope/* packages, the underwriting engine, and the CLI.
License
MIT
