{"id":20285632,"url":"https://github.com/marcisbee/radi-router","last_synced_at":"2025-07-12T14:39:49.597Z","repository":{"id":57332515,"uuid":"121232093","full_name":"Marcisbee/radi-router","owner":"Marcisbee","description":"The official router for Radi.js.","archived":false,"fork":false,"pushed_at":"2023-04-05T09:13:25.000Z","size":229,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T06:50:31.226Z","etag":null,"topics":["javascript","radi","radi-router","router"],"latest_commit_sha":null,"homepage":"","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/Marcisbee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-12T10:23:40.000Z","updated_at":"2023-08-28T17:20:58.000Z","dependencies_parsed_at":"2024-10-24T02:57:11.684Z","dependency_job_id":null,"html_url":"https://github.com/Marcisbee/radi-router","commit_stats":null,"previous_names":["radi-js/radi-router"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fradi-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fradi-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fradi-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fradi-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcisbee","download_url":"https://codeload.github.com/Marcisbee/radi-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362334,"owners_count":21091098,"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","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","radi","radi-router","router"],"created_at":"2024-11-14T14:27:57.993Z","updated_at":"2025-04-11T08:40:20.484Z","avatar_url":"https://github.com/Marcisbee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radi-router\n\n`radi-router` is the official router for [Radi.js](https://radi.js.org). It deeply integrates with Radi for seamless application building.\n\n[![npm version](https://img.shields.io/npm/v/radi-router.svg?style=flat-square)](https://www.npmjs.com/package/radi-router)\n[![npm downloads](https://img.shields.io/npm/dm/radi-router.svg?style=flat-square)](https://www.npmjs.com/package/radi-router)\n[![gzip bundle size](http://img.badgesize.io/https://unpkg.com/radi-router@0.1.1/dist/radi-router.min.js?compression=gzip\u0026style=flat-square)](https://unpkg.com/radi-router@0.1.1/dist/radi-router.js)\n[![discord](https://dcbadge.vercel.app/api/server/a62gfaDW2e?style=flat-square)](https://discord.gg/a62gfaDW2e)\n\n\n## Installation\n\nTo install the stable version:\n\n```\nnpm install --save radi-router\n```\n\nThis assumes you are using [npm](https://www.npmjs.com/) as your package manager.  \n\nIf you're not, you can [access these files on unpkg](https://unpkg.com/radi-router/dist/), download them, or point your package manager to them.\n\n#### Browser Compatibility\n\n`radi-router` currently is compatible with browsers that support ES6. In stable release v1 it will support ES5 compatible browsers and even some below that, yes - looking at IE8 too.\n\n## Documentation\n\nDocumentation is currently being written. For now just a few examples to work our appetite.\n\n#### Foo bar routing example\n\n```jsx\n/** @jsx r **/\nimport { r, use, mount, component } from 'radi'\nimport router from 'radi-router'\n\nconst index = component({\n  view: function() { return \u003ch1\u003eIndex\u003c/h1\u003e }\n});\n\nconst foo = component({\n  view: function() { return \u003ch1\u003eFoo\u003c/h1\u003e }\n});\n\nconst RouterComponent = use({\n  routes: {\n    '/': index,\n    '/foo': foo\n  }\n})\n\nmount((\n  \u003cdiv\u003e\n    \u003ca href=\"#/\"\u003eindex\u003c/a\u003e\n    \u003ca href=\"#/foo\"\u003efoo\u003c/a\u003e\n    \u003cdiv\u003e\n      { new RouterComponent() }\n    \u003c/div\u003e\n  \u003c/div\u003e\n), document.body);\n```\n\n\u003c!-- [View this example on codepen](https://codepen.io/Marcisbee/pen/MQmOWG?editors=0010) --\u003e\n\n\u003c!-- ## Changelog\n\nDetailed changes for each release are documented in the [release notes](https://github.com/radi-js/radi/releases). --\u003e\n\n## Stay In Touch\n\n- [Twitter](https://twitter.com/radi_js)\n- [Slack](https://join.slack.com/t/radijs/shared_invite/enQtMjk3NTE2NjYxMTI2LWFmMTM5NTgwZDI5NmFlYzMzYmMxZjBhMGY0MGM2MzY5NmExY2Y0ODBjNDNmYjYxZWYxMjEyNjJhNjA5OTJjNzQ)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, Marcis (Marcisbee) Bergmanis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fradi-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcisbee%2Fradi-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fradi-router/lists"}