Add Coremarket: Federated Core VM sizing and cloud pricing app

Dockerised FastAPI web app that sizes a VM for a selection of Federated
Computer apps (Base/Good/Better/Best tiers or custom) and prices it across
14 cloud providers and ~250 regions, grouped by continent.

- Sizing model per app with shared databases, headroom and disk growth
- Live pricing from Vultr, Akamai/Linode and Azure (DigitalOcean and
  Hetzner with tokens); dated catalog for the rest
- Hand-maintained Contabo price sheet with editor and table paste,
  including the one-time setup fee
- HIPAA/SOC2/PCI DSS/GDPR status, SMTP port 25, IPv4 and egress notes
- Estimated latency to 40 cities, real RTT via Globalping probes
- Versioned REST API (/api/v1) with OpenAPI docs and CSV export
- Accounts with admin/user roles, first admin from ADMIN_USERNAME /
  ADMIN_PASSWORD, per-account API keys, SQLite storage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 21:36:51 -07:00
co-authored by Claude Opus 5.5
commit 1bb2a299c7
24 changed files with 3801 additions and 0 deletions
+113
View File
@@ -0,0 +1,113 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coremarket: Federated Core VM sizing &amp; cloud pricing</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<header>
<h1>Coremarket</h1>
<span class="sub">Size a Federated Core stack, then price the VM across clouds and regions</span>
<span class="spacer"></span>
<span id="liveStatus" class="muted"></span>
<button id="editContaboBtn" class="ghost admin-only hidden" title="Edit Contabo plans and prices by hand">Edit Contabo prices</button>
<button id="refreshBtn" class="ghost admin-only hidden" title="Pull current prices from provider APIs">Refresh live prices</button>
<div class="menu">
<button id="userBtn" class="ghost" aria-haspopup="true" aria-expanded="false">Account ▾</button>
<div id="userMenu" class="menu-list hidden" role="menu">
<div id="userInfo" class="muted small menu-info"></div>
<button role="menuitem" data-act="keys">API keys</button>
<button role="menuitem" data-act="users" class="admin-only hidden">Users</button>
<button role="menuitem" data-act="password">Change password</button>
<button role="menuitem" data-act="docs">API docs</button>
<button role="menuitem" data-act="logout">Sign out</button>
</div>
</div>
</header>
<div class="layout">
<aside>
<section>
<h2>1. Software</h2>
<div class="presets">
<label class="tier">Federated tier
<select id="tierSelect"></select>
</label>
<button id="clearApps" class="ghost" title="Untick all apps">Clear</button>
</div>
<input id="appSearch" type="search" placeholder="Filter apps...">
<p class="muted small">Always included (Federated Core): <span id="coreList"></span></p>
<div id="appList"></div>
</section>
</aside>
<main>
<section class="card">
<h2>2. Workload</h2>
<div class="grid4">
<label>Concurrent users <input id="concurrent" type="number" min="1" value="5"></label>
<label>Named users (accounts) <input id="named" type="number" min="1" value="10"></label>
<label>CPU/RAM headroom % <input id="headroom" type="number" min="0" value="25"></label>
<label>Disk growth % (12 mo) <input id="growth" type="number" min="0" value="30"></label>
<label>Extra disk GB <input id="extraDisk" type="number" min="0" value="0"></label>
<label class="chk"><input id="allowBurst" type="checkbox" checked> Allow burstable CPU</label>
<label class="chk"><input id="dedicatedOnly" type="checkbox"> Dedicated vCPU only</label>
<label class="chk"><input id="allowArm" type="checkbox"> Allow ARM64</label>
</div>
<div id="sizing" class="sizing"></div>
</section>
<section class="card">
<h2>3. Filters</h2>
<div class="filters">
<div><b>Regions</b><div id="contFilter" class="chips"></div></div>
<div><b>Must have compliance</b>
<div class="chips" id="compFilter"></div>
<label class="chk small"><input id="allowPartial" type="checkbox"> accept "partial"</label>
</div>
<div><b>Other</b>
<label class="chk small"><input id="needSmtp" type="checkbox"> exclude clouds that hard-block SMTP port 25</label>
<label class="chk small"><input id="bestPerProvider" type="checkbox" checked> cheapest region per provider only (by-region view)</label>
</div>
<div><b>Providers</b><div id="provFilter" class="chips"></div></div>
</div>
<div class="filters">
<div class="wide"><b>Latency focus cities</b> <span class="muted small">(columns show avg / worst estimated RTT to these)</span>
<div id="cityFilter" class="chips small"></div>
</div>
<div><b>Max RTT to focus cities</b>
<label>ms <input id="maxRtt" type="number" min="0" placeholder="no limit" style="width:7em"></label>
</div>
</div>
</section>
<section class="card">
<div class="tabs">
<button data-tab="byregion" class="active">Prices by region</button>
<button data-tab="all">All options</button>
<button data-tab="matrix">Latency matrix</button>
<button data-tab="notes">Notes &amp; API docs</button>
<span class="spacer"></span>
<span id="count" class="muted"></span>
<button id="csvBtn" class="ghost">Export CSV</button>
</div>
<div id="tab-byregion" class="tab"></div>
<div id="tab-all" class="tab hidden"></div>
<div id="tab-matrix" class="tab hidden"></div>
<div id="tab-notes" class="tab hidden"></div>
</section>
</main>
</div>
<dialog id="account"><form method="dialog" class="dlg-close top"><button>Close</button></form><div id="accountBody"></div></dialog>
<dialog id="editor"><div id="editorBody"></div></dialog>
<dialog id="detail">
<form method="dialog" class="dlg-close top"><button>Close</button></form>
<div id="detailBody"></div>
<form method="dialog" class="dlg-close"><button>Close</button></form>
</dialog>
<script src="/static/app.js"></script>
</body>
</html>