Timeline Builder
Generate beautiful interactive timeline HTML pages from JSON configuration data, with three layout modes:
- Vertical layout (
vertical) — A classic top-to-bottom timeline with event cards alternating on either side of the axis
- Horizontal layout (
horizontal) — A horizontally scrollable timeline, best for displaying fewer events
- Dual-side layout (
dual-side) — Events are placed on the left or right based on the side field, great for side-by-side comparisons
All layouts support:
- Click to expand/collapse event details
- Mobile-friendly responsive design
- Custom theme colors, icons, and category labels
- Pure static HTML with zero dependencies — opens directly in any browser
Usage
Basic: Generate from a JSON config file
python3 scripts/generate_timeline.py --config timeline_data.json --output timeline.html
Read JSON from stdin
cat timeline_data.json | python3 scripts/generate_timeline.py --stdin --output timeline.html
Override layout mode (takes precedence over config file)
python3 scripts/generate_timeline.py --config data.json --layout horizontal --output timeline.html
JSON Configuration Format
{
"title": "Project Milestones",
"layout": "vertical",
"theme": {
"primaryColor": "#2563eb",
"secondaryColor": "#7c3aed",
"backgroundColor": "#ffffff",
"textColor": "#1f2937",
"lineColor": "#d1d5db",
"fontFamily": "system-ui, -apple-system, sans-serif"
},
"events": [
{
"date": "2024-01-15",
"title": "Project Kickoff",
"summary": "Approval completed, core team assembled",
"details": "Detailed description text, shown when the card is expanded...",
"icon": "🚀",
"category": "Milestone",
"color": "#10b981",
"side": "left"
}
]
}
CLI Arguments
| Argument |
Description |
--config, -c |
Path to the JSON config file (mutually exclusive with --stdin) |
--stdin |
Read JSON from standard input |
--output, -o |
Output HTML file path (defaults to stdout) |
--layout, -l |
Override layout mode: vertical, horizontal, dual-side |
--title, -t |
Override the timeline title |
Event Fields
| Field |
Required |
Description |
date |
Yes |
Date label — any format works (e.g. 2024-01, Q1 2024, Phase One) |
title |
Yes |
Event title |
summary |
No |
Short description, always visible on the card |
details |
No |
Detailed content, revealed on click |
icon |
No |
Emoji or single-character icon (defaults to ●) |
category |
No |
Category tag displayed on the card |
color |
No |
Event node color (overrides the theme color) |
side |
No |
Only for dual-side layout: left or right |
Use Cases
- Project milestone displays
- Product release histories
- Company growth timelines
- Personal resume timelines
- Course syllabus outlines
- Any scenario requiring chronological information display
Dependencies
- Python 3.6+ (standard library only — no extra packages required)
Activation Triggers
Triggered when a user mentions 'timeline', 'history of events', 'project milestones', 'release log', or asks to visualize a chronological sequence of data.
1---2name: timeline-builder3description: "Generate beautiful interactive timeline HTML pages from JSON data, with vertical, horizontal, or dual-side layouts, collapsible details, and custom colors. Ideal for project milestones, company histories, or resumes."4license: MIT5type: tool6tags: ["timeline", "html", "visualization", "interactive", "responsive"]7metadata:8 source: https://skillmd.com/skills/jantoniofc/timeline-builder9---1011# Timeline Builder1213Generate beautiful interactive timeline HTML pages from JSON configuration data, with three layout modes:14151. **Vertical layout (`vertical`)** — A classic top-to-bottom timeline with event cards alternating on either side of the axis162. **Horizontal layout (`horizontal`)** — A horizontally scrollable timeline, best for displaying fewer events173. **Dual-side layout (`dual-side`)** — Events are placed on the left or right based on the `side` field, great for side-by-side comparisons1819All layouts support:20- Click to expand/collapse event details21- Mobile-friendly responsive design22- Custom theme colors, icons, and category labels23- Pure static HTML with zero dependencies — opens directly in any browser2425## Usage2627### Basic: Generate from a JSON config file2829```bash30python3 scripts/generate_timeline.py --config timeline_data.json --output timeline.html31```3233### Read JSON from stdin3435```bash36cat timeline_data.json | python3 scripts/generate_timeline.py --stdin --output timeline.html37```3839### Override layout mode (takes precedence over config file)4041```bash42python3 scripts/generate_timeline.py --config data.json --layout horizontal --output timeline.html43```4445### JSON Configuration Format4647```json48{49 "title": "Project Milestones",50 "layout": "vertical",51 "theme": {52 "primaryColor": "#2563eb",53 "secondaryColor": "#7c3aed",54 "backgroundColor": "#ffffff",55 "textColor": "#1f2937",56 "lineColor": "#d1d5db",57 "fontFamily": "system-ui, -apple-system, sans-serif"58 },59 "events": [60 {61 "date": "2024-01-15",62 "title": "Project Kickoff",63 "summary": "Approval completed, core team assembled",64 "details": "Detailed description text, shown when the card is expanded...",65 "icon": "🚀",66 "category": "Milestone",67 "color": "#10b981",68 "side": "left"69 }70 ]71}72```7374### CLI Arguments7576| Argument | Description |77|----------|-------------|78| `--config, -c` | Path to the JSON config file (mutually exclusive with `--stdin`) |79| `--stdin` | Read JSON from standard input |80| `--output, -o` | Output HTML file path (defaults to stdout) |81| `--layout, -l` | Override layout mode: `vertical`, `horizontal`, `dual-side` |82| `--title, -t` | Override the timeline title |8384### Event Fields8586| Field | Required | Description |87|-------|----------|-------------|88| `date` | Yes | Date label — any format works (e.g. `2024-01`, `Q1 2024`, `Phase One`) |89| `title` | Yes | Event title |90| `summary` | No | Short description, always visible on the card |91| `details` | No | Detailed content, revealed on click |92| `icon` | No | Emoji or single-character icon (defaults to `●`) |93| `category` | No | Category tag displayed on the card |94| `color` | No | Event node color (overrides the theme color) |95| `side` | No | Only for dual-side layout: `left` or `right` |9697## Use Cases9899- Project milestone displays100- Product release histories101- Company growth timelines102- Personal resume timelines103- Course syllabus outlines104- Any scenario requiring chronological information display105106## Dependencies107108- Python 3.6+ (standard library only — no extra packages required)109110## Activation Triggers111112Triggered when a user mentions 'timeline', 'history of events', 'project milestones', 'release log', or asks to visualize a chronological sequence of data.