SquibView GIF Demo Setup
This directory contains optimized content for creating animated GIF demonstrations of SquibView’s key features.
Files
Creating the GIF
1. Setup
- Run
npm run build
to ensure latest SquibView build - Open
demo/gif-demo.html
in your browser - Set up screen recording (QuickTime, OBS, etc.)
2. Recording Settings
- Resolution: 1280x720 (recommended for GitHub)
- Frame Rate: 15-20 fps (smaller file size)
- Duration: 30-45 seconds maximum
- File Size Target: Under 3MB for GitHub
3. Recording Script
- Start with empty editor (clear all content)
- Type gradually: “# SquibView Live Demo”
- Add Mermaid section: Show diagram building in real-time
- Add math equations: Type LaTeX and show instant rendering
- Add GeoJSON: Show map appearing
- Demonstrate bidirectional editing: Click in rendered view, edit, show sync
- End with call-to-action
4. GIF Optimization
After recording:
- Convert to GIF using tools like:
- ffmpeg:
ffmpeg -i recording.mov -vf "fps=15,scale=1280:-1" squibview-demo.gif
- Online tools: gifski.app, ezgif.com
- Photoshop: Import video frames, optimize for web
- Optimize file size (target under 3MB)
- Test on GitHub to ensure good quality
5. Content Highlights to Show
- ⚡ Real-time preview - Typing with instant updates
- 📊 Mermaid diagrams - Complex diagrams that build live
- 🧮 Math equations - Beautiful LaTeX rendering
- 🗺️ Interactive maps - GeoJSON visualization
- 🔄 Bidirectional editing - Edit in rendered view
- 🎯 Rich content - Code, tables, formatting
Regenerating Content
To update demo content:
node tools/generate-demo-content.js
This will regenerate both the markdown content and HTML demo page with any updates.