-
released this
2026-11-11 19:56:48 +00:00 | 11 commits to main since this release🤖 Claude: M1: Rankings I can trust. Review and retro: #23.
bun cli.tsranks US companies by Greenblatt's Magic Formula. Every metric comes from the latest 10-K fiscal year.What's in it
- CLI (#11):
bun cli.tsasks which steps to run.bun cli.ts refresh analyze enrich rank(orbun run pipeline) runs them directly and writesmagic_formula_ranked.csv. - Metrics from the latest 10-K (#1, #8, #41): no stale XBRL values from older filings.
- Greenblatt definitions (#4, #9): ROTC = EBIT ÷ (net working capital floored at 0 + net PP&E). Earnings yield = EBIT ÷ enterprise value. Finance leases count as debt. Debt is also read from notes, loans, credit lines and convertibles (#32).
- One eligibility rule (#10), used everywhere:
- Common stock tickers (#37): not notes or preferreds.
- Foundation: git, fixtures from known-bad filers (#6, #7), and CI running
bun test,bun checkandbun fmton every PR (#30).
Known limits
- The export shows every eligible row, including extreme ROTC from near-zero tangible capital. Filtering belongs in the web UI (#36).
- Possible debt double-count when a filer reports total
LongTermDebtwithout a current-portion tag (#43). - Rows skipped by enrichment keep stale tickers and prices; they aren't ranked (#44).
🤖 Generated with Claude Code
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- CLI (#11):