{"id":25341769,"url":"https://github.com/realytics/react-router-magic","last_synced_at":"2025-08-16T13:43:39.157Z","repository":{"id":20885121,"uuid":"91183743","full_name":"Realytics/react-router-magic","owner":"Realytics","description":"Like react-router but with magic inside","archived":false,"fork":false,"pushed_at":"2023-01-12T06:55:08.000Z","size":412,"stargazers_count":2,"open_issues_count":34,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T21:54:23.027Z","etag":null,"topics":["magic","react","react-router","router"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Realytics.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":"2017-05-13T15:26:59.000Z","updated_at":"2023-01-31T16:49:53.000Z","dependencies_parsed_at":"2023-01-14T13:07:05.385Z","dependency_job_id":null,"html_url":"https://github.com/Realytics/react-router-magic","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Realytics%2Freact-router-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Realytics%2Freact-router-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Realytics%2Freact-router-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Realytics%2Freact-router-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Realytics","download_url":"https://codeload.github.com/Realytics/react-router-magic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238820431,"owners_count":19536178,"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":["magic","react","react-router","router"],"created_at":"2025-02-14T09:40:30.709Z","updated_at":"2025-02-14T09:40:31.826Z","avatar_url":"https://github.com/Realytics.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router Magic\n\u003e Like react-router but with magic inside\n\nYet another Router for React. It has an API similar to [react-router](https://github.com/ReactTraining/react-router) exept matching is not include and it use `context` to bypass SCU blocked update.\n\n## This package is not Production ready !\n\nThis package is under developement, do not use it in production. \n\n## Why this package\n\nThis package is highly inspired by `react-router` but it differ in two major way:\n- The `location` is passed via context even if `shouldComponentUpdate` is implemented : We use a subscribtion system to make sure all `Route` are updated when the `location` changes.\n- The path matching logic is not include : instead of manipulating paths as string like in `react-router`, `react-router-magic` expect a match function  `(location: Location, parentMatch: Match) =\u003e Result`. This mean you can use whatever logic you want to match paths. If you want something similar to what `react-router` does, you can use [path-pattern](https://github.com/Realytics/path-pattern).\n\n## Prerequisites\n\nYou need [NodeJS](https://nodejs.org/en/) and [NPM](https://www.npmjs.com/) or [Yarn](https://yarnpkg.com/en/).\n\n## Installing\n\n```bash\nnpm install react-router-magic --save\n```\n\nor\n\n```bash\nyarn add react-router-magic\n```\n\n## TODO\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [releases on this repository](https://github.com/Realytics/path-pattern/releases). \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealytics%2Freact-router-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealytics%2Freact-router-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealytics%2Freact-router-magic/lists"}