npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@loanscope/cli

v0.1.1

Published

LoanScope command-line interface for mortgage scenario evaluation, comparison grids, goal-seek, simulation, and SQLite-backed scenario / catalog / audit persistence.

Readme

@loanscope/cli

npm version License: MIT

LoanScope command-line interface. Wraps the underwriting engine, comparison grids, goal-seek, simulation, scenario / comparison / simulation persistence, custom product set management, catalog import pipeline, audit sessions, diff, batch mode, and scenario export in a Commander-based CLI.

Install

pnpm add -g @loanscope/cli

After install, the loanscope binary is on your PATH.

Commands

Quick one-shot quote (no config file):

loanscope quote --loan 1000000 --price 1250000 --fico 740

Full evaluation from a YAML scenario:

loanscope evaluate --config scenarios/default.yaml --output table
loanscope evaluate --config scenarios/default.yaml --output json

Comparison grid across LTV and term:

loanscope compare --config scenarios/default.yaml --ltv 0.75:0.95:0.05 --terms 360,480

Goal-seek maximum loan amount that still passes every check:

loanscope goalseek max-loan --product uwm_jumbo_pink --config scenarios/default.yaml

Simulate borrower actions (pay-down, add reserves, include borrower, etc.):

loanscope simulate --config scenarios/default.yaml

Persist and replay:

loanscope db init
loanscope db save-scenario --name "Smith Refi" --config scenarios/default.yaml
loanscope evaluate --from-db <scenarioId> --save "Smith Refi Eval"
loanscope db show-scenario <scenarioId>

Reproducible audit trail:

loanscope evaluate --config scenarios/default.yaml --audit
loanscope db audit list
loanscope db audit show <sessionId>

Diff two persisted runs:

loanscope diff scenario <idA> <idB>
loanscope diff comparison <idA> <idB>
loanscope diff simulation <idA> <idB>

Batch evaluate a list of scenarios:

loanscope batch scenarios/a.yaml scenarios/b.yaml scenarios/c.yaml --output csv

Export a scenario back to a re-loadable YAML file (with optional rate/term overrides):

loanscope export-scenario --from-db <scenarioId> --out /tmp/rederived.yaml --rate 7.25

See loanscope --help for the full command tree and loanscope <command> --help for per-command options.

Changelog

See CHANGELOG.md for per-package release history.

Part of the LoanScope monorepo

See the repository root for the full list of @loanscope/* packages and the architecture reference.

License

MIT