Hamilton Helmer’s 7 Powers argues that durable competitive advantage — a real moat — comes from one of seven specific sources: scale economies, network economies, counter-positioning, switching costs, branding, cornered resource, and process power. Each has a formal economic model behind it, what Helmer calls the Statistical Learning Model (SLM).
The framework is rigorous but trapped in a book. A founder honestly assessing their own idea either hand-waves (“we have network effects!”) or abandons the rigour entirely. I wanted to close that gap: run Helmer’s actual SLM math behind the scenes, but surface only plain-language, founder-friendly questions on top.
A web app that walks a founder through scoring an idea against all seven powers:
The seven SLM calculators are pure, independently tested functions — 47 unit tests — and every plain-language-answer-to-number mapping lives in one central file, so the formulas can be tuned without touching the UI.
The MVP is complete, tested, and live in production at sevenpowers.butenasg.uk (*Currently available only to selected people):
Next.js 15 (App Router) + React 19 + strict TypeScript. Server Actions keep the SLM math, validation, and database writes server-side without a separate API layer, while the wizards still compute SLM live in the browser for instant feedback. Strict types caught a class of bugs around the seven calculators’ input shapes.
Tailwind CSS v4 + shadcn/ui. An ownable design system without a heavy component library — nearly every screen is built from a small set of shared “wizard primitives,” which kept the wizards and the new-idea form consistent with little duplicated code.
Supabase (Postgres + Auth + RLS). Database, authentication, and row-level security in one service, with clean SSR integration. A database trigger auto-creates a personal org per user, so the multi-tenant foundation exists from day one.
Zod validates every server-action input — the boundary between plain-language form data and the typed numbers the calculators expect. The Anthropic API (Claude Haiku) powers fast, inexpensive single-shot critiques.
Docker + Cloudflare Tunnel (not Vercel). Deliberately self-hosted on infrastructure already running other services, keeping hosting costs near zero. The one tradeoff — reverse-proxy OAuth redirects pointing at the public domain rather than the container — was a one-time fix.
Portfolio comparison — ideas plotted by market size against strongest power. Click to enlarge.
The 7 Powers framework is from Hamilton Helmer’s book of the same name — the strategic thinking is his; the scoring quirks are mine.