{"id":17965359,"url":"https://github.com/t2ym/thin-polymer","last_synced_at":"2026-01-17T07:27:55.680Z","repository":{"id":58228015,"uuid":"50404662","full_name":"t2ym/thin-polymer","owner":"t2ym","description":"Thin Polymer syntax for ES6","archived":false,"fork":false,"pushed_at":"2016-03-13T03:43:48.000Z","size":2397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-15T15:05:44.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t2ym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-26T05:03:59.000Z","updated_at":"2016-01-26T05:04:43.000Z","dependencies_parsed_at":"2022-08-31T06:51:29.005Z","dependency_job_id":null,"html_url":"https://github.com/t2ym/thin-polymer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/t2ym/thin-polymer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fthin-polymer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fthin-polymer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fthin-polymer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fthin-polymer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t2ym","download_url":"https://codeload.github.com/t2ym/thin-polymer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fthin-polymer/sbom","scorecard":{"id":864751,"data":{"date":"2025-08-11","repo":{"name":"github.com/t2ym/thin-polymer","commit":"1c2f88635f46dea9ea9898853edf4d6825f63094"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"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"}}]},"last_synced_at":"2025-08-24T02:22:26.845Z","repository_id":58228015,"created_at":"2025-08-24T02:22:26.846Z","updated_at":"2025-08-24T02:22:26.846Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":[],"created_at":"2024-10-29T12:41:54.394Z","updated_at":"2026-01-17T07:27:55.655Z","avatar_url":"https://github.com/t2ym.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thin-polymer\n\nThin Polymer syntax for ES6 (experimental)\n\n[Demo](https://t2ym.github.io/thin-polymer/components/thin-polymer/demo/) on GitHub Pages\n\n## Install\n\n```\n    bower install --save thin-polymer\n```\n\n## Import\n\n```html\n    \u003clink rel=\"import\" href=\"/path/to/bower_components/thin-polymer/thin-polymer.html\"\u003e\n```\n\n## Thinner Syntax\n\n### Pure ES5\n\nOmit `\u003cdom-module\u003e` and `Polymer()`\n\n```html\n    \u003ctemplate id=\"es5-element1\"\u003e\n      \u003cspan\u003e{{label}}\u003c/span\u003e\n    \u003c/template\u003e\n    \u003cscript\u003e\n    Prototype = {\n      is: 'es5-element1',\n      properties: {\n        label: {\n          type: String,\n          value: 'label'\n        }\n      },\n      attached: function () {\n        this.label = this.label.toUpperCase();\n      }\n    }\n    \u003c/script\u003e\n```\n\n### Partial ES6\n\nES6 template string for `template` property and ES6 shorthand method.\n\n```html\n    \u003cscript\u003e\n    Prototype = {\n      is: 'es5-element2',\n      template: `\n        \u003cspan\u003e{{label}}\u003c/span\u003e\n      `,\n      properties: {\n        label: {\n          type: String,\n          value: 'label'\n        }\n      },\n      attached () {\n        this.label = this.label.toUpperCase();\n      }\n    }\n    \u003c/script\u003e\n```\n\n### ES6 class with beforeRegister\n\nES6 class with beforeRegister() callback.\n\n```html\n    \u003ctemplate id=\"es6-element1\"\u003e\n      \u003cspan\u003e{{label}}\u003c/span\u003e\n    \u003c/template\u003e\n    \u003cscript\u003e\n    Prototype = class Es6Element1 {\n      beforeRegister () {\n        this.is = 'es6-element1';\n        this.properties = {\n          label: {\n            type: String,\n            value: 'label'\n          }\n        };\n      }\n      attached () {\n        this.label = this.label.toUpperCase();\n      }\n    }\n    \u003c/script\u003e\n```\n\n### ES6 class with constructor\n\nES6 class with initialization at constructor.\nAutomatic un-camel-casing from class name.\n\n```html\n    \u003cscript\u003e\n    'use strict';\n\n    Prototype = class Es6Element2 {\n      constructor () {\n        this.template = `\n          \u003cspan\u003e{{label}}\u003c/span\u003e\n        `;\n        this.properties = {\n          label: {\n            type: String,\n            value: 'label'\n          }\n        };\n      }\n      attached () {\n        this.label = this.label.toUpperCase();\n      }\n    }\n    \u003c/script\u003e\n```\n\n### ES7 class property\n\nES7 class properties for initialization.\n\n```html\n    \u003cscript\u003e\n    // Babel tranpilation required\n    Prototype = class Es7Element2 {\n      template = `\n        \u003cspan\u003e{{label}}\u003c/span\u003e\n      `;\n      properties = {\n        label: {\n          type: String,\n          value: 'label'\n        }\n      };\n      attached () {\n        this.label = this.label.toUpperCase();\n      }\n    }\n    \u003c/script\u003e\n```\n\n### Equivalent ES5 Polymer syntax\n\n```html\n    \u003cdom-module id=\"es5-element\"\u003e\n      \u003ctemplate\u003e\n        \u003cspan\u003e{{label}}\u003c/span\u003e\n      \u003c/template\u003e\n      \u003cscript\u003e\n      Polymer({\n        is: 'es5-element',\n        properties: {\n          label: {\n            type: String,\n            value: 'label'\n          }\n        },\n        attached: function () {\n          this.label = this.label.toUpperCase();\n        }\n      });\n      \u003c/script\u003e\n    \u003c/dom-module\u003e\n```\n\n## Compatibility\n\n- Release 0.0.5 Compatibility Table\n\nBabel Transpilation:\n\n| Browser          | Pure ES5   | Partial ES6 | ES6 class | ES6 constructor | ES7 property |\n|:-----------------|:-----------|:------------|:----------|:----------------|:-------------|\n| Chrome 48        | Run        | Run         | Run       | Run             | Run          |\n| Microsoft Edge   | Run        | Run         | Run       | Run             | Run          |\n| IE 11            | Run        | Run         | Run       | Run             | Run          |\n| Firefox 44       | Run        | Run         | Run       | Run             | Run          |\n| Safari 9         | Run        | Run         | Run       | Run             | Run          |   \n| Mobile Chrome 48 | Run        | Run         | Run       | Run             | Run          |\n\nNative:\n\n| Browser          | Pure ES5   | Partial ES6 | ES6 class | ES6 constructor | ES7 property |\n|:-----------------|:-----------|:------------|:----------|:----------------|:-------------|\n| Chrome 48        | Run        | Run         | Run       | Run             | Not Run      |\n| Microsoft Edge   | Run        | Run         | Not Run   | Not Run         | Not Run      |\n| IE 11            | Run        | Not Run     | Not Run   | Not Run         | Not Run      |\n| Firefox 44       | Run        | Run         | Not Run   | Not Run         | Not Run      |\n| Safari 9         | Run        | Run         | Run       | Run             | Not Run      |   \n| Mobile Chrome 48 | Run        | Run         | Run       | Run             | Not Run      |\n\n- Importing\n\nBrowsers with HTML Import polyfill, that is, non-Chrome browsers, have to wrap \n`\u003cscript src=\"\"\u003e\u003c/script\u003e` by HTML import so that thin-polymer is loaded before\nthe scripts.\n\n## Demo Transpilation by Babel\n\n```\n    npm install \u0026\u0026 bower install\n    # Source demo/native/; Dest demo/babel/\n    gulp demo\n```\n\n## License\n\n[BSD-2-Clause](https://github.com/t2ym/thin-polymer/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2ym%2Fthin-polymer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft2ym%2Fthin-polymer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2ym%2Fthin-polymer/lists"}