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

fairstay-propco-bookkeeping

v0.1.0

Published

Property company bookkeeping for nursing-home real estate: rent short or unpaid, escalators not billed, operator (tenant) rent coverage and occupancy, leases ending and tenant financials not received.

Readme

Fairstay PropCo Bookkeeping (fairstay-propco-bookkeeping)

Property company bookkeeping for nursing-home real estate: rent unpaid or short, escalators not billed, operator rent coverage and occupancy below the lease minimums, operator financials overdue and leases ending. Lease numbers are masked before results reach the model.

Fairstay PropCo Bookkeeping never sends default notices or letters to an operator.

Fairstay ver 1 · Financial services · MIT · Node 20 or newer · local files only · resident and staff identifiers masked before results reach the model · built on fairstay-core

npx -y fairstay-propco-bookkeeping demo
npx -y fairstay-propco-bookkeeping mcp --root ./facility-files

What the sample data shows

Three fictional leases reviewed on 20 April 2026. Planted:

  • L-40021 (Cedar Hollow): the 2.5% escalator stepped up in April, but April was billed at the old rent.
  • L-40022 (Willow Bend): March was paid short and April is unpaid. Rent coverage is 1.02x against 1.2x, occupancy is 72% against 75%, and the lease ends 31 December.
  • L-40023 (Pecan Grove): operator financials for February were due 45 days after month end and have not arrived.

Lease numbers are in phi-canaries.json; they must never reach the model. rules-typo.json misspells a setting, so the check refuses it.

A demo run

npx -y fairstay-propco-bookkeeping demo runs the agent on the fictional files in fixtures/ in a temporary folder. Captured output:

Fairstay PropCo Bookkeeping demo (fictional home, residents, staff and vendors)

▶ Review the leases
  status: executed  decision: allow
  3 lease(s); rent billed 1838969.24, collected 1699511.46. rent_unpaid 1, coverage_below 1, rent_short 1, escalator_not_billed 1, financials_missing 1, occupancy_below 1, lease_ending 1.
    rent_unpaid           2026-04 rent of 114728.89 is unpaid, 15 days after the due date.
    coverage_below        Willow Bend Operations (fictional)'s rent coverage is 1.02x over 12 month(s) to 2026-03; the lease requires 1.2x.
    rent_short            2026-03 rent paid 90000 of 114728.89.
    escalator_not_billed  2026-04 rent billed 194365.62; with the 2.5% escalator it should be 199224.77.
    financials_missing    Operator financials for 2026-02 are overdue (due 45 days after each month).
    occupancy_below       Occupancy was 72% in 2026-03; the lease minimum is 75%.
    lease_ending          The lease ends 2026-12-31 (255 days).

▶ Write the lease review
  status: executed  decision: allow
  Property company lease review written: 3 lease(s); rent billed 1838969.24, collected 1699511.46. rent_unpaid 1, coverage_below 1, rent_short 1, escalator_not_billed 1, financials_missing 1, occupancy_below 1, lease_ending 1. Files: evergreen-out/propco/propco.csv, evergreen-out/propco/propco.html.

▶ Agent tries to send a default notice itself
  status: blocked  decision: block
  reason: Fairstay PropCo Bookkeeping never sends default notices or letters to an operator.

Tools

| Tool | What it does | Policy | |---|---|---| | propco_check | Check rent, escalators, operator coverage and reporting for each lease. | runs | | propco_write_report | Write propco.csv (one row per item, with blank owner and decision columns) and propco.html into out_dir (default evergreen-out/propco). | runs | | propco_recall | Search this agent's own memory of the customer's setup: accepted facts (in use) and facts waiting for a person. | runs | | propco_learn | Propose one fact about the customer's setup for this agent to remember. | runs | | propco_accept_learning | A named person accepts or rejects a fact waiting in this agent's memory. | one named click, even in Auto (accept_learning) | | propco_retire_memory | A named person stops an accepted fact from applying. | one named click, even in Auto (accept_learning) | | default_notice_send | Fairstay PropCo Bookkeeping never sends default notices or letters to an operator. | refused |

Any tool name not in this table is blocked, including names a model invents. Refused tools are listed so a model can see they exist and are refused.

propco_check arguments

| Argument | What it is | |---|---| | leases (required) | Leases under --root: lease number, operator, facility, start, end, base monthly rent, escalator percent, minimum rent coverage and occupancy, days to deliver financials, rent due day | | rent (required) | Rent roll under --root: lease, month, billed, paid, paid date | | financials | Operator monthly financials under --root: lease, month, EBITDAR, rent, occupancy | | rules | Optional rules JSON: ending_warn_days | | as_of | Review date (YYYY-MM-DD, default today) | | status | Only items with this status | | limit | Most items to return to the model (the report file always has all of them) |

Columns it reads

Tables can be CSV, TSV, semicolon- or pipe-separated text, Excel .xlsx, JSON or JSONL. Columns are matched by the names below (any case and punctuation), and by their usual names in German, French, Spanish, Portuguese, Italian, Japanese, Chinese and Korean. Dates become YYYY-MM-DD. Columns marked masked hold resident or staff identifiers.

The PointClickCare, MatrixCare and American HealthTech style names were written from public help pages and general knowledge, not checked against real exports. Run npx fairstay-propco-bookkeeping inspect <file> (column names and shapes only, never values) and name any column it misses in remedy-sources.json.

Leases (leases)

| Column | Type | Read from | |---|---|---| | lease_no (required) | text (masked) | Lease, Lease #, Lease Number, Lease ID, Agreement | | operator (required) | text | Operator, Tenant, Lessee | | facility | text | Facility, Property, Building | | start | date | Start, Commencement, Start Date | | end | date | End, Expiration, End Date, Term End | | base_rent (required) | amount | Base Rent, Monthly Rent, Initial Rent | | escalator_pct | number | Escalator, Escalator %, Annual Increase | | min_coverage | number | Min Coverage, Rent Coverage Covenant, Coverage Minimum | | min_occupancy | number | Min Occupancy, Occupancy Covenant | | financials_days | number | Financials Days, Reporting Days, Financials Due Days | | rent_due_day | number | Rent Due Day, Due Day |

Rent roll (rent)

| Column | Type | Read from | |---|---|---| | lease_no (required) | text (masked) | Lease, Lease #, Lease Number, Lease ID, Agreement | | period (required) | text | Period, Month, Rent Month | | billed | amount | Billed, Rent Billed, Charged, Invoice Amount | | paid | amount | Paid, Received, Amount Paid, Collected | | paid_on | date | Paid On, Received On, Payment Date |

Operator financials (financials)

| Column | Type | Read from | |---|---|---| | lease_no (required) | text (masked) | Lease, Lease #, Lease Number, Lease ID, Agreement | | period (required) | text | Period, Month, Rent Month | | ebitdar | amount | EBITDAR, EBITDARM | | rent | amount | Rent, Rent Expense | | occupancy | number | Occupancy, Occupancy %, Occ % | | received_on | date | Received On, Received, Delivered |

Settings file (propco_rules)

A small JSON file you pass by path. A misspelled setting is refused by name rather than ignored, so a typo never silently changes a check.

| Setting | What it does | |---|---| | ending_warn_days | Flag leases ending within this many days (default 365) |

Memory

propco_learn only proposes a fact; nothing changes until a named person accepts it with propco_accept_learning, which is one click even in Auto. Facts live in a hash-chained file under .remedy/memory/; if the chain does not verify, no fact is used. Credentials, personal identifiers and text that reads like instructions to an AI are refused.

| Kind | What an accepted fact does | |---|---| | lease_note | is shown with results. It never changes a check. |

Install

Node 20 or newer. No other runtime dependencies besides fairstay-core and fairclaim-core.

{
  "mcpServers": {
    "fairstay-propco-bookkeeping": {
      "command": "npx",
      "args": [
        "-y",
        "fairstay-propco-bookkeeping",
        "mcp",
        "--root",
        "/path/to/facility-files"
      ]
    }
  }
}

Claude Code: claude mcp add fairstay-propco-bookkeeping -- npx -y fairstay-propco-bookkeeping mcp --root ., or use the plugin files in this folder.

CLI

fairstay-propco-bookkeeping tools                 # every tool, its policy and arguments
fairstay-propco-bookkeeping sources               # the columns each input is read from
fairstay-propco-bookkeeping inspect <file>        # how a file would be read (names and shapes, never values)
fairstay-propco-bookkeeping call propco_check '{"leases":"<leases>","rent":"<rent>"}'
fairstay-propco-bookkeeping eval                  # the private eval cases on the fictional fixtures
fairstay-propco-bookkeeping demo

Resident and staff data

Results go to an AI model, so identifiers are masked before they leave the agent: resident and staff names become stable pseudonyms such as PT-3f9a1c2e, record and account numbers become MRN-… or ACCT-…, and e-mails and phone numbers are removed, also inside free text. Report files written to disk keep real names because staff work from them: keep them in a folder only your staff can open. The shared tests check that no fictional identifier from the fixtures reaches any eval result, and the hostile-input check plants spreadsheet formulas, HTML and AI-aimed instructions in the data. This keeps PHI away from the model; it is not a HIPAA compliance determination. Your business associate agreements, access controls and policies still apply.

Limits

  • Reads only the files you give it. It does not log in to PointClickCare, MatrixCare, a payer portal, a bank, a state Medicaid portal or a payroll system.
  • Medicare, Medicaid and payroll rules are summarised from public material as of 2026 and the numbers are settings you supply; a billing, payroll or legal professional checks them before you rely on them.
  • Not legal, tax, accounting, clinical, reimbursement or HIPAA advice. A person decides what to bill, pay, appeal, file or send.
  • Every call is written to a hash-chained audit log under .remedy/ in the root. No network calls, no telemetry, no credentials. The bundled data is fictional.