Skip to content

Bundle ghostty-web in mobile app to avoid CDN dependency#67

Merged
gricha merged 1 commit intomainfrom
bundle-ghostty-web
Jan 9, 2026
Merged

Bundle ghostty-web in mobile app to avoid CDN dependency#67
gricha merged 1 commit intomainfrom
bundle-ghostty-web

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 9, 2026

Summary

  • Bundles ghostty-web UMD build directly into the mobile app instead of fetching from esm.sh CDN at runtime
  • Eliminates network dependency for terminal functionality - terminal now loads instantly
  • Adds build script to regenerate bundled HTML when ghostty-web is updated
  • Fixes textarea cursor visibility issue in simulator with CSS

Changes

  • Add ghostty-web as direct dependency
  • Add mobile/scripts/bundle-terminal.ts to generate bundled HTML
  • Add mobile/src/lib/terminal-html.ts (generated file with ~645KB bundled terminal)
  • Update TerminalScreen.tsx to import bundled HTML instead of inline template with CDN import

- Add ghostty-web as a direct dependency
- Create build script to bundle UMD version with embedded WASM
- Generate terminal-html.ts with pre-bundled terminal HTML
- Remove runtime CDN fetch from TerminalScreen
- Fix textarea cursor visibility with CSS
@gricha gricha force-pushed the bundle-ghostty-web branch from 5e49312 to a604127 Compare January 9, 2026 18:55
@gricha gricha merged commit d4924aa into main Jan 9, 2026
9 checks passed
@gricha gricha deleted the bundle-ghostty-web branch January 9, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant