[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81252":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":29,"discoverSource":30},81252,"pi-webui","khimaros\u002Fpi-webui","khimaros","a simple, standalone webui for pi.dev","",null,"JavaScript",25,9,21,1,0,2,4,6,49.4,"GNU General Public License v3.0",false,"master",true,[],"2026-06-12 04:01:32","# pi-webui\n\na simple, standalone webui for [pi.dev](https:\u002F\u002Fpi.dev)\n\n![screencast](docs\u002Fscreencast.gif)\n\n## getting started\n\nprerequisites:\n\n- node.js 20+\n- a working pi installation\n\ninstall as a pi extension:\n\n```bash\npi install npm:@khimaros\u002Fpi-webui\n```\n\ncontrol from the pi tui:\n\n```bash\n> \u002Fwebui start    # start the server\n> \u002Fwebui status   # view server status\n> \u002Fwebui open     # open webui in browser\n> \u002Fwebui stop     # stop the server\n```\n\nor auto-start when pi launches (server is terminated when pi exits):\n\n```bash\npi --webui                              # start with defaults\npi --webui-listen 0.0.0.0:3000          # start with a custom bind address\n```\n\nrun without installing:\n\n```bash\nnpx @khimaros\u002Fpi-webui\n```\n\nor install globally:\n\n```bash\nnpm install -g @khimaros\u002Fpi-webui\npi-webui\n```\n\nthen open \u003Chttp:\u002F\u002F127.0.0.1:4096>.\n\n### from a source checkout\n\n```bash\nmake            # install deps + build (tsc)\nmake start      # run the server\nmake test       # build + run tests\n```\n\n## configuration\n\ncommand-line flags:\n\n| flag | purpose |\n| --- | --- |\n| `--listen \u003Chost:port>` | http bind address; takes precedence over `HOST`\u002F`PORT`. use `:port` for default host, or `[::1]:port` for ipv6. |\n\nenvironment variables:\n\n| variable | default | purpose |\n| --- | --- | --- |\n| `PI_WEBUI_HOST` | `127.0.0.1` | http bind address |\n| `PI_WEBUI_PORT` | `4096` | http port |\n| `PI_PROJECT_CWD` | `process.cwd()` | project directory used for sessions |\n| `PI_AGENT_DIR` | pi default (`~\u002F.pi\u002Fagent`) | pi agent config directory |\n| `PI_SESSION_DIR` | pi default | session storage directory |\n| `PI_WEBUI_CWD_ALLOW_ANY` | `0` | allow `\u002Fcwd` to switch to paths outside `$HOME` |\n\nexamples:\n\n```bash\npi-webui --listen 0.0.0.0:3000\nHOST=0.0.0.0 PORT=3000 PI_PROJECT_CWD=\u002Fpath\u002Fto\u002Fproject npm start\n```\n\n## attachments\n\npaste images into the composer (Ctrl\u002FCmd+V) or drag and drop them onto the\nwindow. thumbnails appear above the input and ride along with the next\nprompt. up to 8 images per turn, 10 MB each. PNG, JPEG, GIF, and WebP are\naccepted.\n\n## roadmap\n\nsee [ROADMAP.md](ROADMAP.md) for implemented and planned features.\n\n## architecture\n\n```\nsrc\u002F\n  extension\u002F   pi extension entry (slash command + auto-start flag)\n  server\u002F      http + websocket server hosting the pi sdk runtime\n                 index.ts, event-log.ts, log.ts, watch.ts, ext-ui.ts\npublic\u002F        browser client (vanilla js, no build step)\ntest\u002F          node --test files\n```\n\n## development\n\n```bash\nmake            # install deps + build (tsc)\nmake start      # run the server\nmake install    # install pi-webui globally from this checkout\nmake update     # update dependencies (npm update)\nmake test       # build + run tests\nmake lint       # tsc --noEmit + node --check on .mjs sources\nmake precommit  # lint + test\nmake vendor     # refresh public\u002Fvendor (marked, highlight.js)\nmake clean      # rm -rf dist build\n```\n","pi-webui 是一个为 pi.dev 提供的简单独立网页界面。其核心功能包括通过命令行启动和控制服务，支持图片上传与预览，并允许用户在浏览器中轻松管理和操作 pi 项目。该项目采用 JavaScript 编写，具有轻量级、易于部署的特点。适合需要图形化界面来管理 pi 项目的开发者使用，特别是在远程或本地环境中希望通过直观的方式进行交互时。此外，它还提供了详细的配置选项以满足不同需求。","2026-06-11 04:04:03","CREATED_QUERY"]