{"id":43985936,"url":"https://github.com/qwertyyb/public-tools","last_synced_at":"2026-02-07T09:35:19.867Z","repository":{"id":40335933,"uuid":"334620816","full_name":"qwertyyb/public-tools","owner":"qwertyyb","description":"类似Alfred的快捷启动应用，提高效率的开源工具，万物皆插件。","archived":false,"fork":false,"pushed_at":"2023-09-17T10:24:16.000Z","size":9654,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T10:49:47.660Z","etag":null,"topics":["alfred","flutter","launcher","macos","productivity"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qwertyyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-31T09:45:13.000Z","updated_at":"2025-02-01T07:16:33.000Z","dependencies_parsed_at":"2025-04-19T21:44:46.875Z","dependency_job_id":"0d81a32a-af33-4eeb-898a-59ab7f61cfba","html_url":"https://github.com/qwertyyb/public-tools","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/qwertyyb/public-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyyb%2Fpublic-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyyb%2Fpublic-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyyb%2Fpublic-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyyb%2Fpublic-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwertyyb","download_url":"https://codeload.github.com/qwertyyb/public-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwertyyb%2Fpublic-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alfred","flutter","launcher","macos","productivity"],"created_at":"2026-02-07T09:35:19.810Z","updated_at":"2026-02-07T09:35:19.862Z","avatar_url":"https://github.com/qwertyyb.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# public_tools\n\n类似Alfred的快捷启动应用，提高效率的开源工具，万物皆插件。\n\u003e 使用 flutter ＋ nodejs 进行开发\n\n![](https://s3.bmp.ovh/imgs/2022/05/08/032b37c3cd2fdeb7.png)\n\n## 下载安装\n\n下载后解压，把 `.app` 文件拖拽到应用程序目录\n\n[下载地址](https://github.com/qwertyyb/public-tools/releases/latest/download/public.tools.zip)\n\n## 应用特性\n\n1. 开源\n2. 快捷启动应用\n3. 系统命令(重启，锁屏等)\n4. 剪切板历史\n5. 远程插件、插件商店\n6. 可用 `nodejs` 方便开发插件\n\n## 插件开发\n\n1. 插件为 `npm包`\n\n2. `package.json` 中应该有以下几个必填字段(name, title, subtitle, description, icon, mode, keywords)\n \n - 2.1 `name` 不支持scope形式\n - 2.2 `icon` 为网络图片，暂不支持本地图片\n - 2.3 `mode` 暂时只支持 `listView`\n - 2.4 `keywords` 数组形式，触发关键词\n\n3. 此 `npm` 包导出 `PublicPlugin`\n```typescript\n\ninterface PluginResult {\n  id: string;\n  title: string;\n  subtitle: string;\n  description: string;\n  icon: string;\n}\n\ninterface PublicPluginMethods {\n  // 当进入插件页面时调用\n  onEnter: () =\u003e void\n  // 当离开插件页面时调用\n  onExit: () =\u003e void\n  /**\n   * 在插件中搜索时调用\n   * @param keyword 关键词\n   * @return 搜索结果\n   */\n  onSearch: (keyword: string) =\u003e Promise\u003cPluginResult[]\u003e\n  /**\n   * 当在插件中选择某个搜索结果时调用\n   * @param result 搜索结果, 具体结构参考PluginResult\n   * @return 返回Promise\u003cstring\u003e，返回的字符串将作为搜索结果的详情显示在右侧\n   */\n  onResultSelected: (result: PluginResult) =\u003e Promise\u003cstring\u003e\n  /**\n   * 当在插件中点击某个搜索结果时调用\n   * @param result 搜索结果, 具体结构参考PluginResult\n   */\n  onResultTap: (result: PluginResult) =\u003e void\n}\n\ninterface Utils {\n  toast: (message: string) =\u003e Promise\n  hideApp: () =\u003e Promise\n  showApp: () =\u003e Promise\n  updateResults: (results: PluginResult[]) =\u003e Promise\n  updatePreview: (preview: string) =\u003e Promise\n}\n\ninterface PublicPlugin {\n  (utils: Utils) : PublicPluginMethods\n}\n\n```\n4. 可输入 `dev` 进行本地调试\n\n5. 提 PR 发布到 store, 供其他人下载\n\n## TODO\n\n- [ ] 更好的开发体验，能打断点调试\n- [ ] 优化 `remote` 稳定性\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwertyyb%2Fpublic-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwertyyb%2Fpublic-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwertyyb%2Fpublic-tools/lists"}