# YAAW **Repository Path**: ymz316/yaaw ## Basic Information - **Project Name**: YAAW - **Description**: 纯 HTML/CSS/JavaScript 实现的 Aria2 Web 前端界面 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-04 - **Last Updated**: 2025-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YAAW 纯 HTML/CSS/JavaScript 实现的 Aria2 Web 前端界面 无需 HTTP 服务器、后端或服务端程序,仅需浏览器即可运行 ## 使用 **1. 运行 aria2 并开启 RPC 服务** ```bash aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all ``` * JSON-RPC 路径格式示例: `http://hostname:port/jsonrpc` * 若使用 aria2 1.18.4(或更高版本)并通过 `http://token:secret@hostname:port/jsonrpc` 格式的 JSON-RPC 路径访问时,请务必配置 `--rpc-secret=` 参数。 * 若使用 aria2 1.15.2(或更高版本)并通过 `http://username:passwd@hostname:port/jsonrpc` 格式的 JSON-RPC 路径访问时,请设置 `--rpc-user=` 和 `--rpc-passwd=` 认证参数。 **2. 浏览 index.html** **3. 若出现"Internal server error"(服务器内部错误),请修改"JSON-RPC Path"(JSON-RPC 路径)设置。** ## 提示 - 当前网页端的所有配置均为临时设置,**重启 aria2 服务后所有设置将会丢失**。 - aria2 重启后,所有任务(包括未完成的任务)将会丢失。建议使用 `--save-session=路径/文件名` 参数保存会话,并通过 `--continue=true --input-file=路径/文件名` 重新加载以继续任务。 - 使用 `${HOME}/.aria2/aria2.conf` 配置文件来保存您的配置。 - 关于 aria2 的更多配置信息, 请参考 [Aria2 手册](http://aria2.sourceforge.net/manual/en/html/) - YAAW 同样支持 WebSocket 协议!设置 JSON-RPC 路径时,可使用 `ws://hostname:port/jsonrpc` 格式。 - 您可以通过以下格式预先指定或保存 JSON-RPC 路径为书签: `http://binux.github.io/yaaw/demo/#path=http://hostname:port/jsonrpc` ## 组件 - [Bootstrap](http://twitter.github.com/bootstrap/) - [mustache.js](https://github.com/janl/mustache.js) - [jQuery](http://jquery.com/) - [jQuery Storage](http://archive.plugins.jquery.com/project/html5Storage) - [JSON RPC 2.0 jQuery Plugin](https://github.com/datagraph/jquery-jsonrpc) ## 许可 YAWW 采用 GNU 宽通用公共许可证 (GNU Lesser General Public License) 授权。 您可从 http://www.gnu.org/licenses/lgpl.txt 获取该许可证的完整副本。 favicon.ico 来自于 [fangke](http://fangke.im/)