{"id":21167103,"url":"https://github.com/exalt/exalt-router","last_synced_at":"2026-02-27T05:04:58.655Z","repository":{"id":51081163,"uuid":"353445232","full_name":"exalt/exalt-router","owner":"exalt","description":"A simple client side router for exalt apps","archived":false,"fork":false,"pushed_at":"2021-10-02T23:30:10.000Z","size":229,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T05:27:12.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exalt.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":"2021-03-31T17:58:02.000Z","updated_at":"2024-11-16T08:56:14.000Z","dependencies_parsed_at":"2022-09-05T13:31:26.045Z","dependency_job_id":null,"html_url":"https://github.com/exalt/exalt-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exalt/exalt-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exalt%2Fexalt-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exalt%2Fexalt-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exalt%2Fexalt-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exalt%2Fexalt-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exalt","download_url":"https://codeload.github.com/exalt/exalt-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exalt%2Fexalt-router/sbom","scorecard":{"id":387564,"data":{"date":"2025-08-11","repo":{"name":"github.com/exalt/exalt-router","commit":"3b6b4943ab4ec40f785acc69fe1c74cf8160ff54"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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 1/29 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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"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":10,"reason":"no dangerous workflow patterns detected","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":"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":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/exalt/exalt-router/nodejs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/exalt/exalt-router/nodejs.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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 2 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-18T17:00:51.466Z","repository_id":51081163,"created_at":"2025-08-18T17:00:51.466Z","updated_at":"2025-08-18T17:00:51.466Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278580092,"owners_count":26010179,"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-06T02:00:05.630Z","response_time":65,"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":[],"created_at":"2024-11-20T14:59:33.505Z","updated_at":"2025-10-06T08:40:48.979Z","avatar_url":"https://github.com/exalt.png","language":"JavaScript","funding_links":["https://www.patreon.com/outwalkstudios"],"categories":[],"sub_categories":[],"readme":"# Exalt Router\n\nA simple client side router for exalt apps.\n\n![Actions](https://github.com/exalt/exalt-router/workflows/build/badge.svg)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/exalt/exalt-router/blob/main/LICENSE)\n[![Donate](https://img.shields.io/badge/patreon-donate-green.svg)](https://www.patreon.com/outwalkstudios)\n[![Follow Us](https://img.shields.io/badge/follow-on%20twitter-4AA1EC.svg)](https://twitter.com/exaltjs)\n\n---\n\n## Installation\n\nYou can install @exalt/router using npm:\n\n```\nnpm install @exalt/router\n```\n\n---\n\n## Getting Started\n\n@exalt/router comes with 3 components to handle client side routing.\n\n- exalt-router\n- exalt-route\n- exalt-link\n- exalt-redirect\n\n### Exalt Router\n\nThe exalt-router component is used to handle all the routing.\nIt parses the routes behehind the scenes and will use push state routing by default.\nIf you want to use hash routing, you can set the hash attribute to enable it.\n\nIf you want to programatically change the route, ExaltRouter exposes a static navigate method.\n\n```js\nimport { ExaltRouter } from \"@exalt/router\";\n\nExaltRouter.navigate(\"/about\");\n```\n\n### Exalt Route\n\nThe exalt-route component is used to define a route and assign a component to it.\nIt takes two attributes, `url` and `component`.\n\nParameters are path fragments that are prefixed with a colon and if you want the parameter to be optional you can end it with a question mark. Any route parameters get passed as attributes on the rendered component.\n\nWhen defining a default route to render if there is no match, just omit the url attribute.\n\nWhen you want to split the bundle at the route level, you can add an `onresolve` event.\n```js\nhtml`\u003cexalt-route url=\"/\" component=\"home-page\" onresolve=${() =\u003e import(\"@pages/home-page\")} /\u003e`\n```\n\n**Example**\n```html\n\u003cexalt-router\u003e\n    \u003cexalt-route url=\"/\" component=\"home-page\" /\u003e\n    \u003cexalt-route url=\"/about\" component=\"about-page\" /\u003e\n    \u003cexalt-route url=\"/about/:topic?\" component=\"about-page\" /\u003e\n    \u003cexalt-route component=\"not-found\" /\u003e\n\u003c/exalt-router\u003e\n```\n\n### Exalt Link\n\nThe exalt-link component is used to wrap an anchor tag and change its default behavior to use client side routing.\nThis ensures that in server side rendered environments the routing still works without JavaScript.\nThe exalt-link component only takes a `url` attribute which is passed as an href attribute to the child anchor tag.\n\n**Example**\n```html\n\u003cexalt-link url=\"/about\"\u003e\n    \u003ca\u003eAbout\u003ca\u003e\n\u003c/exalt-link\u003e\n```\n\nThe anchor tag does not need to be a direct child of the exalt-link component, the component will just grab the first anchor tag it finds and enable client side rendering on it.\n\n### Exalt Redirect\n\nThe exalt-redirect component is used to conditionally redirect to another page or website.\nAs soon as the component is rendered it will determine how to redirect based on the url attribute and then the page will be redirected.\n\n**Example**\n```html\n\u003cexalt-redirect url=\"/redirect-route\" /\u003e\n```\n\n---\n\n## Reporting Issues\n\nIf you are having trouble getting something to work with exalt or run into any problems, you can create a new [issue](https://github.com/exalt/exalt-router/issues).\n\nIf this framework does not fit your needs or is missing a feature you would like to see, let us know! We would greatly appreciate your feedback on it.\n\n---\n\n## License\n\nExalt Router is licensed under the terms of the [**MIT**](https://github.com/exalt/exalt-router/blob/main/LICENSE) license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexalt%2Fexalt-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexalt%2Fexalt-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexalt%2Fexalt-router/lists"}