← Back to all products
$19
Social Proof Widget
Social proof widgets including testimonial rotators, live counters, and trust badge integrations.
PythonMarkdownJSON
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 SampleFile Structure 15 files
social-proof-widget/
├── LICENSE
├── README.md
├── examples/
│ └── widgets.json
├── free-sample.zip
├── guide/
│ ├── 01_features.md
│ ├── 02_cli-reference.md
│ ├── 03_configuration.md
│ └── 04_license.md
├── index.html
├── interactive.html
├── src/
│ ├── __pycache__/
│ │ └── social_proof_widget.cpython-312.pyc
│ └── social_proof_widget.py
└── tests/
├── __pycache__/
│ └── test_social_proof_widget.cpython-312-pytest-9.0.2.pyc
└── test_social_proof_widget.py
Documentation Preview README excerpt
Social Proof Widget
Part of the Landing Lab by CodeVault
Generate embeddable social proof HTML widgets from JSON data: testimonial rotators, review aggregators, trust badge strips, visitor counters, customer logo bars, and stats displays. Each widget is self-contained HTML with inline CSS — just paste into your landing page.
Features
- Six widget types: testimonial rotator, review aggregate, trust badges, visitor counter, customer logos, stats bar
- Pure CSS animations (no JavaScript needed for testimonials)
- Self-contained HTML snippets with inline styles
- Customisable brand colours, fonts, and content
- Star rating displays with Unicode characters
- Responsive layouts that work on mobile
- Python stdlib only — zero pip dependencies
Quick Start
# Generate a testimonial rotator
python src/social_proof_widget.py --config examples/widgets.json --widget testimonial-rotator
# Generate all widgets at once
python src/social_proof_widget.py --config examples/widgets.json --all --output widgets.html
# Generate trust badges only
python src/social_proof_widget.py --config examples/widgets.json --widget trust-badges
# List available widget types
python src/social_proof_widget.py --list
CLI Reference
| Flag | Description |
|---|---|
--config, -c | Path to widgets JSON config (required) |
--widget, -w | Widget type to generate |
--all | Generate all widget types |
--output, -o | Output file (default: stdout) |
--list | List available widget types |
--verbose, -v | Enable verbose logging |
Widget Types
| Widget | Description |
|---|---|
testimonial-rotator | Animated testimonial carousel with CSS fade |
review-aggregate | Star rating + distribution bar chart |
trust-badges | Horizontal badge/certification strip |
visitor-counter | Live visitor count with pulsing dot |
customer-logos | "Trusted by" logo bar with hover effects |
stats-bar | Key metrics display (users, uptime, etc.) |
Configuration
See examples/widgets.json for a complete example covering all widget types.
Examples
... continues with setup instructions, usage examples, and more.
Code Sample .py preview
src/social_proof_widget.py
#!/usr/bin/env python3
"""
Social Proof Widget — Landing Lab by DataNest
Generate embeddable social proof HTML widgets from JSON data: testimonial
rotators, review aggregators, trust badge strips, and live visitor counters.
Each widget is a self-contained HTML snippet with inline CSS — just paste
it into your landing page.
Why this exists:
Social proof is the #1 conversion lever after your headline. But
building a testimonial slider or "1,247 people signed up today"
counter takes hours of front-end work. This tool generates
production-ready, styled HTML widgets in seconds.
Usage:
python social_proof_widget.py --config widgets.json --widget testimonial-rotator
python social_proof_widget.py --config widgets.json --widget trust-badges
python social_proof_widget.py --config widgets.json --widget review-aggregate
python social_proof_widget.py --config widgets.json --all --output widgets.html
License: MIT
"""
from __future__ import annotations
import argparse
import html
import json
import logging
import sys
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any
# ---------------------------------------------------------------------------
# Constants
# ---------------------------------------------------------------------------
LOG = logging.getLogger("social-proof-widget")
WIDGET_TYPES = (
"testimonial-rotator",
"review-aggregate",
"trust-badges",
"visitor-counter",
"customer-logos",
"stats-bar",
)
# ... 449 more lines ...