# Pake | Turn Any Webpage Into A Desktop App With Rust With Ease

**URL:** <https://onehack.st/t/pake-turn-any-webpage-into-a-desktop-app-with-rust-with-ease/291050>\
**Category:** Tools & Scripts\
**Tags:** tools, programming, ai\
**Created:** [September 11, 2024, 7:15pm UTC](https://onehack.st/t/pake-turn-any-webpage-into-a-desktop-app-with-rust-with-ease/291050 "2024-09-11T19:15:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [September 11, 2024, 7:15pm UTC](https://onehack.st/t/pake-turn-any-webpage-into-a-desktop-app-with-rust-with-ease/291050/1 "2024-09-11T19:15:00Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/8/e/8e44afc97c1bcc855924c9b95118f6d0aa8798e4.jpeg)

# Pake

**Turn any webpage into a desktop app with Rust _with ease_.**

[![twitter](https://camo.githubusercontent.com/183d82739012e64c29eeb35cfd0cbfe47f24f17d416d8d8eaad7c200cfb9369e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d547739332d7265643f7374796c653d666c61742d737175617265266c6f676f3d54776974746572)](https://twitter.com/HiTw93) [![telegram](https://camo.githubusercontent.com/69de37d146a58158fea639701a735e1b4662052dfd125903f1b099e6d46f3921/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636861742d74656c656772616d2d626c756576696f6c65743f7374796c653d666c61742d737175617265266c6f676f3d54656c656772616d)](https://t.me/+GclQS9ZnxyI2ODQ1) [![GitHub downloads](https://camo.githubusercontent.com/ac6768d04e5fe2a13b22caba5bc8f85508a18d8a5d9ba1455441b9b902aeff93/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f747739332f50616b652f746f74616c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/tw93/Pake/releases) [![GitHub commit](https://camo.githubusercontent.com/73cda5ff51d6caa27d1563e2cdae6a17358fd6991726b405930b501c61a3b7bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f747739332f50616b653f7374796c653d666c61742d737175617265)](https://github.com/tw93/Pake/commits) [![GitHub closed issues](https://camo.githubusercontent.com/8b604ce474e1ec86204b6a2125da0e6a62774fd022e287e81be07f341066ce2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642f747739332f50616b652e7376673f7374796c653d666c61742d737175617265)](https://github.com/tw93/Pake/issues?q=is%3Aissue+is%3Aclosed) [![Open in Colab](https://camo.githubusercontent.com/96889048f8a9014fdeba2a891f97150c6aac6e723f5190236b10215a97ed41f3/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667)](https://colab.research.google.com/drive/1bX345znvDZ30848xjRtpgtU8eypWwXrp?usp=sharing)

Pake supports Mac, Windows, and Linux. Check out README for [Popular Packages](https://github.com/tw93/Pake#popular-packages), [Command-Line Packaging](https://github.com/tw93/Pake#command-line-packaging), and [Customized Development](https://github.com/tw93/Pake#development) information. Feel free to share your suggestions in [Discussions](https://github.com/tw93/Pake/discussions).

## Features

- 🎐 Nearly 20 times smaller than an Electron package (around 5M!)
- 🚀 With Rust Tauri, Pake is much more lightweight and faster than JS-based frameworks.
- 📦 Battery-included package — shortcut pass-through, immersive windows, and minimalist customization.
- 👻 Pake is just a simple tool — replace the old bundle approach with Tauri (though PWA is good enough).

## Popular Packages

| WeRead [Mac](https://github.com/tw93/Pake/releases/latest/download/WeRead.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/WeRead_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/WeRead_x86_64.deb) | Twitter [Mac](https://github.com/tw93/Pake/releases/latest/download/Twitter.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/Twitter_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/Twitter_x86_64.deb) |
| --- | --- |
| [![](https://camo.githubusercontent.com/2fca3dd2d1dcca4defbcb65e32da0750e3aac1903c8726c32c985409ad404b5a/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f3137644339492e6a7067)](https://camo.githubusercontent.com/2fca3dd2d1dcca4defbcb65e32da0750e3aac1903c8726c32c985409ad404b5a/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f3137644339492e6a7067) | [![](https://camo.githubusercontent.com/b216d61a80d746d7db2bc40213eb6f3f65f50d7c752c0d752223396e0b5decf8/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6d63343178712e6a7067)](https://camo.githubusercontent.com/b216d61a80d746d7db2bc40213eb6f3f65f50d7c752c0d752223396e0b5decf8/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6d63343178712e6a7067) |
| ChatGPT [Mac](https://github.com/tw93/Pake/releases/latest/download/ChatGPT.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb) | Poe [Mac](https://github.com/tw93/Pake/releases/latest/download/Poe.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/Poe_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/Poe_x86_64.deb) |
| [![](https://camo.githubusercontent.com/06c2582e139c078236d158d18f9d9dc9b535b3e71cc0d3d7fc0e5b5367136b5f/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f35614f3679502e706e67)](https://camo.githubusercontent.com/06c2582e139c078236d158d18f9d9dc9b535b3e71cc0d3d7fc0e5b5367136b5f/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f35614f3679502e706e67) | [![](https://camo.githubusercontent.com/d54fddd4325d14564d3d8a353dcb1520a0f186db7e45a502c916b4d09cf01db3/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f5a74737832332e706e67)](https://camo.githubusercontent.com/d54fddd4325d14564d3d8a353dcb1520a0f186db7e45a502c916b4d09cf01db3/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f5a74737832332e706e67) |
| YouTube Music [Mac](https://github.com/tw93/Pake/releases/latest/download/YouTubeMusic.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/YouTubeMusic_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/YouTubeMusic_x86_64.deb) | YouTube [Mac](https://github.com/tw93/Pake/releases/latest/download/YouTube.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/YouTube_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/YouTube_x86_64.deb) |
| [![](https://raw.githubusercontent.com/tw93/static/master/pic/12.png)](https://raw.githubusercontent.com/tw93/static/master/pic/12.png) | [![](https://camo.githubusercontent.com/0f8b79daefbf9bae2712070212ca4fe70cf960a751dd2002fa3d6453a292dcd6/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f706e2f312e6a7067)](https://camo.githubusercontent.com/0f8b79daefbf9bae2712070212ca4fe70cf960a751dd2002fa3d6453a292dcd6/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f706e2f312e6a7067) |
| LiZhi [Mac](https://github.com/tw93/Pake/releases/latest/download/LiZhi.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/LiZhi_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/LiZhi_x86_64.deb) | ProgramMusic [Mac](https://github.com/tw93/Pake/releases/latest/download/ProgramMusic.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/ProgramMusic_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/ProgramMusic_x86_64.deb) |
| [![](https://camo.githubusercontent.com/f74380d8a17064b209240f56e9982ef77442d76e539c1c267de3461682d57133/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6e59454b714e2e6a7067)](https://camo.githubusercontent.com/f74380d8a17064b209240f56e9982ef77442d76e539c1c267de3461682d57133/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6e59454b714e2e6a7067) | [![](https://camo.githubusercontent.com/8e5998ef7d957973f101edb746a5a0f46d62e6f1310d9eb81ae7baaa33dcca06/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f72372f3043396c6a752e6a7067)](https://camo.githubusercontent.com/8e5998ef7d957973f101edb746a5a0f46d62e6f1310d9eb81ae7baaa33dcca06/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f72372f3043396c6a752e6a7067) |
| Qwerty [Mac](https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb) | CodeRunner [Mac](https://github.com/tw93/Pake/releases/latest/download/CodeRunner.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x86_64.deb) |
| [![](https://camo.githubusercontent.com/f2bd643f9842976814b128216cc78d89defcf6404a6acc2b42c512beb9b2349a/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6932656736472e706e67)](https://camo.githubusercontent.com/f2bd643f9842976814b128216cc78d89defcf6404a6acc2b42c512beb9b2349a/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6932656736472e706e67) | [![](https://camo.githubusercontent.com/0143fa475ede0d38bc431cdab0b13dfcbf05c79401d8f673e4f3f40aa8e037cf/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6d557a4f656b2e6a7067)](https://camo.githubusercontent.com/0143fa475ede0d38bc431cdab0b13dfcbf05c79401d8f673e4f3f40aa8e037cf/68747470733a2f2f63646e2e666c696767792e636f6d2f757069632f6d557a4f656b2e6a7067) |
| Flomo [Mac](https://github.com/tw93/Pake/releases/latest/download/Flomo.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/Flomo_x86_64.deb) | XiaoHongShu [Mac](https://github.com/tw93/Pake/releases/latest/download/XiaoHongShu.dmg) [Windows](https://github.com/tw93/Pake/releases/latest/download/XiaoHongShu_x64.msi) [Linux](https://github.com/tw93/Pake/releases/latest/download/XiaoHongShu_x86_64.deb) |
| [![](https://camo.githubusercontent.com/dea1a55b3646c14517d6e407bafade2c0984f472b2beed05fa4a0800961161f6/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f33302f526f555355662e706e67)](https://camo.githubusercontent.com/dea1a55b3646c14517d6e407bafade2c0984f472b2beed05fa4a0800961161f6/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f33302f526f555355662e706e67) | [![](https://camo.githubusercontent.com/5a79caf93141f2a6040ffefb31a2c6ce07fb861014e99938e337ac900a4fb69d/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f38392f794a567779692e706e67)](https://camo.githubusercontent.com/5a79caf93141f2a6040ffefb31a2c6ce07fb861014e99938e337ac900a4fb69d/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f38392f794a567779692e706e67) |

🏂 You can download more applications from [Releases](https://github.com/tw93/Pake/releases). **Click here to expand the shortcuts reference!**

| | | |
| --- | --- | --- |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |

## Before starting

1. **For beginners** : Play with Popular Packages to find out Pake’s capabilities, or try to pack your application with [GitHub Actions](https://github.com/tw93/Pake/wiki/Online-Compilation-(used-by-ordinary-users)). Don’t hesitate to reach for assistance at [Discussion](https://github.com/tw93/Pake/discussions)!
2. **For developers** : “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. [Configure your environment](https://tauri.app/v1/guides/getting-started/prerequisites) before getting started.
3. **For hackers** : For people who are good at both front-end development and Rust, how about customizing your apps’ function more with the following [Customized Development](https://github.com/tw93/Pake#development)?

## Command-Line Packaging

[![Pake](https://camo.githubusercontent.com/4d51a4790ecb94d0c959d9e83c0c2f758c4bcad3c9d2f18ea7e1aa78ba110e7e/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f7a642f70616b652e676966)](https://camo.githubusercontent.com/4d51a4790ecb94d0c959d9e83c0c2f758c4bcad3c9d2f18ea7e1aa78ba110e7e/68747470733a2f2f67772e616c697061796f626a656374732e636f6d2f7a6f732f6b2f7a642f70616b652e676966)

**Pake provides a command line tool, making the flow of package customization quicker and easier. See [documentation](https://github.com/tw93/Pake/blob/master/bin/README.md) for more information.**

```auto
# Install with npm
npm install -g pake-cli

# Command usage
pake url [OPTIONS]...

# Feel free to play with Pake! It might take a while to prepare the environment the first time you launch Pake.
pake https://weekly.tw93.fun --name Weekly --hide-title-bar

```

If you are new to the command line, you can compile packages online with _GitHub Actions_. See the [Tutorial](https://github.com/tw93/Pake/wiki/Online-Compilation-(used-by-ordinary-users)) for more information.

## Development

Prepare your environment before starting. Make sure you have Rust `>=1.63` and Node `>=16` (e.g., `16.18.1`) installed on your computer. For installation guidance, see [Tauri documentation](https://tauri.app/v1/guides/getting-started/prerequisites).

If you are unfamiliar with these, it is better to try out the above tool to pack with one click.

```auto
# Install Dependencies
npm i

# Local development [Right-click to open debug mode.]
npm run dev

# Pack application
npm run build

```

## Advanced Usage

1. You can refer to the [codebase structure](https://github.com/tw93/Pake/wiki/Description-of-Pake's-code-structure) before working on Pake, which will help you much in development.
2. Modify the `url` and `productName` fields in the `pake.json` file under the src-tauri directory, the “domain” field in the `tauri.config.json` file needs to be modified synchronously, as well as the `icon` and `identifier` fields in the `tauri.xxx.conf.json` file. You can select an `icon` from the `icons` directory or download one from [macOSicons](https://macosicons.com/#/) to match your product needs.
3. For configurations on window properties, you can modify the `pake.json` file to change the value of `width`, `height`, `fullscreen` (or not), `resizable` (or not) of the `windows` property. To adapt to the immersive header on Mac, change `hideTitleBar` to `true`, look for the `Header` element, and add the `padding-top` property.
4. For advanced usages such as style rewriting, advertisement removal, JS injection, container message communication, and user-defined shortcut keys, see [Advanced Usage of Pake](https://github.com/tw93/Pake/wiki/Advanced-Usage-of-Pake).

## GitHub:

> **[GitHub - tw93/Pake: 🤱🏻 Turn any webpage into a desktop app with one...](https://github.com/tw93/Pake)**
>
> 🤱🏻 Turn any webpage into a desktop app with one command.

---

<div class="post-metadata">

**Author:** ![Bob.Smit](https://onehack.st/user_avatar/onehack.st/bob.smit/32/161700_2.png) [@Bob.Smit](https://onehack.st/u/Bob.Smit)\
**Post date:** [September 11, 2024, 7:36pm UTC](https://onehack.st/t/pake-turn-any-webpage-into-a-desktop-app-with-rust-with-ease/291050/2 "2024-09-11T19:36:32Z")

</div>

Thank you. Pake is awesome
