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:
@@ -0,0 +1,196 @@
|
||||
"""Federated Computer software catalog with resource profiles.
|
||||
|
||||
Source of the app list: https://federated.computer/product/software-library/
|
||||
and https://federated.computer/pricing/ (read 2026-12-01).
|
||||
|
||||
Resource figures are engineering estimates for a containerised deployment
|
||||
(vendor minimums + observed footprints), not vendor guarantees:
|
||||
|
||||
ram_mb steady-state RAM at idle (MB)
|
||||
ram_pu extra RAM per *concurrent* user (MB)
|
||||
cpu steady-state vCPU share
|
||||
cpu_pu extra vCPU per *concurrent* user
|
||||
disk_gb install + database + cache footprint (GB)
|
||||
disk_pu data growth per *named* user (GB)
|
||||
deps shared services the app needs (sized once, see SHARED)
|
||||
"""
|
||||
|
||||
# fmt: off
|
||||
# (id, name, category, tier, ram_mb, ram_pu, cpu, cpu_pu, disk_gb, disk_pu, deps, note)
|
||||
_RAW = [
|
||||
# --- Federated Core: always installed in every tier ---------------------
|
||||
("traefik", "Traefik", "Dev & Data", "core", 128, 2, 0.05, 0.01, 1, 0, [], "Reverse proxy / TLS for every app."),
|
||||
("authelia", "Authelia", "Integration", "core", 128, 4, 0.05, 0.01, 1, 0, ["redis"], "SSO for every app."),
|
||||
("powerdns", "PowerDNS", "Dev & Data", "core", 128, 0, 0.05, 0.0, 1, 0, ["postgres"], "Authoritative DNS."),
|
||||
|
||||
# --- Files, Documents and Groupware ------------------------------------
|
||||
("nextcloud", "Nextcloud", "Files, Documents and Groupware", "library", 512, 128, 0.25, 0.15, 5, 5, ["postgres", "redis"], "Disk grows with user files; 5 GB/user assumed (use Extra disk for more)."),
|
||||
("collabora", "Collabora Online", "Files, Documents and Groupware", "library", 1024, 300, 0.5, 0.3, 2, 0, [], "Each open document is a process; CPU-heavy while editing."),
|
||||
("calcom", "Cal.com", "Files, Documents and Groupware", "library", 768, 32, 0.25, 0.05, 2, 0.05, ["postgres"], ""),
|
||||
("docuseal", "Docuseal", "Files, Documents and Groupware", "library", 384, 32, 0.1, 0.05, 2, 0.2, ["postgres"], ""),
|
||||
("immich", "Immich", "Files, Documents and Groupware", "library", 2048, 128, 0.5, 0.2, 10, 5, ["postgres", "redis"], "Machine-learning container (faces/CLIP) needs ~1.5 GB RAM and bursts CPU on upload; 5 GB photos/user assumed."),
|
||||
("erpnext", "ERPNext", "Files, Documents and Groupware", "library", 2048, 128, 0.5, 0.15, 10, 0.5, ["mariadb", "redis"], "Frappe workers + scheduler; vendor recommends 4 GB+."),
|
||||
("jitsi", "Jitsi", "Files, Documents and Groupware", "library", 1536, 100, 0.5, 0.35, 5, 0, [], "JVB is CPU and bandwidth bound: ~2-4 Mbps per participant. Watch egress."),
|
||||
("kimai", "Kimai", "Files, Documents and Groupware", "library", 256, 16, 0.1, 0.02, 1, 0.05, ["mariadb"], ""),
|
||||
("plane", "Plane", "Files, Documents and Groupware", "library", 2048, 64, 0.5, 0.05, 5, 0.5, ["postgres", "redis"], "Many microservices (api, worker, beat, web, space, admin, minio)."),
|
||||
("vaultwarden", "Vaultwarden", "Files, Documents and Groupware", "library", 64, 4, 0.05, 0.01, 1, 0.01, [], ""),
|
||||
|
||||
# --- Communication ------------------------------------------------------
|
||||
("element", "Element (Matrix/Synapse)", "Communication", "library", 1024, 64, 0.5, 0.1, 5, 1, ["postgres"], "Federating with large public rooms can need far more RAM."),
|
||||
("roundcube", "Roundcube", "Communication", "library", 128, 16, 0.05, 0.02, 1, 0, ["mariadb"], ""),
|
||||
("superpanel", "Superpanel", "Integration", "library", 256, 8, 0.1, 0.01, 2, 0, [], "Federated Core dashboard and app management."),
|
||||
("email", "eMail server (SMTP/IMAP/AV)", "Integration", "library", 1536, 32, 0.25, 0.05, 5, 2, [], "ClamAV alone needs ~1.2 GB RAM. Requires outbound TCP 25 (check 'SMTP 25' column)."),
|
||||
|
||||
# --- Community & Support ------------------------------------------------
|
||||
("bookstack", "BookStack", "Community & Support", "library", 256, 16, 0.1, 0.02, 2, 0.2, ["mariadb"], ""),
|
||||
("discourse", "Discourse", "Community & Support", "library", 2048, 64, 0.5, 0.1, 10, 0.2, ["postgres", "redis"], "Vendor minimum 2 GB RAM."),
|
||||
("freescout", "FreeScout", "Community & Support", "library", 256, 32, 0.1, 0.03, 2, 0.5, ["mariadb"], ""),
|
||||
|
||||
# --- Marketing and Publishing ------------------------------------------
|
||||
("listmonk", "Listmonk", "Marketing and Publishing", "library", 128, 8, 0.1, 0.01, 1, 0, ["postgres"], "Bulk sending via an external SMTP relay recommended."),
|
||||
("matomo", "Matomo", "Marketing and Publishing", "library", 512, 32, 0.25, 0.05, 5, 0.1, ["mariadb"], "DB grows with tracked traffic, not users."),
|
||||
("mautic", "Mautic", "Marketing and Publishing", "library", 1024, 64, 0.5, 0.1, 5, 0.1, ["mariadb"], "Cron-driven campaigns spike CPU."),
|
||||
("plausible", "Plausible Analytics", "Marketing and Publishing", "library", 512, 16, 0.25, 0.02, 3, 0, ["postgres", "clickhouse"], ""),
|
||||
("castopod", "Castopod", "Marketing and Publishing", "library", 512, 32, 0.25, 0.05, 5, 1, ["mariadb", "redis"], "Media files; consider object storage."),
|
||||
("wordpress", "WordPress", "Marketing and Publishing", "library", 512, 64, 0.25, 0.1, 5, 0.2, ["mariadb"], ""),
|
||||
|
||||
# --- Sales & CRM --------------------------------------------------------
|
||||
("espocrm", "EspoCRM", "Sales & CRM", "library", 384, 32, 0.15, 0.03, 2, 0.2, ["mariadb"], ""),
|
||||
("woocommerce", "WooCommerce", "Sales & CRM", "library", 512, 64, 0.25, 0.1, 3, 0.2, ["mariadb"], "Runs inside WordPress; WordPress is added automatically."),
|
||||
|
||||
# --- Dev & Data ---------------------------------------------------------
|
||||
("baserow", "Baserow", "Dev & Data", "library", 1536, 64, 0.5, 0.1, 5, 0.5, ["postgres", "redis"], ""),
|
||||
("gitea", "Gitea", "Dev & Data", "library", 256, 32, 0.25, 0.1, 5, 0.5, ["postgres"], "CI runners are extra: budget 1-2 vCPU / 2 GB per concurrent job."),
|
||||
("jupyter", "Jupyter Notebooks", "Dev & Data", "library", 2048, 1024, 0.5, 0.5, 10, 2, [], "Local AI models need much more RAM (7B model ~ 8 GB) or a GPU."),
|
||||
("n8n", "n8n", "Dev & Data", "library", 512, 32, 0.25, 0.05, 2, 0.1, ["postgres"], ""),
|
||||
("grafana", "Grafana + Prometheus", "Dev & Data", "library", 768, 16, 0.25, 0.02, 10, 0, [], "Prometheus TSDB retention drives disk."),
|
||||
("headscale", "Headscale", "Dev & Data", "library", 64, 2, 0.05, 0.005, 1, 0, [], ""),
|
||||
|
||||
# --- Agentic Development ------------------------------------------------
|
||||
("superbrain", "Superbrain", "Agentic Development", "library", 512, 32, 0.2, 0.03, 5, 0.2, ["postgres"], "AI bookmark workspace."),
|
||||
("hermes", "Hermes", "Agentic Development", "library", 1024, 128, 0.5, 0.1, 5, 0.5, [], "Assumes remote model APIs; local inference needs GPU or 16 GB+ RAM."),
|
||||
("opencode", "OpenCode", "Agentic Development", "library", 512, 256, 0.25, 0.25, 2, 1, [], "Assumes remote model APIs."),
|
||||
("claudecode", "Claude Code", "Agentic Development", "library", 512, 256, 0.25, 0.25, 2, 1, [], "Uses Anthropic API; sandboxed builds add CPU."),
|
||||
]
|
||||
|
||||
# On-demand ("Ask") apps: lighter-touch generic profiles.
|
||||
_ON_DEMAND = [
|
||||
("appflowy", "AppFlowy", 1024, 64, 0.25, 0.05, 3, 0.5, ["postgres", "redis"]),
|
||||
("appsmith", "Appsmith", 2048, 64, 0.5, 0.05, 5, 0, ["mongodb", "redis"]),
|
||||
("beam", "Beam", 1024, 64, 0.5, 0.1, 5, 0, []),
|
||||
("bigbluebutton", "Big Blue Button", 8192, 200, 2.0, 0.4, 50, 1, ["redis", "mongodb"]),
|
||||
("blackcandy", "BlackCandy", 256, 16, 0.1, 0.05, 2, 5, []),
|
||||
("briefer", "Briefer", 1024, 128, 0.5, 0.1, 5, 0.5, ["postgres"]),
|
||||
("caddy", "Caddy", 64, 2, 0.05, 0.01, 1, 0, []),
|
||||
("clickhouse_app", "Clickhouse", 0, 0, 0, 0, 0, 0, ["clickhouse"]),
|
||||
("cloudanix", "Cloudanix", 512, 32, 0.25, 0.05, 2, 0, []),
|
||||
("copyparty", "Copyparty", 128, 16, 0.1, 0.05, 1, 20, []),
|
||||
("crontogo", "CrontoGo", 64, 0, 0.05, 0, 1, 0, []),
|
||||
("docmost", "Docmost", 512, 32, 0.25, 0.03, 2, 0.2, ["postgres", "redis"]),
|
||||
("documenso", "Documenso", 512, 32, 0.2, 0.05, 2, 1, ["postgres"]),
|
||||
("excalidraw", "Excalidraw", 64, 8, 0.05, 0.02, 1, 0, []),
|
||||
("flarum", "Flarum", 256, 32, 0.1, 0.03, 2, 0.1, ["mariadb"]),
|
||||
("fleetdm", "FleetDM", 512, 16, 0.25, 0.02, 3, 0, ["mariadb", "redis"]),
|
||||
("freepbx", "FreePBX", 1024, 32, 0.5, 0.1, 10, 0.5, ["mariadb"]),
|
||||
("ghost", "GhostCMS", 512, 32, 0.2, 0.05, 3, 0.2, ["mariadb"]),
|
||||
("hievents", "Hi.Events", 512, 32, 0.2, 0.05, 2, 0, ["postgres", "redis"]),
|
||||
("infisical", "Infisical", 512, 16, 0.25, 0.02, 2, 0, ["postgres", "redis"]),
|
||||
("inngest", "Inngest", 512, 16, 0.25, 0.05, 2, 0, ["postgres", "redis"]),
|
||||
("ironmq", "IronMQ", 256, 8, 0.1, 0.02, 2, 0, []),
|
||||
("kafka", "Kafka", 2048, 0, 1.0, 0.05, 20, 0, []),
|
||||
("kaneo", "Kaneo", 256, 16, 0.1, 0.02, 1, 0.1, ["postgres"]),
|
||||
("linkwarden", "Linkwarden", 512, 32, 0.2, 0.05, 2, 1, ["postgres"]),
|
||||
("logtail", "Logtail", 512, 0, 0.25, 0.02, 20, 0, []),
|
||||
("loomio", "Loomio", 1024, 32, 0.25, 0.05, 3, 0.1, ["postgres", "redis"]),
|
||||
("maybe", "Maybe Finance", 512, 32, 0.2, 0.03, 2, 0.05, ["postgres", "redis"]),
|
||||
("metabase", "Metabase", 1536, 64, 0.5, 0.1, 2, 0, ["postgres"]),
|
||||
("mongodb_app", "MongoDB", 0, 0, 0, 0, 0, 0, ["mongodb"]),
|
||||
("moodle", "Moodle", 1024, 64, 0.5, 0.1, 10, 1, ["postgres"]),
|
||||
("mysql_app", "MySQL", 0, 0, 0, 0, 0, 0, ["mariadb"]),
|
||||
("nginx", "Nginx", 64, 2, 0.05, 0.01, 1, 0, []),
|
||||
("nocodb", "NocoDB", 512, 32, 0.25, 0.05, 2, 0.2, ["postgres"]),
|
||||
("nodered", "NodeRed", 256, 16, 0.1, 0.02, 1, 0, []),
|
||||
("onlyoffice", "OnlyOffice", 2048, 256, 1.0, 0.3, 5, 0, ["postgres", "redis"]),
|
||||
("onyx", "Onyx", 4096, 128, 1.0, 0.2, 20, 0.5, ["postgres", "redis"]),
|
||||
("openpanel", "Open Panel", 1024, 16, 0.25, 0.02, 5, 0, ["postgres", "redis", "clickhouse"]),
|
||||
("openreplay", "Open Replay", 8192, 64, 2.0, 0.1, 50, 0, ["postgres", "redis", "clickhouse"]),
|
||||
("openclassify", "OpenClassify", 512, 32, 0.2, 0.05, 3, 0.1, ["mariadb"]),
|
||||
("openfaas", "OpenFaaS", 1024, 64, 0.5, 0.1, 5, 0, []),
|
||||
("openproject", "OpenProject", 2048, 64, 0.5, 0.1, 5, 0.5, ["postgres"]),
|
||||
("opensearch_app", "OpenSearch", 0, 0, 0, 0, 0, 0, ["opensearch"]),
|
||||
("openwhisk", "OpenWhisk", 2048, 64, 1.0, 0.1, 5, 0, []),
|
||||
("owncast", "Owncast", 512, 16, 1.0, 0.1, 5, 0, []),
|
||||
("paperless", "Paperless", 1024, 64, 0.5, 0.1, 5, 2, ["postgres", "redis"]),
|
||||
("peertube", "Peertube", 2048, 64, 1.0, 0.2, 20, 5, ["postgres", "redis"]),
|
||||
("penpot", "Penpot", 2048, 128, 0.5, 0.1, 5, 1, ["postgres", "redis"]),
|
||||
("pixelfed", "Pixelfed", 1024, 64, 0.5, 0.1, 5, 2, ["mariadb", "redis"]),
|
||||
("pocketbase", "Pocketbase", 64, 8, 0.05, 0.02, 1, 0, []),
|
||||
("postgres_app", "Postgresql", 0, 0, 0, 0, 0, 0, ["postgres"]),
|
||||
("rallly", "Rallly", 256, 16, 0.1, 0.02, 1, 0, ["postgres"]),
|
||||
("redis_app", "Redis", 0, 0, 0, 0, 0, 0, ["redis"]),
|
||||
("resourcespace", "ResourceSpace", 512, 64, 0.25, 0.1, 5, 5, ["mariadb"]),
|
||||
("revolt", "Revolt", 1024, 32, 0.25, 0.05, 3, 0.5, ["mongodb", "redis"]),
|
||||
("rustdesk", "RustDesk", 128, 8, 0.1, 0.05, 1, 0, []),
|
||||
("snapify", "Snapify", 512, 32, 0.25, 0.1, 3, 2, ["postgres"]),
|
||||
("sogo", "Sogo", 512, 32, 0.2, 0.03, 2, 0.1, ["postgres"]),
|
||||
("sqlite_app", "SQLite", 0, 0, 0, 0, 0, 0, []),
|
||||
("superproductivity", "Super Productivity", 128, 8, 0.05, 0.01, 1, 0, []),
|
||||
("superset", "Superset", 2048, 128, 0.5, 0.1, 5, 0, ["postgres", "redis"]),
|
||||
("twenty", "Twenty", 1024, 32, 0.25, 0.05, 3, 0.2, ["postgres", "redis"]),
|
||||
("umami", "Umami", 256, 8, 0.1, 0.02, 2, 0, ["postgres"]),
|
||||
("valkey_app", "valkey", 0, 0, 0, 0, 0, 0, ["redis"]),
|
||||
("vdoninja", "VDO.ninja", 128, 8, 0.1, 0.1, 1, 0, []),
|
||||
("wazuh", "Wazuh", 8192, 32, 2.0, 0.05, 50, 0, []),
|
||||
("webstudio", "Webstudio", 1024, 32, 0.25, 0.05, 3, 0, ["postgres"]),
|
||||
("wger", "WGER", 512, 16, 0.1, 0.02, 2, 0.05, ["postgres"]),
|
||||
]
|
||||
|
||||
# Shared backing services: sized once no matter how many apps use them.
|
||||
SHARED = {
|
||||
"postgres": dict(name="PostgreSQL (shared)", ram_mb=512, ram_pu=24, cpu=0.25, cpu_pu=0.04, disk_gb=3, disk_pu=0.05),
|
||||
"mariadb": dict(name="MariaDB (shared)", ram_mb=512, ram_pu=24, cpu=0.25, cpu_pu=0.04, disk_gb=3, disk_pu=0.05),
|
||||
"redis": dict(name="Redis/Valkey (shared)", ram_mb=128, ram_pu=4, cpu=0.05, cpu_pu=0.01, disk_gb=1, disk_pu=0),
|
||||
"mongodb": dict(name="MongoDB (shared)", ram_mb=1024, ram_pu=32, cpu=0.25, cpu_pu=0.05, disk_gb=5, disk_pu=0.1),
|
||||
"clickhouse": dict(name="ClickHouse (shared)", ram_mb=1536, ram_pu=16, cpu=0.5, cpu_pu=0.05, disk_gb=10, disk_pu=0),
|
||||
"opensearch": dict(name="OpenSearch (shared)", ram_mb=2048, ram_pu=32, cpu=0.5, cpu_pu=0.05, disk_gb=10, disk_pu=0),
|
||||
}
|
||||
|
||||
# Host OS + Docker + Federated system utilities (Federated reserves 30 GB).
|
||||
BASE = dict(name="OS, Docker & system utilities", ram_mb=1024, ram_pu=0, cpu=0.2, cpu_pu=0, disk_gb=30, disk_pu=0)
|
||||
|
||||
# App-level implied requirements.
|
||||
IMPLIES = {"woocommerce": ["wordpress"]}
|
||||
# fmt: on
|
||||
|
||||
CATEGORY_ORDER = [
|
||||
"Files, Documents and Groupware",
|
||||
"Communication",
|
||||
"Community & Support",
|
||||
"Marketing and Publishing",
|
||||
"Sales & CRM",
|
||||
"Dev & Data",
|
||||
"Agentic Development",
|
||||
"Integration",
|
||||
"On Demand",
|
||||
]
|
||||
|
||||
APPS: dict[str, dict] = {}
|
||||
for (i, n, cat, tier, r, rpu, c, cpu, d, dpu, deps, note) in _RAW:
|
||||
APPS[i] = dict(id=i, name=n, category=cat, tier=tier, ram_mb=r, ram_pu=rpu, cpu=c, cpu_pu=cpu,
|
||||
disk_gb=d, disk_pu=dpu, deps=deps, note=note)
|
||||
for (i, n, r, rpu, c, cpu, d, dpu, deps) in _ON_DEMAND:
|
||||
APPS[i] = dict(id=i, name=n, category="On Demand", tier="on_demand", ram_mb=r, ram_pu=rpu, cpu=c, cpu_pu=cpu,
|
||||
disk_gb=d, disk_pu=dpu, deps=deps, note="On-demand app (ask Federated); generic profile.")
|
||||
|
||||
# Federated tiers. Every tier also includes the core apps above (Traefik, PowerDNS, Authelia).
|
||||
# Good/Better/Best and their prices: https://federated.computer/pricing/
|
||||
_BASE = ["email", "headscale"]
|
||||
_GOOD = ["email", "roundcube", "nextcloud", "wordpress", "vaultwarden", "headscale", "immich", "docuseal", "gitea", "kimai", "listmonk"]
|
||||
_BETTER = _GOOD + ["calcom", "element", "espocrm", "jitsi", "plausible", "n8n", "mautic"]
|
||||
_BEST = _BETTER + ["plane", "bookstack", "baserow", "freescout"]
|
||||
PRESETS = {
|
||||
"base": dict(label="Federated Base", apps=_BASE, federated_price=19, storage_gb=30),
|
||||
"good": dict(label="Federated Good", apps=_GOOD, federated_price=70, storage_gb=60),
|
||||
"better": dict(label="Federated Better", apps=_BETTER, federated_price=145, storage_gb=130),
|
||||
"best": dict(label="Federated Best", apps=_BEST, federated_price=290, storage_gb=200),
|
||||
}
|
||||
Reference in New Issue
Block a user