{"id":26600868,"url":"https://github.com/jasonrbriggs/proton","last_synced_at":"2025-10-15T19:37:05.963Z","repository":{"id":6938704,"uuid":"8190193","full_name":"jasonrbriggs/proton","owner":"jasonrbriggs","description":"Proton is a simple, \"code-less\" engine for xml/xhtml templates. Code-less, because it uses 3 types of ID (attribute) in a template file, rather than snippets of code — this moves the complexity out of the template and into the application.","archived":false,"fork":false,"pushed_at":"2022-07-10T20:07:53.000Z","size":276,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T09:14:21.157Z","etag":null,"topics":["haskell","java","nim","python"],"latest_commit_sha":null,"homepage":null,"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/jasonrbriggs.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":"2013-02-13T23:30:37.000Z","updated_at":"2024-03-15T02:04:39.000Z","dependencies_parsed_at":"2022-08-20T10:11:07.016Z","dependency_job_id":null,"html_url":"https://github.com/jasonrbriggs/proton","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasonrbriggs/proton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonrbriggs%2Fproton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonrbriggs%2Fproton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonrbriggs%2Fproton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonrbriggs%2Fproton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonrbriggs","download_url":"https://codeload.github.com/jasonrbriggs/proton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonrbriggs%2Fproton/sbom","scorecard":{"id":507563,"data":{"date":"2025-08-11","repo":{"name":"github.com/jasonrbriggs/proton","commit":"4871c09124fe0dcb7efaafa02dd6490341667289"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/23 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":7,"reason":"binaries present in source code","details":["Warn: binary detected: java/repo/com/google/code/proton-te/proton/0.1/proton-0.1.jar:1","Warn: binary detected: java/repo/com/google/code/proton-te/proton/0.2/proton-0.2.jar:1","Warn: binary detected: java/repo/com/google/code/proton-te/proton/0.3/proton-0.3.jar:1"],"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":"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":"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":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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9339-86wc-4qgf","Warn: Project is vulnerable to: GHSA-334p-wv2m-w3vp","Warn: Project is vulnerable to: GHSA-7j4h-8wpf-rqfh","Warn: Project is vulnerable to: GHSA-h65f-jvqw-m9fj","Warn: Project is vulnerable to: GHSA-vmqm-g3vh-847m","Warn: Project is vulnerable to: GHSA-w4jq-qh47-hvjq"],"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-19T23:38:07.994Z","repository_id":6938704,"created_at":"2025-08-19T23:38:07.994Z","updated_at":"2025-08-19T23:38:07.994Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279107922,"owners_count":26105404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["haskell","java","nim","python"],"created_at":"2025-03-23T18:35:50.309Z","updated_at":"2025-10-15T19:37:05.927Z","avatar_url":"https://github.com/jasonrbriggs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"proton\n======\n\nProton is a simple, \"code-less\" engine for xml/xhtml templates. Code-less, because it uses 3 types of ID (attribute) in a template file, rather than snippets of code — this moves the complexity out of the template and into the application.\n\nA simple Proton template looks like this:\n\n    \u003chtml\u003e\n        \u003chead\u003e\n            \u003ctitle eid=\"title\"\u003ePAGE TITLE\u003c/title\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\n            \u003ch1 eid=\"title\"\u003ePAGE TITLE\u003c/h1\u003e\n\n            \u003cp\u003e\u003ca eid=\"link\" aid=\"link\" href=\"\"\u003eLINK ITEM\u003c/a\u003e\u003c/p\u003e\n\n            \u003cul\u003e\n                \u003cli rid=\"list-item\" eid=\"list-item\"\u003eLIST ITEMS\u003c/li\u003e\n            \u003c/ul\u003e\n        \u003c/body\u003e\n    \u003c/html\u003e\n\nAnd to render this template in Python, you might do something like this:\n\n    from proton import template\n    tmp = template.get_template('test.xhtml')\n\n    tmp.set_value('title', 'An Xhtml Page', '*')\n    tmp.set_value('link', 'This is a link to Google')\n    tmp.set_attribute('link', 'href', 'http://www.google.com')\n\n    tmp.repeat('list-item', 5)\n    for x in range(0, 5):\n        tmp.set_value('list-item', 'test%s' % x, x)\n\n    print(str(tmp))\n    \nResulting in the following output:\n\n    \u003chtml\u003e\n        \u003chead\u003e\n            \u003ctitle\u003eAn Xhtml Page\u003c/title\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\n            \u003ch1\u003eAn Xhtml Page\u003c/h1\u003e\n\n            \u003cp\u003e\u003ca href=\"http://www.google.com\"\u003eThis is a link to Google\u003c/a\u003e\u003c/p\u003e\n\n            \u003cul\u003e\n                \u003cli\u003etest0\u003c/li\u003e\n                \u003cli\u003etest1\u003c/li\u003e\n                \u003cli\u003etest2\u003c/li\u003e\n                \u003cli\u003etest3\u003c/li\u003e\n                \u003cli\u003etest4\u003c/li\u003e\n            \u003c/ul\u003e\n        \u003c/body\u003e\n    \u003c/html\u003e\n\nSimilarly in Haskell, you could do the following:\n\n    tmps \u003c- loadTemplates \"templates\"\n    tmp \u003c- getTemplate tmps \"templates/test.xhtml\"\n    tmp \u003c- setElementValue tmp \"title\" \"An Xhtml Page\" 0\n    tmp \u003c- setElementValue tmp \"link\" \"This is a link to Google\" 0\n    tmp \u003c- setAttributeValue tmp \"link\" \"href\" \"http://www.google.com\" 0\n    tmp \u003c- setElementValues tmp \"list-item\" (map (\\x -\u003e \"test\" ++ (show x)) [0..4])\n    \n    s \u003c- renderTemplate tmp\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonrbriggs%2Fproton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonrbriggs%2Fproton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonrbriggs%2Fproton/lists"}