@balkanbrs/margin-guard-core
v0.2.4
Published
Core engine for SaaS margin analysis, pricing detection, profitability forecasting, gross margin visibility, and hosting cost comparison.
Downloads
1,445
Maintainers
Keywords
Readme
@balkanbrs/margin-guard-core
Core engine for Margin Guard.
@balkanbrs/margin-guard-core is a local-first TypeScript package for SaaS margin analysis, pricing detection, profitability forecasting, gross margin visibility, hosting cost comparison, provider detection, and API cost estimation from a software project or codebase.
It is useful if you need to build:
- SaaS margin analysis tools
- codebase-based profitability forecasts
- API, storage, database, and hosting cost estimators
- pricing model scanners
- unit economics and gross margin reports
- provider comparison workflows for AI, storage, database, messaging, payments, and infrastructure
- deterministic local-first cost and revenue forecasting workflows
What it includes
- deterministic project scanning
- pricing and revenue signal detection
- provider and infrastructure detection
- scenario forecasting for revenue, cost, profit, and margin
- detailed cost buckets for API, storage, database, email/SMS, payments, and infrastructure
- lower-cost alternative comparisons for detected providers
- Markdown, JSON, and terminal-friendly report formatting
- Gumroad-oriented local license verification helpers used by Margin Guard clients
Good fit for searches like
- SaaS margin analysis package
- pricing detection package
- profitability forecast library
- gross margin analysis toolkit
- API cost estimation from codebase
- hosting cost comparison engine
- unit economics toolkit for software products
- local-first pricing and provider scanner
Typical use cases
- estimate software profitability from a repository
- compare current provider stack versus cheaper alternatives
- analyze hosting, storage, and database growth costs
- create internal founder or product finance reports
- export deterministic cost forecasts without sending code to AI services
Package focus
This package is the shared logic layer behind:
- the Margin Guard desktop app
- the Margin Guard CLI
- the Margin Guard VS Code-compatible extension
It does not require cloud AI services for the core workflow.
