The Business Model Canvas has been successfully implemented using vanilla JavaScript for optimal performance and simplicity. This implementation provides an interactive, editable canvas that can be embedded directly in Jekyll documentation pages.
-
assets/business-model-canvas.js (2,929 bytes)
- Main JavaScript functionality
- Initializes canvas structure with 9 sections
- Captures user input in real-time
- Provides JSON export functionality
-
assets/business-model-canvas.css (568 bytes)
- Styling for the canvas
- Responsive grid layout
- Text area styling
- Export button styling
-
_includes/business-model-canvas.html (266 bytes)
- Jekyll include file
- Loads JavaScript and CSS files
- Creates canvas container
-
_posts/2026-01-27-business-model-canvas.md (1,466 bytes)
- Sample documentation page
- Demonstrates how to use the canvas
-
_posts/2026-01-27-business-model-canvas-documentation.md (2,928 bytes)
- Complete documentation for the canvas feature
- Usage examples and deployment instructions
-
_posts/2026-01-27-business-model-canvas-implementation.md (5,217 bytes)
- Implementation guide
- Technical details and customization options
-
package.json (16 lines)
- Project configuration
- Scripts for common operations
-
copy-assets.sh (Bash script)
- Deployment script for copying assets to _site directory
- _layouts/Default.html
- Updated to include the business model canvas
- Canvas appears on all pages using the Default layout
- Initializes canvas structure with all 9 business model canvas sections
- Creates editable text areas for each section
- Captures user input in real-time
- Provides JSON export functionality
- Creates a responsive grid layout (2 columns)
- Styles text areas for easy editing
- Provides visual feedback for interactions
- Ensures cross-browser compatibility
- Loads JavaScript and CSS files automatically
- Creates canvas container when page loads
- Works with all Jekyll layouts
Add the canvas include to any page:
{% include business-model-canvas.html %}---
layout: Default
title: My Business Model
date: 2026-01-27 21:00:00 -0800
categories: Business
---
# My Business Model
This page includes an interactive business model canvas.
{% include business-model-canvas.html %}
## Analysis
After filling out the canvas, you can export the data as JSON for further analysis.- Fill in the canvas sections with your business information
- Click the "Export JSON" button
- The canvas data will be downloaded as
business-model-canvas.json
# Start Jekyll development server
bundle exec jekyll serve
# Access the canvas at http://localhost:4000# Build the Jekyll site
bundle exec jekyll build
# Copy assets to the _site directory
npm run copy-assets
# Deploy the _site directory to your hosting platform- Performance: Vanilla JavaScript is lightweight and fast
- Simplicity: No build process or dependencies required
- Integration: Seamlessly embedded in Jekyll templates
- Flexibility: Easy to customize and extend
- Compatibility: Works with all modern browsers
- Maintainability: Simple code structure for easy updates
- Test the canvas in your browser
- Customize the styling to match your brand
- Add custom export functionality if needed
- Create additional documentation pages
- Deploy to your hosting platform
Copyright AStartup; all rights reserved.