DEV Community

fxxk
fxxk

Posted on

ohy - A Lightweight, Privacy-First CLI for Packaging Web into Desktop Apps

Convert web apps into desktop applications effortlessly.

ohy is a lightweight command-line tool built in Rust that transforms web applications into desktop applications. With features like data privacy isolation, multiple concurrent instances, and easy deployment, it simplifies the transition while keeping resource usage efficient and user data secure across platforms.ohy project github

Key Features

  • Small single executable: Less than 5MB.
  • Data privacy isolation: Isolates based on the connection address and application name.
  • Multiple instances: Applications can be run concurrently with isolated session data by default.
  • Easy deployment: Simply copy the binary file for use; no need for sudo privileges.
  • Automatic icon retrieval: Automatically fetches the application icon.
  • Centralized caching: Local cache data is stored in a fixed directory, avoiding scattered data writes that could clutter system directories.

Usage

Usage: ohy --url <url> [-n <name>] [-w <width>] [-h <height>] [-a <user-agent>]

Options:
  --url             url example https://www.github.com
  -n, --name        name
  -w, --width       width default 1200
  -h, --height      height default 780
  -a, --user-agent  user agent
  --help, help      display usage information
Enter fullscreen mode Exit fullscreen mode

Example

To create a desktop application for qwen chat:

ohy --url https://chat.qwenlm.ai -n qwen
Enter fullscreen mode Exit fullscreen mode

Installation

  1. Install the application using Cargo
cargo install ohy
Enter fullscreen mode Exit fullscreen mode

Benefits

  • Lightweight and efficient resource usage
  • Enhanced privacy through session isolation
  • Simple and straightforward configuration
  • Cross-platform compatibility

screenshot

linux

qwen
qwen-dark
ohy-icon

linux app cache data directory $HOME/.config/ohy/*

app-context-dir

windows

app1
app2
app3
dark-mode
icon

windows app cache data directory C:\Users\$USER_NAME\AppData\Roaming\ohy\*

web-content

Top comments (0)