Back to Trending
RepositoryTypeScriptIDIndonesia
asiifdev

asiifdev/business-leads-ai-automation

Open-source AI sales & marketing OS: find leads, draft outreach in your own voice, approve, close. Self-host or use alatpintar.id

263stars
68forks
0issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: business-automation

#1 Repository of the week

1
TINIX TRENDING·Topic: crm-tools

#1 Repository of the week

1
TINIX TRENDING·Topic: google-maps-scraper

#1 Repository of the week

🚀 Sponsored by CoreClaw

CoreClaw - Turn Google Maps Data Into Real Business Leads

Turn Google Maps Data Into Real Business Leads Find websites, emails, and business contacts from Google Maps in minutes.

Get 1,000 Free Leads


Prospex

Open-source AI-powered GTM automation platform

Find leads · Score them with AI · Generate personalized outreach · Close deals

License: MIT TypeScript Next.js NestJS PostgreSQL Docker

What is Prospex?

Prospex is a self-hosted, open-source platform that combines lead discovery, AI-powered outreach generation, and CRM management in one dashboard.

Think Apollo.io + Instantly.ai — but open-source, self-hosted, and free.

Features

ModuleDescription
Lead DiscoveryScrape Google Maps with AI-powered lead scoring
AI Content EnginePersonalized Email, WhatsApp, Instagram DM, LinkedIn, Cold Call scripts per lead
Campaign ManagerMulti-query batch campaigns with real-time progress tracking
CRM PipelineFull lead lifecycle: New → Contacted → Replied → Won/Lost
AnalyticsConversion funnel, industry breakdown, campaign ROI
ExportDownload leads as CSV, JSON, or vCard
APIREST API with Swagger docs + API key management

Tech Stack

LayerTechnology
FrontendNext.js 16, App Router, shadcn/ui, Tailwind CSS, Recharts
BackendNestJS 10, Prisma ORM, REST API
DatabasePostgreSQL 16
QueueBullMQ + Redis 7
AIOpenAI SDK (supports OpenRouter & Ollama)
MonorepoTurborepo + pnpm workspaces
DeployDocker Compose

Quickstart

Prerequisites

1. Clone & install

git clone https://github.com/asiifdev/business-leads-ai-automation.git
cd business-leads-ai-automation
pnpm install

2. Configure environment

cp .env.example apps/api/.env
cp .env.example packages/database/.env

Edit apps/api/.env with your values:

DATABASE_URL="postgresql://prospex:yourpassword@localhost:5432/prospex"
OPENAI_API_KEY=sk-your-key-here   # or leave empty for mock AI
OPENAI_MODEL=gpt-4o-mini
# Optional: use OpenRouter or Ollama
# OPENAI_BASE_URL=https://openrouter.ai/api/v1

3. Start infrastructure

docker compose up -d         # starts PostgreSQL + Redis
pnpm --filter @prospex/database db:push   # push schema
pnpm --filter @prospex/database exec prisma generate

4. Run development servers

# Terminal 1 — API (port 3001)
pnpm --filter @prospex/api dev

# Terminal 2 — Dashboard (port 3000)
pnpm --filter @prospex/web dev

Open http://localhost:3000 and you're in.

Swagger API docs: http://localhost:3001/api/docs


Project Structure

prospex/
├── apps/
│   ├── web/              # Next.js 16 dashboard
│   ├── api/              # NestJS REST API
│   └── marketing/        # Landing page
├── packages/
│   ├── database/         # Prisma schema + migrations
│   ├── types/            # Shared TypeScript types
│   └── config/           # Shared eslint/tsconfig
├── docker-compose.yml        # Local dev (PostgreSQL + Redis)
├── docker-compose.prod.yml   # Production stack
└── nginx.conf                # Nginx reverse proxy config

API Endpoints

MethodEndpointDescription
GET/api/healthHealth check
GET/POST/api/campaignsList / create campaigns
GET/PATCH/DELETE/api/campaigns/:idCampaign detail / update / delete
POST/api/scraper/campaigns/:id/startStart scraping + AI pipeline
GET/api/leadsList leads (filter by ?campaignId=)
PATCH/api/leads/:id/crmUpdate CRM status
GET/api/analyticsOverview stats
GET/api/analytics/industriesLeads by industry
GET/api/export/leads/csvExport leads as CSV
GET/api/export/leads/jsonExport leads as JSON
GET/api/export/leads/vcardExport leads as vCard
GET/POST/DELETE/api/settings/api-keysAPI key management
GET/POST/api/settings/integrationsIntegration config

Full interactive docs at /api/docs (Swagger).


Using OpenRouter / Ollama

Prospex supports any OpenAI-compatible AI provider:

OpenRouter (access Claude, Gemini, Llama, etc.):

OPENAI_API_KEY=sk-or-your-openrouter-key
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_MODEL=anthropic/claude-haiku-4-5

Ollama (local, fully offline):

OPENAI_API_KEY=ollama
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_MODEL=llama3.2

Production Deployment

cp .env.example .env
# Edit .env with production values (strong passwords, real API key)

docker compose -f docker-compose.prod.yml up -d

This starts: PostgreSQL + Redis + NestJS API + Next.js + Nginx.


Development

pnpm install            # install all dependencies
pnpm dev                # start all apps (requires turbo)
pnpm build              # build all apps
pnpm --filter @prospex/database db:studio   # Prisma Studio (DB browser)

License

MIT — see LICENSE.


Built with ❤️ by asiifdev

Similar Projects

Discover other similar projects and AI models.

Repository
toofast1/awesome-ai-lead-generation

A curated list of AI tools for finding customers, social listening, and automated outreach. The modern growth stack.

199
Oct 29, 2026
RepositoryPython
zubair-trabzada/ai-marketing-claude

AI Marketing Suite for Claude Code. 15 marketing skills with parallel subagents — audit any website, generate copy, email sequences, ad campaigns, content calendars, competitive intelligence, and client-ready PDF reports.

3.0k
Mar 2, 2026
RepositoryTypeScript
matheusmongarde/garimpo

Prospecção open source do Google Maps ao Pix: acha negócios no Maps, gera um site-prévia com o nome de cada um, conversa no WhatsApp e cobra por Pix, Mercado Pago ou Stripe. Pagou, fecha sozinho. Roda no seu PC, VPS ou Vercel, com API para agentes (Claude Code, Codex, n8n).

376
Nov 30, 2026
RepositoryTypeScript
ozhehkovski/geoleadscraper

Free open-source Google Maps scraper — Chrome extension to extract business leads (name, address, phone, website, email) from Google Maps, Yandex Maps & 2GIS and export to CSV/Excel. No API key, no account.

84
Oct 23, 2026
RepositoryPython
AgriciDaniel/claude-ads

Claude-first paid-media operations skill for Claude Code across 12 ad platforms (Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, X): source-grounded audits, deterministic findings and evidence coverage, versioned JSON reports, and capability-gated account changes.

11.4k
Nov 1, 2026
RepositoryPHP
mautic/mautic

Mautic: Open Source Marketing Automation Software.

11.1k
Nov 28, 2026
RepositoryJavaScript
Mailtrain-org/mailtrain

Self hosted newsletter app

5.7k
Nov 25, 2026
RepositoryPython
Mahanaicoach/google-maps-scraper-kit

Free, open-source Google Maps scraper for lead generation (Python, no API key, no Docker). Exports name, phone, email, website, rating and Instagram/Facebook/LinkedIn/TikTok/YouTube/X links to CSV. 100 places with emails in 44 s; --grid beats Google's 120 cap. MX email check, ad-pixel detection. Skill for Claude Code, Codex and Cursor.

2.7k
Nov 19, 2026
RepositoryPHP
mettle/sendportal

Open-source self-hosted email marketing. Manage your own newsletters at a fraction of the cost.

2.2k
Oct 22, 2026