{"id":36420316,"url":"https://github.com/tim-zh/photon-paw","last_synced_at":"2026-01-11T17:06:21.882Z","repository":{"id":34837060,"uuid":"141590635","full_name":"tim-zh/photon-paw","owner":"tim-zh","description":"An easy and convenient lib to add HTML-based UI to a console app","archived":false,"fork":false,"pushed_at":"2023-04-13T17:19:50.000Z","size":68,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T15:31:12.460Z","etag":null,"topics":["circleci","htmlunit","ui","undertow","web"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tim-zh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-19T14:23:50.000Z","updated_at":"2022-08-18T19:38:40.000Z","dependencies_parsed_at":"2022-09-09T16:10:47.693Z","dependency_job_id":null,"html_url":"https://github.com/tim-zh/photon-paw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tim-zh/photon-paw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-zh%2Fphoton-paw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-zh%2Fphoton-paw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-zh%2Fphoton-paw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-zh%2Fphoton-paw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-zh","download_url":"https://codeload.github.com/tim-zh/photon-paw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-zh%2Fphoton-paw/sbom","scorecard":{"id":885503,"data":{"date":"2025-08-11","repo":{"name":"github.com/tim-zh/photon-paw","commit":"4a852a84349cdeaf89969d653aa32de50ef6c01e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-cgp8-4m63-fhh5","Warn: Project is vulnerable to: GHSA-3jrv-jgp8-45v3","Warn: Project is vulnerable to: GHSA-9442-gm4v-r222","Warn: Project is vulnerable to: GHSA-9623-mqmm-5rcf","Warn: Project is vulnerable to: GHSA-97cq-f4jm-mv8h","Warn: Project is vulnerable to: GHSA-ch7q-gpff-h9hp","Warn: Project is vulnerable to: GHSA-m4mm-pg93-fv78","Warn: Project is vulnerable to: GHSA-pfcc-3g6r-8rg8","Warn: Project is vulnerable to: GHSA-v76w-3ph8-vm66","Warn: Project is vulnerable to: GHSA-w6qf-42m7-vh68","Warn: Project is vulnerable to: GHSA-xpp6-8r3j-ww43","Warn: Project is vulnerable to: GHSA-3xrr-7m6p-p7xh","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-599f-7c49-w659","Warn: Project is vulnerable to: GHSA-hmr7-m48g-48f6","Warn: Project is vulnerable to: GHSA-qh8g-58pp-2wxh","Warn: Project is vulnerable to: GHSA-7f88-5hhx-67m2","Warn: Project is vulnerable to: GHSA-9339-86wc-4qgf"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:52:29.217Z","repository_id":34837060,"created_at":"2025-08-24T09:52:29.217Z","updated_at":"2025-08-24T09:52:29.217Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["circleci","htmlunit","ui","undertow","web"],"created_at":"2026-01-11T17:06:21.824Z","updated_at":"2026-01-11T17:06:21.874Z","avatar_url":"https://github.com/tim-zh.png","language":"Java","readme":"# [PhotonPaw](http://timzh.net/photon-paw/)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.timzh/photon-paw/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.timzh/photon-paw)\n\n[![CircleCI](https://circleci.com/gh/tim-zh/photon-paw.svg?style=svg)](https://circleci.com/gh/tim-zh/photon-paw)\n\n#### Backend Example:\n```java\nnew net.timzh.photonpaw.PhotonPaw()\n    //optional, configure main port and websocket port\n    .ports(19081, 19082)\n\n    //set location of static resources if any, empty string to refer to jar resources\n    .resourcesRoot(\"\")\n\n    //add additional routes if static resources are not enough\n    .bindPath(\"/test\", request -\u003e UiHttpResponse.of(\"application/javascript\", \"alert('custom routing')\"))\n\n    //subscribe to events from ui by name\n    .handleCommand(\"a\", (msg, out) -\u003e System.out.println(\"command received\"))\n\n    //subscribe to requests from ui that expect some response\n    .handleQuery(\"b\", msg -\u003e \"server response\")\n\n    //subscribe to events with dynamic names\n    .defaultHandler((msg, out) -\u003e System.out.println(\"unknown event \" + msg))\n\n    //execute some code after establishing a connection with ui\n    .start(out -\u003e\n\n         //send an event to ui\n         out.send(\"b\", \"server command\")\n    )\n\n    .println(\"ui server started\")\n    .openBrowser(\"/index.html\")\n    .waitForTabToUnload()\n    .stop();\n```\n\n#### Frontend Example:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003cbody\u003e\n\u003cscript src=\"photonpaw_client.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nPhotonPaw\n    //subscribe to events from ui server by name\n    .handleCommand(\"a\", msg =\u003e alert(\"command received\"))\n\n    //subscribe to events with dynamic names\n    .defaultHandler((event, msg) =\u003e alert(\"unknown event \" + event + \" \" + msg))\n\n    //execute some code after establishing the connection with ui server\n    .start().then(() =\u003e {\n\n        //send an event to ui server\n        PhotonPaw.send(\"b\", \"ui command\");\n\n        //send a request to ui server and process the response\n        PhotonPaw.ask(\"c\", \"ui query\").then(response =\u003e alert(\"query response received\"));\n    });\n\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-zh%2Fphoton-paw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-zh%2Fphoton-paw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-zh%2Fphoton-paw/lists"}