UNPKG

roadmap-gen

Version:

Professional HTML roadmap generator from YAML data with multiple themes

146 lines (104 loc) β€’ 4.2 kB
# roadmap-gen πŸ—ΊοΈ **Professional HTML roadmap generator from YAML data** Transform your project roadmap into beautiful, interactive visualizations. Built with modern TypeScript and powered by Bun for lightning-fast performance. [![CI/CD Pipeline](https://github.com/davlgd/roadmap-gen/actions/workflows/ci.yml/badge.svg)](https://github.com/davlgd/roadmap-gen/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/roadmap-gen.svg)](https://badge.fury.io/js/roadmap-gen) [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ## ✨ Features - **🎨 Multiple Themes**: Professional themes for different audiences - **πŸ”’ Internal/Public Control**: Show/hide confidential content with `--with-internal` flag - **πŸ“Š Interactive Visualizations**: Project tracking across quarters with status indicators - **⚑ Lightning Fast**: Built with Bun runtime for optimal performance - **πŸ”§ Simple Configuration**: YAML format for defining roadmaps - **πŸš€ Dual Usage**: CLI tool and programmatic API - **πŸ“± Responsive Design**: Works on desktop, tablet, and mobile ## πŸ› οΈ Installation ### Package Manager ```bash # Using Bun (recommended) bun add roadmap-gen # Using npm npm install roadmap-gen # Using yarn yarn add roadmap-gen ``` ### Pre-compiled Binaries Download from [releases page](https://github.com/davlgd/roadmap-gen/releases) for Linux, macOS, or Windows. ## πŸš€ Quick Start ### CLI Usage ```bash # Basic usage bunx roadmap-gen npx roadmap-gen # With custom source roadmap-gen --source ./my-roadmap.yaml # Include internal/confidential content roadmap-gen --with-internal # With all options roadmap-gen -s ./my-roadmap.yaml -t themes/cards -o ./public --with-internal # Show help roadmap-gen --help ``` ### Programmatic API ```typescript import { build } from 'roadmap-gen'; await build(); // Uses defaults (public view) await build('./data.yaml', 'themes/cards', './dist', true); // With internal content await build('./data.yaml', 'themes/cards', './public'); ``` ## πŸ“ YAML Configuration Create a `roadmap.yaml` file (see `example.yml` for complete reference): ```yaml title: 'Product Roadmap 2025' vision: 'Building the future of our platform' quarters: ['Q1-2025', 'Q2-2025', 'Q3-2025', 'Q4-2025'] next_quarters: ['Q2-2025'] # Highlighted quarters categories: - name: 'Infrastructure' icon: 'πŸ—οΈ' projects: - name: 'Cloud Migration' responsible: 'DevOps Team' issue: 'https://github.com/org/repo/issues/123' # A project can be public or internal (0.4.0+) # internal: true quarters: Q1-2025: status: 'in-progress' description: 'Migrating core services' details: - 'Database migration completed' - text: 'Internal: Vendor contract details' internal: true # Hidden from public roadmaps (0.4.0+) progress: '60%' internal_notes: 'Budget approval pending' # Hidden from public roadmaps (0.4.0+) ``` ## 🎨 Themes Professional themes for different audiences: - **light** - Clean minimal design - **cards** - Project cards layout for visual presentations - **compact** - Ultra-dense table for many projects - **mobile** - Mobile-first responsive design - **timeline** - Enhanced chronological visualization See [themes/README.md](themes/README.md) for details and custom theme creation. ## πŸ”§ Development ```bash git clone https://github.com/davlgd/roadmap-gen.git cd roadmap-gen bun install bun test ``` ## 🀝 Contributing 1. Fork the repository 2. Create a feature branch 3. Make your changes with tests 4. Submit a pull request ## πŸ“„ License This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details. ## πŸš€ Built With - **[Bun](https://bun.sh/)** - Runtime and toolkit - **[TypeScript](https://www.typescriptlang.org/)** - Type safety - **[js-yaml](https://github.com/nodeca/js-yaml)** - YAML parsing --- **Made with ❀️ and powered by Bun** [⭐ Star this repo](https://github.com/davlgd/roadmap-gen) if you find it useful!