{"_id":"@balkanbrs/margin-guard-core","_rev":"9-90aa60258519b0a080afc80ba7ea3b22","name":"@balkanbrs/margin-guard-core","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"@balkanbrs/margin-guard-core","version":"0.1.0","license":"MIT","_id":"@balkanbrs/margin-guard-core@0.1.0","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"74e9c38a994f214b245f3a03b4e2a5d7ce31c872","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.1.0.tgz","fileCount":19,"integrity":"sha512-QDp2U4t0C0LaIyeuf0BB7df+W6JgSB7Zzxqk9MUmiHICpMeMdGcs/xVp1d4+4bmtNNvPLYzYXjCRBq2hnnrM6Q==","signatures":[{"sig":"MEYCIQCpwqUeNXipEeaTElaXhm69BMzS9NGzAP6VbxKnhtetGAIhAPlIttyzmSp2yUm8mnkYb8Otzc94oi/uDwu7GRS6hSn7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61027},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core scanner and forecast engine for Margin Guard","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.1.0_1780019021745_0.18784751680899037","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@balkanbrs/margin-guard-core","version":"0.1.1","license":"MIT","_id":"@balkanbrs/margin-guard-core@0.1.1","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"213cfcc812f64083c7302f413c32a85606887b6f","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.1.1.tgz","fileCount":19,"integrity":"sha512-rSoeoNe3w19Af2EajPCBJE0pAvIrzLNo3tXDD3cAqhfflKSk2O5TzzMuanf0IDZ5NNOEg9RQN5tHiWVMG1TLeA==","signatures":[{"sig":"MEYCIQC9wuwa6f6/E+w+RJiueBHBx1H7WCEumsVuTgEHxndUCgIhAJqIafxq/BsxeHrbYF26m5WCoHgBxtKKGAFlq7+F7me7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61027},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core scanner and forecast engine for Margin Guard","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.1.1_1780019746647_0.7365860098911963","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@balkanbrs/margin-guard-core","version":"0.1.2","keywords":["margin","profitability","forecast","pricing detection","provider detection","api costs","storage costs","database costs","hosting costs","payment fees","unit economics","saas"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.1.2","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"f95fa5a4e4f49675d662bb4137db9c456d9cc0bd","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.1.2.tgz","fileCount":24,"integrity":"sha512-N/zb191RH/BblC8aSqet/SdHKUwIuHfWvni+roprHmKjR10axPMtH7RQd4hiCcyat0BZNsuWDSUOVlN0GFxl0w==","signatures":[{"sig":"MEQCIGSI2176zZt0g7RL6kXpBtKuaSn9OcbOBlpTCqBdciU8AiBMZq6+402xZPFwHfqMDj0/RujWE7M1tjJpDvPZ+S7hAw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6027014},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, cost forecasting, pricing detection, and provider cost comparison.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.1.2_1780071430391_0.9861312815420877","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@balkanbrs/margin-guard-core","version":"0.1.4","keywords":["margin","profitability","forecast","pricing detection","provider detection","api costs","storage costs","database costs","hosting costs","payment fees","unit economics","saas"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.1.4","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"2c01f6a4f480411d574de237911c67264bd816cf","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.1.4.tgz","fileCount":24,"integrity":"sha512-xYg8GtaEH3blZCYpM9PZJAuF4Yn8pBJkOpwhj2KSUrbxgmykx4RLw8z0HLBCULm9WbTa6pzI0coSLoUiC5S22w==","signatures":[{"sig":"MEUCIBq2nZClUchxCcC6urdP3a0MDoBL6/H3uR1ftnucM0nWAiEA+lLMSmD3D5HL8uG/IL6MwcIzKO4QByhLSUKgHoHcLgo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6065670},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, cost forecasting, pricing detection, and provider cost comparison.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.1.4_1780272224338_0.46523319870659985","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@balkanbrs/margin-guard-core","version":"0.2.0","keywords":["margin","profitability","forecast","pricing detection","provider detection","api costs","storage costs","database costs","hosting costs","payment fees","unit economics","saas"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.2.0","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"953b430d07271417b5670fcecb56345e863abcd8","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.2.0.tgz","fileCount":24,"integrity":"sha512-YhZMVt+3iXrLkT9I1lbCOtY9noqvkhbKQH4WkdVq7cvy/ft+2ZP88fx2WdZ6oC+BMuwemPEEnaC8Epx6HVthQw==","signatures":[{"sig":"MEUCIG06FcBG7g7Y1xgHqPeKXozBgKYuuneVtKicOEbUk/OBAiEAnK4FUCp2oP+HnVvh0M4bdsCnsdxSKBqrh/5jbANwogY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6083750},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, cost forecasting, pricing detection, and provider cost comparison.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.2.0_1780322391576_0.08606341914633964","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@balkanbrs/margin-guard-core","version":"0.2.1","keywords":["margin","profitability","forecast","pricing detection","provider detection","api costs","storage costs","database costs","hosting costs","payment fees","unit economics","saas"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.2.1","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"828f05ca059f003c16fd2ee17cf8fbd18f8b6c80","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.2.1.tgz","fileCount":24,"integrity":"sha512-IS29VlGr0331nc2vROcUsq95lSeVhcQRVWAo8ONLwgfZlfFf+jJOMIz3FlwsYoCNWM1Eli33TGjr+++8C+OR0Q==","signatures":[{"sig":"MEYCIQDcHqUihq08AV42cM5dod16yNAukDEIHk65bof9bYYbDgIhAJV+urTmySBAe0LnBWf4Y46o7XfrAhggHpB4o55IEAOe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6083967},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, cost forecasting, pricing detection, and provider cost comparison.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.2.1_1780348273987_0.41340098504862266","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@balkanbrs/margin-guard-core","version":"0.2.2","keywords":["margin","profitability","forecast","pricing detection","provider detection","api costs","storage costs","database costs","hosting costs","payment fees","unit economics","saas"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.2.2","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"55ec20c64bc2f044e5137ef9216dd4250594e0c8","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.2.2.tgz","fileCount":30,"integrity":"sha512-GPKlGTJT4oqctfcb6FySOLRABIr59N5PJT5VxPfp3ybGDpqBitoZkoD8ol1xRJnnYwQW4lrgriuMbZXj23VlcA==","signatures":[{"sig":"MEUCIQDI8v7X0BjrzIoxXuF3dC6PtT9DLh8YSiKieV9O74fh5QIgdSsh/ofBI/Xbll7yqtcRNdtPK9Bihfh0pumnfxZ6guM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6095262},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, cost forecasting, pricing detection, and provider cost comparison.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.2.2_1780357898711_0.9841980766234706","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@balkanbrs/margin-guard-core","version":"0.2.3","keywords":["saas margin analysis","margin","profitability","forecast","pricing detection","provider detection","api cost estimation","api costs","storage costs","database costs","hosting costs","hosting cost comparison","payment fees","unit economics","pricing strategy","profitability forecast","software profitability","saas","cost analysis"],"license":"MIT","_id":"@balkanbrs/margin-guard-core@0.2.3","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"dist":{"shasum":"227f9d974f7a7ca3da541bb576330d544fddc955","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.2.3.tgz","fileCount":30,"integrity":"sha512-Z50TMILbc6yHdGbxRl9EgLdO7fmHTbWwjvrAfOzNMm3sG2bd7rENuTjK4+m9l6KY8t73ynn7but0hsu5fSPApg==","signatures":[{"sig":"MEYCIQDR9uB/EfzPr7YYfcd5iC10aIwOXsQ5xY81AXg4Na9FzAIhAKneNTSr+y23q4Y62GyBMZsASrn5o1KothVp6UJvv2IX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6095860},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"_npmVersion":"10.9.2","description":"Core engine for SaaS margin analysis, API cost estimation, pricing detection, hosting cost comparison, and profitability forecasting.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/margin-guard-core_0.2.3_1780367159291_0.23241968933344603","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@balkanbrs/margin-guard-core","version":"0.2.4","description":"Core engine for SaaS margin analysis, pricing detection, profitability forecasting, gross margin visibility, and hosting cost comparison.","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","keywords":["saas margin analysis","pricing detection","profitability forecast","gross margin","margin","profitability","forecast","provider detection","api cost estimation","api costs","storage costs","database costs","hosting costs","hosting cost comparison","payment fees","unit economics","pricing strategy","software profitability","saas","cost analysis","hosting cost comparison"],"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run"},"devDependencies":{"@types/node":"^22.15.21","vitest":"^3.2.4"},"_id":"@balkanbrs/margin-guard-core@0.2.4","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-eyt5QFihw83tHiNgrvy/DQcWZrLCtYddsZBMJqfhCdOcFqcVhd6pg6PdURcOiqcTGuWc4yBoM1req387flRvrw==","shasum":"c720c1e545d4a3c707374954ad8b5aa68a083cf1","tarball":"https://registry.npmjs.org/@balkanbrs/margin-guard-core/-/margin-guard-core-0.2.4.tgz","fileCount":30,"unpackedSize":6096004,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1uW2WVgzqrTsZwoSkfHBUZ5cul6i0infY6YLhvB8W3gIhAKVgPp9dTOCubnPhgGmh5sr7v84HbDBYw3sU04pd+LSB"}]},"_npmUser":{"name":"balkanbrs","email":"balkanbrs@gmail.com"},"directories":{},"maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/margin-guard-core_0.2.4_1780369204868_0.42046064589121035"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-29T01:43:41.582Z","modified":"2026-06-02T03:00:05.518Z","0.1.0":"2026-05-29T01:43:41.884Z","0.1.1":"2026-05-29T01:55:46.892Z","0.1.2":"2026-05-29T16:17:10.720Z","0.1.4":"2026-06-01T00:03:44.595Z","0.2.0":"2026-06-01T13:59:51.834Z","0.2.1":"2026-06-01T21:11:14.276Z","0.2.2":"2026-06-01T23:51:38.965Z","0.2.3":"2026-06-02T02:25:59.658Z","0.2.4":"2026-06-02T03:00:05.097Z"},"license":"MIT","keywords":["saas margin analysis","pricing detection","profitability forecast","gross margin","margin","profitability","forecast","provider detection","api cost estimation","api costs","storage costs","database costs","hosting costs","hosting cost comparison","payment fees","unit economics","pricing strategy","software profitability","saas","cost analysis","hosting cost comparison"],"description":"Core engine for SaaS margin analysis, pricing detection, profitability forecasting, gross margin visibility, and hosting cost comparison.","maintainers":[{"name":"balkanbrs","email":"balkanbrs@gmail.com"}],"readme":"# @balkanbrs/margin-guard-core\n\nCore engine for Margin Guard.\n\n`@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.\n\nIt is useful if you need to build:\n\n- SaaS margin analysis tools\n- codebase-based profitability forecasts\n- API, storage, database, and hosting cost estimators\n- pricing model scanners\n- unit economics and gross margin reports\n- provider comparison workflows for AI, storage, database, messaging, payments, and infrastructure\n- deterministic local-first cost and revenue forecasting workflows\n\n## What it includes\n\n- deterministic project scanning\n- pricing and revenue signal detection\n- provider and infrastructure detection\n- scenario forecasting for revenue, cost, profit, and margin\n- detailed cost buckets for API, storage, database, email/SMS, payments, and infrastructure\n- lower-cost alternative comparisons for detected providers\n- Markdown, JSON, and terminal-friendly report formatting\n- Gumroad-oriented local license verification helpers used by Margin Guard clients\n\n## Good fit for searches like\n\n- SaaS margin analysis package\n- pricing detection package\n- profitability forecast library\n- gross margin analysis toolkit\n- API cost estimation from codebase\n- hosting cost comparison engine\n- unit economics toolkit for software products\n- local-first pricing and provider scanner\n\n## Typical use cases\n\n- estimate software profitability from a repository\n- compare current provider stack versus cheaper alternatives\n- analyze hosting, storage, and database growth costs\n- create internal founder or product finance reports\n- export deterministic cost forecasts without sending code to AI services\n\n## Package focus\n\nThis package is the shared logic layer behind:\n\n- the Margin Guard desktop app\n- the Margin Guard CLI\n- the Margin Guard VS Code-compatible extension\n\nIt does not require cloud AI services for the core workflow.\n","readmeFilename":"README.md"}