AI compliance document generator — privacy policies, ToS, cookie policies for businesses and agencies
- TypeScript 95.9%
- Shell 2.8%
- CSS 1.1%
- JavaScript 0.2%
|
Some checks failed
CI / Secrets Scan (push) Failing after -1s
Deploy / Build & Push Image (push) Has been skipped
CI / Lint & Typecheck (push) Has been skipped
CI / Test (push) Has been skipped
CI / Docker Build (push) Has been skipped
Deploy / Deploy to Production (push) Failing after -2s
All 5 template types now present: Privacy Policy, ToS, Cookie Policy, GDPR Notice (6 clauses), CCPA Notice (5 clauses). Dev compose adds postgres 16 + redis 7 + hot-reload API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| deploy | ||
| docs | ||
| marketing | ||
| packages | ||
| scripts | ||
| swarm | ||
| .dockerignore | ||
| .env.sample | ||
| .gitignore | ||
| ADVERSARIAL_AUDIT.md | ||
| bun.lock | ||
| CLAUDE.md | ||
| DESIGN.md | ||
| docker-compose.prod.yml | ||
| docker-compose.yml | ||
| Dockerfile.api | ||
| Dockerfile.web | ||
| eslint.config.js | ||
| FEASIBILITY_VERDICT.md | ||
| GAP-AUDIT.md | ||
| package.json | ||
| PAPERCLIP-PROD-AUDIT-2026-04-08.md | ||
| PROD-AUDIT.md | ||
| README.md | ||
| TECH-DEBT-AUDIT.md | ||
| tsconfig.json | ||
ComplianceBot — AI Compliance Document Generator
Status: MVP Complete — all 19 build issues closed Revenue: $0-199/mo SaaS (Free / Starter $29 / Pro $79 / Agency $199) Target: SMBs needing privacy policies, ToS, cookie policies Stack: Bun monorepo — Hono API (port 3100) + Next.js 15 + Drizzle ORM + PostgreSQL Audit Score: 92/150 Tier: A (#2 priority)
Architecture
packages/
api/ Hono API — routes, services, templates, DB
web/ Next.js 15 — questionnaire, editor, agency dashboard
shared/ Shared types and constants
Features Built
- Questionnaire engine — 5-step business intake wizard
- Clause template library — 28 attorney-reviewed templates (privacy, ToS, cookie)
- LLM document generation — OpenAI GPT-4o-mini/4o with model routing by plan
- Privacy Policy generator — jurisdiction-aware (GDPR, CCPA, PIPEDA)
- Terms of Service generator — business-type-aware (SaaS, e-commerce, marketplace)
- Document editor — split-view preview + edit, version history, regenerate sections
- Multi-format export — HTML, PDF, DOCX, embeddable snippet
- Stripe billing — 4 tiers (Free/Starter/Pro/Agency) + checkout + portal
- Legal disclaimer framework — auto-appended to all generated docs
- Regulation change detection — monitor + notify + auto-flag affected docs
- Agency white-label dashboard — manage clients, custom branding, usage analytics
- Cookie consent banner — GDPR-compliant with category toggles
- E2E tests — 31 integration tests with 3 business fixtures
- Production deployment — Docker Compose with Traefik HTTPS, backup scripts
Revenue Model
| Plan | Price | Docs/mo | Key Features |
|---|---|---|---|
| Free | $0 | 1 | Basic templates, PDF export |
| Starter | $29/mo | 10 | All doc types, DOCX, version history |
| Pro | $79/mo | Unlimited | Priority AI, regulation auto-updates |
| Agency | $199/mo | Unlimited | White-label, API, unlimited clients |
Quick Start
bun install
cp .env.sample .env # fill in DATABASE_URL, STRIPE_SECRET_KEY, OPENAI_API_KEY
bun run dev:api # API on :3100
bun run dev:web # Web on :3000
Deploy
docker compose -f docker-compose.prod.yml up -d
./scripts/deploy.sh init # first time
./scripts/deploy.sh push # updates
./scripts/backup-db.sh # pg_dump
Competitive Landscape
- Termly: $20-50/mo, template-based (NOT AI-generated)
- Iubenda: similar template approach
- GAP: AI-generated, jurisdiction-aware, auto-updating = 10x better
Source Leverage
- MagicDocs templating engine + document pipeline
- Existing Stripe integration patterns
- Website template for landing page