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

@ikenga/pkg-finance

v0.2.0

Published

Finance — Overview / Transactions / Receivables / Inter-Company / Reports over the production finance schema. Multi-file iframe pkg; deterministic CSS vendoring build.

Readme

com.ikenga.finance

Finance domain pkg for the Ikenga desktop. Provides the accounting workspace for the multi-entity Royalti.io / Dixtrit.media / Personal money universe.

Views

| View | Route | Description | |---|---|---| | Overview | overview | KPI strip (Cash/Burn/Runway/AR) + net-cash waterfall + cash-by-entity treemap + alert strip | | Transactions | transactions | Ledger rows (matched/paired/disputed/unmatched); inline Confirm+Dispute actions for suggested matches | | Receivables | receivables | 4 aging buckets (Current/1-30d/31-60d/60+d) + sortable invoice table | | Inter-Company | inter-company | Royalti.io ↔ Dixtrit.media pair queue + NGN/USD personal reimbursements | | Reports | reports | Period summary KPIs; CSV export deferred to WP-23 |

Data

Reads from ikenga.db tables:

  • transaction_ledger — ledger rows
  • receivables — A/R invoice records
  • inter_company_entries — cross-entity transfers
  • bank_accounts — per-entity account registry
  • exchange_rates — monthly FX rates
  • cfo_processing_runs — audit log of automated bank-pull runs
  • finance_alerts — CFO-agent alert queue (created by migration 0046_finance_domain.sql)

Migration

0046_finance_domain.sql — creates finance_alerts (STRICT, no FK constraints, soft TEXT links):

  • id TEXT PRIMARY KEY
  • type TEXT NOT NULLar | interco | tax | ...
  • severity TEXT NOT NULL DEFAULT 'warn'warn | crit
  • message TEXT NOT NULL
  • linked_id TEXT — soft link to receivable document_no or inter-company entry id
  • status TEXT NOT NULL DEFAULT 'active'active | dismissed | resolved
  • created_at TEXT NOT NULL DEFAULT (datetime('now'))
  • updated_at TEXT NOT NULL DEFAULT (datetime('now'))

Mock contract 1: Until 0046 lands, the alert strip is seeded from receivables WHERE invoice_status='overdue' + inter_company_entries WHERE reconciliation_status!='reconciled'. This is a documented fallback — the fallback path is exercised by try/catch in fetchAlerts().

Business rules

  • Runway warn threshold: < 12 months → .stat-card.is-warn; < 6 months → .stat-card.is-danger
  • A/R aging colors: Current → bk-current (systemic teal); 1–30d → bk-1-30 (achievement gold); 31–60d → bk-31-60 (primary warm brown); 60+d → bk-60 (danger red)
  • Match confidence: "Suggested N%" rows carry inline Confirm/Dispute buttons on hover
  • EntitySwitcher: All/Royalti.io/Dixtrit.media/Personal filters the transaction ledger

Workspace tint

data-workspace="files" (dusty warm) — placeholder until a dedicated finance token tint is added. Tracked as a gap in parts/screens/finance.md §1.

Build

cd packages/apps/finance
pnpm install   # fetches @ikenga/tokens
node scripts/build.mjs   # vendors tokens-css.js + app-kit-css.js + finance-css.js

The build script copies @ikenga/tokens/dist/tokens-css.js and @ikenga/tokens/dist/app-kit-css.js into dist/lib/ and codegens dist/lib/finance-css.js from dist/finance.css. CI guards drift with pnpm -r build && git diff --exit-code.