01The problem
Small businesses run on leads in spreadsheets, chats on WhatsApp and follow-ups on sticky notes, so deals slip and nobody has one view of a customer.
02What I did
Built it first for a UK B2B events business, then turned it into Keystone, a product any business can buy outright or subscribe to. Each company sets its name, logo and colours once and the whole app carries its brand. Teams build their own tables without a developer (a JSONB-backed table system, so new pages and columns need no migrations), and leads, deals, quotes, tasks, notes and a full calendar are ready on day one. Every lead gets an AI score; Quick Create adds anything from anywhere; dashboards are built from a widget library, or the AI builds a widget from one sentence. Email (IMAP), WhatsApp and SMS (Twilio) sit in one inbox, where the AI tags the mood and intent of each reply and drafts the answer. The assistant takes questions typed or by voice and confirms before acting, Campaign Hub writes campaign copy and pulls recipients from the leads, and App Scripts automate any table on a schedule. Underneath: Node.js and Express on PostgreSQL, role-based access, webhook lead capture and encrypted mail credentials; it can also run on a company's own server and database.
03How it is put together
The core idea is that the sales team should be able to add a page or a column without waiting for me. So instead of a table per thing, there is one custom-pages engine: each page is a row, each row of data is a JSONB document with a GIN index, and a single front-end module renders all eight page types (table, kanban, calendar, notes, embed, form, dashboard and FAQ). Columns can be text, numbers, dates, dropdowns, statuses, assignees, comments, links or documents.
Around that sit the parts that do need a fixed shape: users, contacts, organisations, opportunities, quotes, invoices, tasks, messages and an audit log, 33 tables in all. The schema is created idempotently on every boot, and sessions live in Postgres so nobody is logged out by a restart. In total it is around 53,000 lines across nine API routers.
04An AI agent that asks first
The dashboard has an assistant that can actually do things: search, create or update rows, build a page or a column, add a widget, send a message. It has 13 tools in total. Every action is shown to the user for confirmation before it runs, and every AI write or send is recorded in an audit table, so there is always an answer to "who changed this?".
It runs on Claude (Haiku for quick text, Sonnet for the agent), with an NVIDIA Nemotron fallback for when API credit runs out. That meant translating tool calls between the two formats and giving the fallback model extra room to reason, with a retry if its answer is cut short. Staff can also upload PDFs and Word documents for it to answer from.
05Replacing the old system without a big bang
This CRM replaced the PHP one I had built earlier, and both had to run side by side for a while. The detail that made that painless: the Node version encrypts stored mail credentials in exactly the same AES-256 format as PHP's openssl_encrypt, so nobody had to re-enter their email settings. Leads were moved into a custom page by a migration script, and the old tables were dropped only once that was done.
Inbound email is picked up every five minutes over IMAP, overdue tasks trigger a daily reminder, and lead and Twilio webhooks are rate-limited per IP.
06The outcome
In production it runs an events business's whole sponsorship, exhibitor and speaker pipeline in one place. As Keystone, any business can buy it or subscribe and run it under its own name.
07Tools & skills
- Node.js
- PostgreSQL
- System Architecture
- Database Design
- Twilio / WhatsApp API
- LLM Integration
- Webhooks
- Role-based Access
- CRM Design
- Requirements Gathering
- Docker
- Git
- Conversational AI
- Email Automation
- Workflow Automation
- Product Design









