{"id":18269489,"url":"https://github.com/ergo/polymer-ui-router","last_synced_at":"2026-03-15T16:55:55.469Z","repository":{"id":57327142,"uuid":"76065205","full_name":"ergo/polymer-ui-router","owner":"ergo","description":"UI-router wrapper for Web Components","archived":false,"fork":false,"pushed_at":"2018-11-03T12:18:16.000Z","size":1097,"stargazers_count":22,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-21T13:46:28.189Z","etag":null,"topics":["javascript","polymer","router","routing","ui-router","webcomponents"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ergo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-12-09T19:45:05.000Z","updated_at":"2023-11-22T22:00:49.000Z","dependencies_parsed_at":"2022-08-31T04:22:49.805Z","dependency_job_id":null,"html_url":"https://github.com/ergo/polymer-ui-router","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ergo/polymer-ui-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergo%2Fpolymer-ui-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergo%2Fpolymer-ui-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergo%2Fpolymer-ui-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergo%2Fpolymer-ui-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ergo","download_url":"https://codeload.github.com/ergo/polymer-ui-router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ergo%2Fpolymer-ui-router/sbom","scorecard":{"id":379890,"data":{"date":"2025-08-11","repo":{"name":"github.com/ergo/polymer-ui-router","commit":"c1410dd2739273efd67f9a1683a236fabdd45a8b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":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"}}]},"last_synced_at":"2025-08-18T15:09:13.541Z","repository_id":57327142,"created_at":"2025-08-18T15:09:13.541Z","updated_at":"2025-08-18T15:09:13.541Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30547357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"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":["javascript","polymer","router","routing","ui-router","webcomponents"],"created_at":"2024-11-05T11:36:09.335Z","updated_at":"2026-03-15T16:55:55.450Z","avatar_url":"https://github.com/ergo.png","language":"JavaScript","funding_links":[],"categories":["Elements"],"sub_categories":["Routing"],"readme":"# \\\u003cpolymer-ui-router\\\u003e\n\n## UI Router Web Component wrapper (using minimal bits from Polymer 3.x base element)\n\nUse https://ui-router.github.io/core/docs/latest/ and https://ui-router.github.io/ \nFor general UI-Router documentation.\n\n**Demo page: https://www.webcomponents.org/element/ergo/polymer-ui-router**\n\nUI-Router is one of most popular routing solutions, \nwith ports for angular 1.x, 2.x+ and react - now also available for Web Components.\n\nUI-Router provides state based routing. Each feature of an application is defined as a state. One state is active at any time, and UI-Router manages the transitions between the states.\n\nEach state describes the URL, the UI (a view or views), data prerequisites, and other logical prerequisites (such as authentication) for a feature. Before activating a state, UI-Router first fetches any prerequisites (asynchronously), and then activates the view(s) and updates the URL.\n\nUI-Router states are hierarchical; states can be nested inside other states, forming a tree.\nChild states may inherit data and behavior (such as authentication) from their parent states.\n\nSome features of UI Router:\n\n* Hierarchical states both abstract and components based\n* States can be resolve *(including async)* and activate based on set prerequisites \n* Multiple views per state\n* Views can be nested inside other views\n* Transition and lifecycle API's\n\n## Example usage\n\n    let routerStates = [\n       {name: \"index_route\", url: \"/index\", component: \"index-comp\"},\n       {name: \"foo\", url: \"/foo\", component: \"foo-comp\"},\n       {name: \"arg\", url: \"/arg/:argumentId?:test\", component: \"arguments-comp\"},\n       {name: \"user\", url: \"/bar\", component: \"bar-comp\"},\n       {name: \"state_a\", parent: 'bar.baz', url: \"/a\", component: \"baz-a-comp\"},\n       {name: \"state_b\", parent: 'bar.baz', url: \"/b\", component: \"baz-b-comp\"}\n       ]\n    // top-level\n    \u003cuirouter-router id=\"ui-router\" states=\"[[routerStates]]\" auto-start\u003e\n    \u003c/uirouter-router\u003e\n    \n    // view level, generates A tags\n    \u003cuirouter-sref state=\"foo\" reload\u003eFoo (this restomps every click)\u003c/uirouter-sref\u003e\n    \u003cuirouter-sref state=\"arg\" param-argument-id=\"99\"\u003e\n        With arguments directly\n    \u003c/uirouter-sref\u003e\n    \n    // this injects new views based on router state, /index path will \n    // result in \u003cindex-comp/\u003e being stomped\n    \u003cuirouter-uiview\u003e\u003c/uirouter-uiview\u003e\n\n\n## Install the Polymer-CLI\n\nFirst, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. \n\nInstall bower and npm dependencies (quick way is `yarn bower`).\n\nThen run `yarn serve` to serve your application locally.\n\n## TIPS\n\nSet a `\u003cbase href=\"$path\"\u003e` tag in your index.html to let the router know the static/base part of your URL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergo%2Fpolymer-ui-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fergo%2Fpolymer-ui-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fergo%2Fpolymer-ui-router/lists"}