Leadlantern docs
v1.0.0
Get help
● Reference · How it fits together

Architecture
what talks to what.

Leadlantern is one Node.js program with one SQLite file. It asks place-data services for businesses, reads their public websites, and sends e-mail through your Resend account only when a person presses Send.

One processSQLiteNo background sending

01Diagram

You and your teamconsole in a browser Leadlantern serversearch · website check · scoredrafts · send guard · pipelinereport and unsubscribe pages SQLite (data/)leads, messages, settings OpenStreetMapor Google Places (your key) Business websitespublic pages, robots.txt first AI provider (optional)drafts, your key Resend (optional)one e-mail per click Business owneropens report or unsubscribe link sign-in, roles reads and writes searchauditdraftsend https pages

03Where things are in the source

Folder or fileWhat it does
src/places/, src/search.tsOpenStreetMap and Google Places, the search and its history
src/audit.ts, src/score.ts, src/reportpage.tsWebsite check, scoring rules per service, the public report page
src/drafts.ts, src/ai.ts, src/outreach.tsDrafts, the AI client, the send guard, unsubscribe and do-not-contact
src/leads.ts, src/db.tsLeads, notes, tasks, history and the SQLite schema
src/web/, public/Console pages and their JSON API, styles and the small console script
src/admin/, packages/admin-kit/The operator console: settings, encrypted keys, team, roles, audit log, status checks
src/addons.tsThe interface the separately sold add-ons plug into
test/Automated tests (pnpm test), no network and no real keys