← Back to all products
$29
Lead Magnet Builder
Lead magnet creation system with content locking, email gates, and downloadable asset delivery.
JSONMarkdownPython
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample📁 File Structure 9 files
lead-magnet-builder/
├── LICENSE
├── README.md
├── examples/
│ └── ebook.json
├── free-sample.zip
├── guide/
│ ├── 01_features.md
│ ├── 02_cli-reference.md
│ └── 03_examples.md
├── index.html
└── src/
└── lead_magnet_builder.py
📖 Documentation Preview README excerpt
Lead Magnet Builder
Part of the Landing Lab by CodeVault
Create lead magnets to grow your email list: generate formatted e-books, schedule email course sequences, build checklists, cheatsheets, swipe files, and package free tool downloads. Write your content in JSON, get professional output automatically.
Features
- Six lead magnet types: e-book, email course, checklist, cheatsheet, swipe file, tool package
- Formatted text documents with title pages and tables of contents
- Email course drip sequences with welcome and completion emails
- Checklists with sections, items, and notes
- Cheatsheets with term/definition/example layouts
- Swipe file collections with categories and context
- Tool package generator that creates ready-to-zip directories
- Python stdlib only — zero pip dependencies
Quick Start
# Generate an e-book
python src/lead_magnet_builder.py --type ebook --config examples/ebook.json --output guide.txt
# Generate an email course
python src/lead_magnet_builder.py --type email-course --config course.json
# Generate a checklist
python src/lead_magnet_builder.py --type checklist --config checklist.json --output checklist.txt
# Create a tool package
python src/lead_magnet_builder.py --type tool-package --config package.json --output-dir ./dist/
# List available types
python src/lead_magnet_builder.py --list-types
CLI Reference
| Flag | Description |
|---|---|
--type, -t | Lead magnet type: ebook, email-course, checklist, cheatsheet, swipe-file, tool-package |
--config, -c | Path to content JSON config |
--output, -o | Output file path |
--output-dir | Output directory (for tool-package type) |
--list-types | List available lead magnet types |
--verbose, -v | Enable verbose logging |
Configuration
See examples/ebook.json for an e-book config example.
Examples
Create an e-book lead magnet:
python src/lead_magnet_builder.py --type ebook --config examples/ebook.json --output "5-Landing-Page-Mistakes.txt"
License
... continues with setup instructions, usage examples, and more.
📄 Code Sample .py preview
src/lead_magnet_builder.py
#!/usr/bin/env python3
"""
Lead Magnet Builder — Landing Lab by DataNest
Create lead magnets to grow your email list: generate formatted text
documents (PDF-style plain text), schedule email course sequences,
and package free tool downloads. Produces ready-to-deliver content
from simple JSON configs.
Why this exists:
Lead magnets are the #1 way to build an email list, but creating
them takes hours of design work. This tool lets you write your
content in JSON and generates professional-looking text documents,
drip email sequences, and downloadable tool packages automatically.
Usage:
python lead_magnet_builder.py --type ebook --config ebook.json --output ebook.txt
python lead_magnet_builder.py --type email-course --config course.json
python lead_magnet_builder.py --type checklist --config checklist.json
python lead_magnet_builder.py --type tool-package --config package.json --output-dir ./dist/
python lead_magnet_builder.py --list-types
License: MIT
"""
from __future__ import annotations
import argparse
import json
import logging
import os
import sys
from dataclasses import dataclass, field
from datetime import datetime, timezone
from pathlib import Path
from typing import Any
# ---------------------------------------------------------------------------
# Constants
# ---------------------------------------------------------------------------
LOG = logging.getLogger("lead-magnet-builder")
LEAD_MAGNET_TYPES: dict[str, str] = {
"ebook": "Formatted e-book / guide (text document)",
"email-course": "Multi-day email course sequence",
"checklist": "Actionable checklist document",
"cheatsheet": "Quick-reference cheatsheet",
"tool-package": "Free tool / template package",
"swipe-file": "Copy/paste swipe file collection",
# ... 598 more lines ...