{"id":22311482,"url":"https://github.com/vilicvane/routra","last_synced_at":"2026-05-02T15:32:33.167Z","repository":{"id":57748767,"uuid":"523514089","full_name":"vilicvane/routra","owner":"vilicvane","description":"Just another state router with transition support.","archived":false,"fork":false,"pushed_at":"2025-03-22T21:35:14.000Z","size":663,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T22:20:43.445Z","etag":null,"topics":["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/vilicvane.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":"2022-08-10T22:28:49.000Z","updated_at":"2025-03-22T21:35:18.000Z","dependencies_parsed_at":"2022-08-27T00:21:29.551Z","dependency_job_id":"bddc35ab-3e1e-4b8e-b948-89c57c8cf60e","html_url":"https://github.com/vilicvane/routra","commit_stats":{"total_commits":113,"total_committers":2,"mean_commits":56.5,"dds":0.03539823008849563,"last_synced_commit":"c299251b647a796f82cc6aec1a1ae318a7863896"},"previous_names":["vilic/pile-em-up","vilicvane/routra","vilic/routra"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vilicvane%2Froutra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vilicvane%2Froutra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vilicvane%2Froutra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vilicvane%2Froutra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vilicvane","download_url":"https://codeload.github.com/vilicvane/routra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245573891,"owners_count":20637674,"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":["react-router","router"],"created_at":"2024-12-03T21:19:45.510Z","updated_at":"2026-05-02T15:32:33.161Z","avatar_url":"https://github.com/vilicvane.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT License](https://img.shields.io/badge/license-MIT-999999?style=flat-square)](./LICENSE)\n\n\u003ch1 align=\"center\"\u003eRoutra\u003c/h1\u003e\n\u003cp align=\"center\"\u003eJust another state router with transition support.\u003c/p\u003e\n\n## Documentation\n\nSee [DeepWiki](https://deepwiki.com/vilicvane/routra).\n\n## Installation\n\n```bash\nnpm install routra routra-react\n```\n\n## Usage\n\n```tsx\nimport {routra} from 'routra';\nimport {Route} from 'routra-react';\n\nconst router = routra({\n  user: {\n    profile: true,\n    settings: true,\n  },\n});\n\nconst App = () =\u003e {\n  return (\n    \u003c\u003e\n      \u003cRoute view={router.user.profile.$view()} component={UserProfileView} /\u003e\n      \u003cRoute view={router.user.settings.$view()} component={UserSettingsView} /\u003e\n\n      \u003cRoute\n        view={routra.$view([router.user.profile, router.user.settings], {\n          single: true,\n        })}\n        component={UserNavBarView}\n      /\u003e\n    \u003c/\u003e\n  );\n};\n```\n\n```tsx\nimport classNames from 'classnames';\nimport {useEffect} from 'react';\nimport styled from 'styled-components';\n\nconst View = styled.div`\n  \u0026.entering {\n    animation: ...;\n  }\n\n  \u0026.leaving {\n    animation: ...;\n  }\n`;\n\nconst UserProfileView = ({view, transition}) =\u003e {\n  useEffect(() =\u003e {\n    view.$transition({\n      entering: true,\n      leaving: true,\n    });\n  }, [view]);\n\n  return (\n    \u003cView\n      className={classNames({\n        entering: view.$entering,\n        leaving: view.$leaving,\n      })}\n      {...transition.events}\n    \u003e\n      ...\n    \u003c/View\u003e\n  );\n};\n```\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilicvane%2Froutra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvilicvane%2Froutra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilicvane%2Froutra/lists"}