What this layer controls
- Which lead belongs to whom, and how quickly they were contacted
- Deal stages and the revenue forecast
- Attribution of closed revenue back to source
- Data quality: duplicates, ownership, lifecycle state
What it looks like when it is wrong
These are the symptoms that show up in a marketing report or a Monday meeting. Each one has a technical cause in this layer, and each is cheaper to fix before it has a quarter of history behind it.
- Leads arrive and sit unassigned for days
- Two contacts for the same person, each with half the history
- Marketing reports leads, sales reports opportunities, nobody reconciles
- Attribution stops at the form fill because the CRM has no source field
- Nobody can state the first-response time
An open-source stack for this layer
Every project below is open source and self-hostable, with the licence the project publishes today. This is a reference build, not a recommendation to run all of it: pick the layers your stack is missing.
| Layer | Project | Licence | What it does |
|---|---|---|---|
| CRM | SuiteCRM | AGPL-3.0 | Accounts, contacts, opportunities and reporting you host. |
| CRM (light) | EspoCRM | GPL-3.0 | Faster to operate than SuiteCRM, with a clean REST API. |
| Routing | Your own service + a rules file | n/a | Territory and size rules as versioned code with a test per rule. |
| Enrichment | Common Crawl + your own rules | Open data | Firmographics derived from the company's own site, without a per-record fee. |
| Warehouse | dbt-core + PostgreSQL | Apache-2.0 | One lead table every report reads from, with tests. |
Evaluation checklist
Answer each of these about your current stack. A ‘no’ is a work item, and the count is a fair summary of the layer’s health.
- Is there one canonical lead id shared by marketing automation, CRM and billing?
- Is routing expressed as tested rules with a defined order?
- Is first-response time measured per rep and published?
- Are duplicates deduped on an explicit, versioned key?
- Does every closed deal carry a source that traces to a campaign or referrer?
- Can a dropped lead be explained (spam, duplicate, invalid) rather than vanishing?
What to instrument
Numbers that make the layer’s health visible before a customer complains.
- First-response time (median and p90) per rep
- Lead-to-opportunity conversion by source
- Duplicate rate per 1,000 contacts
- Unassigned leads older than 1 hour
Where this fits
Scope. This page describes the category and an open-source way to build it. It does not publish 5 Kings’ internal method, client data or vendor terms, and it is not an endorsement of every project listed: check the licence and the maintenance activity against your own constraints before you adopt one.