Pake README

项目的 README,来自 github.com/tw93/Pake。合并为一个 markdown 文件:README.md。

Pake

Turn any website into a lightweight desktop app with one command. Supports macOS, Windows and Linux. Free open-source CLI, plus a desktop app.

English · 中文 · 繁體 · 日本語 · 한국어 · Deutsch · Français

twitter telegram GitHub downloads GitHub commit GitHub closed issues

This repo is the free open-source Pake CLI, and pnpm install -g pake-cli installs only the CLI. The Pake desktop app has more features, is easier to use, and is a separate download.

Features

Getting Started

WeRead Mac Windows Linux X Mac Windows Linux
Grok Mac Windows Linux DeepSeek Mac Windows Linux
ChatGPT Mac Windows Linux Gemini Mac Windows Linux
YouTube Music Mac Windows Linux YouTube Mac Windows Linux
LiZhi Mac Windows Linux ProgramMusic Mac Windows Linux
Excalidraw Mac Windows Linux XiaoHongShu Mac Windows Linux
Notion Mac Windows Linux Flomo Mac Windows Linux

More apps are on the Releases page.

Keyboard shortcuts
Mac Windows/Linux Function
⌘ + [ Ctrl + [ Return to the previous page
⌘ + ] Ctrl + ] Go to the next page
⌘ + ↑ Ctrl + ↑ Auto scroll to top of page
⌘ + ↓ Ctrl + ↓ Auto scroll to bottom of page
⌘ + R Ctrl + R Refresh page
⌘ + W Ctrl + W Hide window, not quit
⌘ + - Ctrl + - Zoom out
⌘ + = Ctrl + = Zoom in
⌘ + 0 Ctrl + 0 Reset zoom
⌘ + L Ctrl + L Copy current page URL
⌘ + ⇧ + ⌥ + V Ctrl + Shift + V Paste and match style
⌘ + ⇧ + H Ctrl + Shift + H Go to home page
⌘ + ⌥ + I Ctrl + Shift + I Toggle developer tools (debug only)
⌘ + ⇧ + ⌫ Ctrl + Shift + Del Clear cache and restart
⌃ + ⌘ + F F11 Toggle native window fullscreen

Double-click the title bar to toggle fullscreen. On Windows and Linux, --hide-window-decorations gives a frameless window with a top drag region. On Mac, swipe to go back or forward and drag the title bar to move the window, and the menu bar has navigation, zoom and window controls.

Command-Line Packaging

Pake

# Install Pake CLI
pnpm install -g pake-cli

# Basic usage, fetches the website icon automatically
pake https://github.com --name GitHub

# Advanced usage, custom options
pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar

The first build sets up the environment and takes a while, later builds are fast. See the CLI Usage Guide for every option, or try GitHub Actions Online Building if you'd rather skip the command line.

Using Pake from a script or AI agent? Pass --json for machine-readable results, describe apps declaratively with --config app.json (schema), and package local build output directly with pake ./dist --name MyTool. See llms.txt for the full agent contract. The official skill installs like this:

# Claude Code
/plugin marketplace add tw93/Pake
/plugin install pake@pake

# Codex
codex plugin marketplace add tw93/Pake
codex plugin add pake@pake

Copy this to your AI agent to get started:

Use Pake (npm i -g pake-cli) to package webpages as desktop apps. Read https://unpkg.com/pake-cli@latest/llms.txt first; always run pake with --json and parse stdout as a single JSON object. Package <url-or-local-dist> into an app named <AppName>.

Development

Requires Rust >=1.85 and Node >=22.12, see the Tauri documentation for setup. If you are new to this toolchain, the CLI is the easier path.

# Install dependencies
pnpm i

# Local development, right-click to open the debug tools
pnpm run dev

# Build application
pnpm run build

For style customization, feature enhancement, container communication and other advanced features, see Advanced Usage Documentation.

Contributors

Pake wouldn't be possible without these incredible contributors.

Contributors

Support

These lovely people already did

License

Pake is open source under GPL-3.0, see LICENSE and Pake Output Exception; apps you build with Pake are entirely yours to use and distribute. If you fork Pake into your own product, to avoid confusion please give it a different name and credit Pake as the source. Pake CLI stays open source for the long run.

Pake (tw93/Pake)

正在搜索数据库…

64.2K ·GitHub
这是干什么的?Pake 只需要一条命令,就能把任意网页变成一个体积小、速度快桌面应用——ChatGPT、YouTube、Notion,你日常用什么都行。
它是我要基于它开发的框架,还是帮我打包网站的工具?是一个打包工具:你给它一个网址,它就用 Rust Tauri(而不是 Electron)把这个页面打包成一个独立的桌面应用,所以安装包通常不到 10M。
具体怎么把一个网站变成应用?有三条路:直接下载现成的 Popular Package;不用配置任何环境,通过 GitHub Actions 在线构建;或者安装命令行工具(npm i -g pake-cli),一条命令就能打包任意网址。
我的电脑上需要装什么才能打包?在线构建什么都不用装。用命令行打包需要一个 Node 环境(该包要求 Node >=20.9)。从克隆的仓库做自定义开发则需要 Rust >=1.85 和 Node >=22。
第一次打包会比以后慢吗?会——第一次打包需要进行一次性的环境准备,可能比较慢;之后的构建就很快了。
它打包出来的应用在三大桌面系统上都能用吗?可以——支持 macOS、Windows 和 Linux。快捷键因平台而异,在 Windows/Linux 上,--hide-window-decorations 可以得到无边框窗口,并在顶部保留可拖拽区域。
我用 Pake 做出来的应用也会受 GPL-3.0 约束吗?不会——Pake 本身是 GPL-3.0,但多亏了 Pake Output Exception,你用它构建的应用完全可以由你自己使用和分发。不过 Pake 本身的分支(fork)应该换一个名字,并注明来自 Pake。
打包出来的应用除了加载网页,还能干什么?它们支持键盘快捷键、沉浸式窗口、拖拽、样式自定义和去除广告;进阶的样式和功能调整可以看 Advanced Usage 文档。
有没有现成的应用可以直接下载,不用自己打包?有——热门包包括 WeRead、Twitter、Grok、DeepSeek、ChatGPT、Gemini、YouTube Music、Excalidraw、Notion 和 Flomo,列表之外还有更多可以下载。
我能通过脚本或 AI 智能体来用 Pake 吗?可以——--json 输出机器可读的结果,--config app.json 用声明式方式描述应用,pake ./dist 可以打包本地构建产物,Claude Code 用户还能安装官方插件(pake@pake)。
按 Cmd+W / Ctrl+W 会彻底关掉应用吗?不会——它只是隐藏窗口,应用仍在后台运行。Cmd+L 可以复制当前页面网址,有专门的快捷键可以清空缓存并重启,双击标题栏可以切换全屏。
作者
tw93
大小
86.4 MB
星标
64.2K
时长
4年
提交 · 90 天