feat: leads capture API with PostgreSQL backend

Bun + Hono API service for capturing email subscribers across
multiple projects. Supports subscribe/unsubscribe, admin stats,
and deduplication per email+project pair.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-02-24 22:21:40 +00:00
commit 502fd3e435
5 changed files with 140 additions and 0 deletions

13
package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "leads-api",
"version": "0.1.0",
"type": "module",
"scripts": {
"start": "bun run src/index.ts",
"dev": "bun --watch run src/index.ts"
},
"dependencies": {
"hono": "^4",
"postgres": "^3"
}
}