{"id":16321468,"url":"https://github.com/doodlewind/flylog","last_synced_at":"2026-01-23T13:46:50.589Z","repository":{"id":57239336,"uuid":"70274435","full_name":"doodlewind/flylog","owner":"doodlewind","description":"Front end AOP logging and monotoring tool.","archived":false,"fork":false,"pushed_at":"2024-07-30T16:51:01.000Z","size":193,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-10T08:38:16.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/doodlewind.png","metadata":{"files":{"readme":"README-cn.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}},"created_at":"2016-10-07T18:54:53.000Z","updated_at":"2022-09-13T08:22:06.000Z","dependencies_parsed_at":"2024-11-06T14:41:33.033Z","dependency_job_id":"f3a966ce-ac75-4d8e-a796-3887268fd4b4","html_url":"https://github.com/doodlewind/flylog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doodlewind/flylog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Fflylog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Fflylog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Fflylog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Fflylog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodlewind","download_url":"https://codeload.github.com/doodlewind/flylog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Fflylog/sbom","scorecard":{"id":352165,"data":{"date":"2025-08-11","repo":{"name":"github.com/doodlewind/flylog","commit":"32bef296e9fd72d6fa68b53aace6e55a8a7de8ab"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T08:36:51.799Z","repository_id":57239336,"created_at":"2025-08-18T08:36:51.799Z","updated_at":"2025-08-18T08:36:51.799Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"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":[],"created_at":"2024-10-10T22:47:52.571Z","updated_at":"2026-01-23T13:46:50.565Z","avatar_url":"https://github.com/doodlewind.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003chead\u003e\n    \u003ctitle\u003eFlyLog - Doc\u003c/title\u003e\n\u003c/head\u003e\n\u003cnav\u003e\n    \u003cdiv class=\"title\"\u003eFlyLog\u003c/div\u003e\n    \u003cdiv class=\"nav-item\" onclick=\"window.open('/')\"\u003eAdmin\u003c/div\u003e\n    \u003cdiv class=\"nav-item active\"\u003eDoc\u003c/div\u003e\n\u003c/nav\u003e\n\u003cstyle\u003e\n* {\n    box-sizing: border-box;\n}\n@font-face {\n    font-family: \"AgencyFB\";\n    src: url(\"font/AgencyFB.woff\") format(\"woff\");\n}\nh1, h2, h3, h4 {\n    color: #355A9F;\n}\nnav {\n    position: fixed;\n    top: 0;\n    left: 0;\n    height: 50px;\n    z-index: 10;\n    width: 100%;\n    display: flex;\n    justify-content: flex-end;\n    background-color: #355A9F;\n}\n.title, .nav-item {\n    font-size: 20px;\n    font-family: \"AgencyFB\", sans-serif;;\n    font-weight: normal;\n    color: #FEFEFE;\n}\n.title {\n    position: fixed;\n    top: 10px;\n    left: 20px;\n}\n.nav-item {\n    width: 60px;\n    height: 50px;\n    text-align: center;\n    line-height: 50px;\n    vertical-align: middle;\n    cursor: pointer;\n}\n.nav-item.active {\n    border-bottom: 4px #FEFEFE solid;\n}\n\u003c/style\u003e\n\n\n# FlyLog\n前端 AOP 跨屏日志及性能分析工具。\n\n* 实时推送页面调试及报错日志\n* 记录页面加载性能信息\n* 提供面向切面风格的 API，可无侵入地为页面添加调试等信息\n\n\n## Demo\n打开 \u003ca href=\"/\" target=\"_blank\"\u003eFlyLog Admin\u003c/a\u003e 即可查看引入 FlyLog 后本页面实时的调试和报错信息。刷新本页即可查看页面加载速度。控制台的原始输出不受影响。可点击下方按钮触发日志和报错事件：\n\n\u003cbutton onclick=\"console.log(1)\"\u003econsole.log(1)\u003c/button\u003e\n\u003cbutton onclick=\"console.log(2)\"\u003econsole.log(2)\u003c/button\u003e\n\u003cbutton onclick=\"console.log('foo', 2, 3)\"\u003econsole.log('foo', 2, 3)\u003c/button\u003e\n\u003cbutton onclick=\"refErr()\"\u003eRef Error\u003c/button\u003e\n\u003cbutton onclick=\"typeErr()\"\u003eType Error\u003c/button\u003e\n\u003cbutton onclick=\"syntaxErr(\"\u003eSyntax Error\u003c/button\u003e\n\n\u003cscript src=\"js/demo-1.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"js/demo-2.js\"\u003e\u003c/script\u003e\n\u003cscript crossorigin id=\"fly-echo\" src=\"/flyEcho.min.js\"\u003e\u003c/script\u003e\n\n在 iOS 和 Android 设备上打开本页，触发的调试信息均可推送到 Admin 后台。引入 FlyLog 的页面同时被多人访问时，所有页面触发的消息都会广播到每个 Admin 后台上。跨域不影响 FlyLog 的数据上报。\n\n\n## 安装\n安装 [Node.js](https://nodejs.org/) 后，执行以下命令即可：\n\n``` text\nnpm install -g flylog\n```\n\n## 使用\n启动 flylog 服务端（默认监听 3000 端口，支持 `flylog 2333` 更改端口号）后\n\n``` text\nflylog\n```\n\n在所需调试的页面尾部引入如下脚本即可，端口号和地址需替换为实际值，注意脚本需由 flylog 服务器所在位置引入，保存脚本到本地后导入脚本是无法正确上报数据的：\n\n``` html\n\u003cscript crossorigin id=\"fly-echo\" src=\"http://localhost:3000/flyEcho.min.js\"\u003e\u003c/script\u003e\n```\n\n\n## API\nFlyLog 提供的 `before` 和 `after` API 可在不修改原有代码的前提下，为函数添加调试等功能。\n\n### before\n`before` 可将自定义代码 Hook 到函数执行前执行：\n\n``` js\n// 原有代码\nfunction foo(x) {\n    console.log(x);\n}\n\n// 挂载 before 事件\nfoo = foo.before(function(x) {\n    console.log(x + 1);\n});\n\n// 在点击等事件触发 foo 时先执行 before 再执行 foo\nfoo(1); // 2 1\n```\n\n若要阻止原函数执行，在注入的匿名函数内返回 `false` 即可：\n\n``` js\n// 对象方法同样可 Hook\nvar foo = {\n    bar: function(x) {\n        console.log(x);\n    }\n}\n\nfoo.bar = foo.bar.before(function(x) {\n    console.log(x + 1);\n    // 可在调试时按需阻止原函数执行\n    if (x == 1) {\n        return false;\n    }\n});\n\nfoo.bar(1); // 2\nfoo.bar(2); // 3 2\n```\n\n### after\n`after` 可将自定义代码 Hook 到函数执行完成后执行：\n\n``` js\nwindow.onload = (window.onload || function() {}).after(function() {\n    alert(1);\n});\n```\n\n`flyEcho.js` 中即应用了上例以实现在 `window.onload` 加载完成后上报性能数据。类似地，原函数返回 `false` 时可阻断 `after` 执行。\n\n\n## 架构\nFlyLog 分为三个独立的模块：\n\n* `flyEcho.js` 供待调试页面引入的 AOP 模块，无第三方依赖\n* `flyHub.js` 无状态的 Node.js WebSocket 服务端，允许跨域并提供基础的静态文件服务\n* `flyAdmin.js` 后台界面，基于 vue.js 组件开发，Gulp + Webpack 打包\n\n\n## 开发\n构建开发版本（构建前需清空 `dist` 目录）：\n\n``` text\ngulp build-dev\n```\n\n构建生产版本：\n\n``` text\ngulp build\n```\n\n\n## Changelog\n* `1.0.1` 修复 bundle 问题\n* `1.0.0` 初始版本\n\n\n## 许可\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Fflylog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodlewind%2Fflylog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Fflylog/lists"}