Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

πŸ“± Turn any website into a standalone desktop app on COSMIC desktop.

License

Notifications You must be signed in to change notification settings

Ahmosys/cosmic-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

cosmic-webapp

Turn any website into a standalone desktop app on COSMIC desktop.

cosmic-webapp demo

Features

  • Interactive TUI powered by gum
  • Isolated browser profile per webapp (cookies, sessions, data stay separate)
  • Custom icon URL support (e.g. from dashboardicons.com) with automatic favicon fallback
  • Proper Wayland app_id generation for COSMIC dock integration
  • Chromium and Brave browser support
  • Standard .desktop files β€” webapps appear in the COSMIC app launcher

Dependencies

  • gum β€” interactive terminal UI
  • chromium or brave β€” browser engine
  • wget β€” favicon download
  • imagemagick (optional) β€” .ico to .png conversion

Install

git clone https://github.com/Ahmosys/cosmic-webapp.git
cd cosmic-webapp
chmod +x install.sh
./install.sh

Usage

Interactive mode

cosmic-webapp

CLI mode

# Create a webapp
cosmic-webapp create "YouTube" "https://youtube.com" chromium Network
# Create a webapp with a custom icon
cosmic-webapp create "Home Assistant" "https://ha.example.com" chromium Network "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/home-assistant.png"
# List installed webapps
cosmic-webapp list
# Remove a webapp
cosmic-webapp remove

Uninstall

./uninstall.sh

How it works

Each webapp gets:

  • A .desktop file in ~/.local/share/applications/
  • An icon in ~/.local/share/icons/webapps/
  • An isolated browser profile in ~/.local/share/chromium-webapps/
  • A Wayland app_id matching Chromium's algorithm (chrome-<url>-Default) for proper window management and dock pinning

Acknowledgments

This project was developed with the assistance of Claude (Anthropic).

License

MIT

About

πŸ“± Turn any website into a standalone desktop app on COSMIC desktop.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /