๐ Carousel Engine
Full-featured AI agent carousel generator for social media.
Generate beautiful, professional-quality carousel posts for any platform from simple JSON config. No design skills needed. No Canva. No Figma. Just content in โ PNGs out.
โจ Features
๐ 8 Platforms
| Platform |
Dimensions |
Aspect Ratio |
| Instagram Post |
1080ร1080 |
1:1 |
| Instagram Portrait |
1080ร1350 |
4:5 |
| Instagram Story |
1080ร1920 |
9:16 |
| LinkedIn Carousel |
1080ร1350 |
4:5 |
| Twitter/X |
1600ร900 |
16:9 |
| TikTok |
1080ร1920 |
9:16 |
| Pinterest |
1000ร1500 |
2:3 |
| Facebook |
1200ร630 |
1.91:1 |
๐จ 12 Style Presets
| Theme |
Description |
dark-editorial |
Black + gold, serif headlines |
minimal-light |
White bg, black text, clean |
bold-gradient |
Vibrant gradients, high energy |
neon-cyberpunk |
Dark + neon cyan, tech vibes |
retro-vintage |
Warm browns, old-school |
corporate |
Navy blue, professional |
earthy-organic |
Warm browns/greens, natural |
monochrome |
Pure black + white |
magazine |
Cream bg, red accents |
midnight-purple |
Deep purple, violet accents |
ocean-blue |
Deep blue, cyan accents |
sunset-warm |
Dark warm, orange accents |
๐ 14 Slide Types
| Type |
Description |
hook |
Scroll-stopping opening statement |
quote |
Large quote with author attribution |
breakdown |
Concept explanation with hierarchy |
list |
Numbered tips or points |
stats |
Large number with context |
beforeAfter |
Split before/after comparison |
stepByStep |
Numbered process with connected steps |
question |
Engaging question to swipe for answer |
answer |
Answer reveal with explanation |
mythVsFact |
Myth debunking two-column layout |
cta |
Call to action with buttons |
story |
Narrative with emoji accent |
comparison |
Side-by-side option comparison |
timeline |
Chronological progression |
๐ค AI Features
- Auto Content Generation โ Generate full carousel from just a topic
- 6 Content Templates โ tips, lessons, mythbust, steps, motivation, comparison
- Hook Generator โ AI-generated scroll-stopping hooks
- CTA Optimizer โ Best calls-to-action for engagement
- Smart Text Sizing โ Auto-adjusts based on content length
๐ฏ Advanced Features
- Brand Kit System โ Save and reuse brand colors, fonts
- Template Library โ Save/load carousel templates
- Batch Generation โ Generate multiple carousels at once
- A/B Variants โ Same content, different styles/platforms
- PDF Export โ All slides compiled into one PDF
- Preview Strip โ All slides side by side for planning
- Caption Generator โ Auto-generate post captions
- Hashtag Suggestions โ Relevant tags for the topic
- Watermark/Branding โ Add handle/logo to slides
- Accessibility Checker โ WCAG contrast validation
- Color Palette Generator โ Generate palettes from any hex
- Text Analytics โ Word count, readability scores
- Output Manifest โ JSON metadata for every carousel
- Custom CSS Injection โ Override any theme property
๐ Quick Start
Prerequisites
- Node.js โฅ 14
- Chromium (for headless screenshot rendering)
- Internet access (for Google Fonts)
Installation
git clone https://github.com/john/carousel-engine.git
cd carousel-engine
Generate a Carousel
# From a config file
node generator.js config.json
# From a topic (AI-generated)
node generator.js --generate "5 Stoic Lessons" --template tips
# With custom options
node generator.js --generate "Productivity Hacks" --style neon-cyberpunk --platform linkedin
Output
output/
โโโ slide_1.png โ Individual slide PNGs
โโโ slide_2.png
โโโ slide_3.png
โโโ slide_4.png
โโโ slide_5.png
โโโ _preview.png โ Preview strip (all slides)
โโโ manifest.json โ Metadata & analytics
โโโ caption.txt โ Ready-to-post caption
๐ Usage
Config File Format
{
"platform": "instagram",
"style": "dark-editorial",
"topic": "7 Stoic Truths",
"output": "./output",
"watermark": { "handle": "@your.handle", "position": "bottom-right" },
"brandKit": "./brand-kit.json",
"pdf": true,
"preview": true,
"customCSS": { "accent": "#D4AF37" },
"slides": [
{
"type": "hook",
"text": "You're not broken.\nYou're being\n**rebuilt.**",
"subtitle": "Ancient wisdom for modern struggles.",
"label": "Stoic truths"
},
{
"type": "quote",
"text": "The obstacle is the way.",
"author": "Marcus Aurelius",
"authorTitle": "Roman Emperor & Stoic Philosopher"
},
{
"type": "breakdown",
"topic": "Key Insight",
"heading": "Growth doesn't happen in **comfort.**",
"body": "Every lesson you're proud of came from something hard.",
"keyPoint": "The struggle isn't the enemy."
},
{
"type": "list",
"heading": "5 Things That Actually Work",
"items": [
{ "title": "Start before you're ready", "desc": "Perfection is procrastination." },
{ "title": "Focus on systems", "desc": "Goals set direction. Systems make progress." }
]
},
{
"type": "cta",
"quote": "\"The obstacle is the way.\"",
"actions": [
{ "icon": "๐พ", "text": "Save this" },
{ "icon": "๐ค", "text": "Share it" }
],
"handle": "@your.handle"
}
]
}
Text Formatting
Use **text** in any text field to highlight with the theme accent color.
AI Content Generation
# Generate from topic with default template
node generator.js --generate "Morning Routine"
# Choose a specific template
node generator.js --generate "Entrepreneurship" --template lessons
node generator.js --generate "Fitness Myths" --template mythbust
node generator.js --generate "Learn to Code" --template steps
node generator.js --generate "Self Discipline" --template motivation
node generator.js --generate "Success Habits" --template comparison
# Customize output
node generator.js --generate "Mental Health" --style midnight-purple --platform linkedin --output ./my-carousel
Batch Generation
# Multiple carousels from one file
node generator.js --batch batch-configs.json
A/B Testing (Multiple Styles/Platforms)
{
"platforms": ["instagram", "linkedin"],
"styles": ["dark-editorial", "neon-cyberpunk"],
"topic": "Productivity Tips",
"slides": [...]
}
Color Palette Generation
node generator.js --palette "#D4AF37"
๐จ Color Palette from #D4AF37:
primary #D4AF37
darker #8a720f
lighter #f0d86e
complementary #3758d4
analogous1 #d46737
analogous2 #8fd437
triadic1 #37d4af
triadic2 #d43758
splitComp1 #37d4d4
splitComp2 #d437af
Accessibility Check
node generator.js --check dark-editorial
โฟ Accessibility: Dark Editorial
Background vs Text: 18.10:1 (AAA)
Background vs Accent: 8.52:1 (AAA)
Overall: PASS โ
Text Analytics
node generator.js --analytics config.json
Caption Generation
node generator.js --caption config.json
๐ Using as an AI Agent Skill
Carousel Engine is designed to be used by AI agents. Here's how:
1. Generate from Topic
node /path/to/carousel-engine/generator.js --generate "Your Topic" --template tips
2. Generate from Config
node /path/to/carousel-engine/generator.js /path/to/config.json
3. As Node.js Module
const { generateCarousel, generateContentFromTopic } = require('./generator');
// From topic
const config = generateContentFromTopic('Productivity Tips', 'tips');
config.output = './my-output';
generateCarousel(config);
// From custom config
generateCarousel({
platform: 'instagram',
style: 'dark-editorial',
output: './output',
slides: [
{ type: 'hook', text: 'Hello World' },
{ type: 'cta', quote: 'Thanks for reading' }
]
});
๐ Project Structure
carousel-engine/
โโโ generator.js โ Main engine (all features)
โโโ package.json โ NPM config
โโโ LICENSE โ MIT License
โโโ README.md โ This file
โโโ SKILL.md โ OpenClaw skill docs
โโโ CONTRIBUTING.md โ Contribution guide
โโโ CHANGELOG.md โ Version history
โโโ .gitignore โ Git ignore rules
โโโ examples/ โ Example configs
โ โโโ instagram-dark.json
โ โโโ linkedin-cyberpunk.json
โ โโโ motivational-carousel.json
โ โโโ batch-configs.json
โ โโโ brand-kit.json
โโโ docs/ โ Documentation
โโโ themes.md
โโโ slide-types.md
โโโ platforms.md
โโโ ai-features.md
๐ฏ Use Cases
- Social Media Managers โ Batch-create content calendars
- Content Creators โ Turn ideas into visual carousels
- Marketers โ A/B test different styles
- AI Agents โ Programmatic carousel generation
- Personal Brands โ Consistent, professional content
- Educators โ Turn lessons into swipeable content
- Coaches โ Share wisdom in visual format
๐ค Contributing
See CONTRIBUTING.md for guidelines.
๐ License
MIT License โ see LICENSE for details.
โญ Star History
If this project helps you, give it a star! It helps others discover it.
Built with โก by Neo โ for AI agents who create.