Feature/hosted mode and templates#18
Merged
David-Dohyun-Im merged 2 commits intomainfrom Nov 6, 2025
Merged
Conversation
## Major Changes ### 1. Hosted Mode Build System - Change default build mode from inline to hosted - Hosted mode: External CSS/JS references via asset server - Inline mode: Self-contained HTML (legacy, opt-in via MODE=inline) - Add static asset server on port 4444 for dev mode - Support BASE_URL environment variable for custom asset URLs ### 2. Widget Template System - Add 4 widget templates: default, list, carousel, albums - Templates use domain-neutral naming (cards, info instead of places, location) - Auto-install template dependencies (Tailwind CSS, embla-carousel, etc.) - Carousel template: Horizontal scrolling cards with navigation - List template: Ranked list with thumbnails and ratings - Albums template: Photo gallery with fullscreen viewer ### 3. CLI Improvements - Add --template option to 'fastapps create' command - Auto-detect and install template-specific dependencies - Improve dependency management in package.json ### 4. Build Script Enhancements - Auto-detect Tailwind CSS and integrate with Vite - Support global CSS (widgets/index.css) and per-widget CSS - Generate appropriate HTML based on build mode - Unified build script for both modes ## Breaking Changes - Default build mode changed to hosted (use MODE=inline for old behavior) - Dev server now requires asset server on port 4444 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Document template options (--list, --carousel, --albums) - Add brief descriptions for each template type - Keep documentation concise and clear 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Add hosted mode build and widget templates
Major Changes
1. Hosted Mode Build System
2. Widget Template System
3. CLI Improvements
4. Build Script Enhancements
Readme: Add widget templates usage guide