Examples

Year in Review (Wrapped)

A Spotify-Wrapped-style year-in-review for a loan originator, by NMLS ID.

Year in Review (Wrapped) — animated recap of an originator's year

Give it an NMLS ID and a Model Match API key and it renders an animated, click-through recap of an originator's year — total volume, loans funded, biggest month, top markets and lenders, and purchase-vs-refi mix.

It's server-rendered (TanStack Start), so your API key stays on the server and is sent as the x-api-key header — it never reaches the browser. Only the finished numbers are shipped to the client.

Deploy it

Or scaffold it locally:npm create @model-match -- --template wrapped

What you'll need

A Model Match API key — create one in your dashboard (see Authentication) — and the NMLS ID of the originator you want to feature. Without a key it runs in demo mode with sample data, so you can preview it first.

Environment variables

VariableRequiredNotes
MODEL_MATCH_API_KEYfor real dataServer-side only. Sent as x-api-key.
MODEL_MATCH_NMLS_IDfor real dataThe originator to feature.
MMR_API_URLnoDefaults to https://api.modelmatch.com.
REPORT_YEARnoDefaults to 2025.

Run it locally

npm create @model-match -- --template wrapped
cd wrapped
npm install
npm run dev

Open localhost:3000. With no key it shows demo data; add MODEL_MATCH_API_KEY and MODEL_MATCH_NMLS_ID to .env for the real thing. In dev you can also preview any originator with ?nmls=1036297.

On this page