{"id":23817970,"url":"https://github.com/lsongdev/fre-routes","last_synced_at":"2025-10-29T11:26:20.953Z","repository":{"id":57241512,"uuid":"217290560","full_name":"lsongdev/fre-routes","owner":"lsongdev","description":"📍 simple routes for fre","archived":false,"fork":false,"pushed_at":"2019-10-24T12:20:31.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T22:23:40.987Z","etag":null,"topics":["fre","fre-routes"],"latest_commit_sha":null,"homepage":"https://npmjs.org/fre-routes","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/lsongdev.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":"2019-10-24T12:12:07.000Z","updated_at":"2019-11-08T05:05:01.000Z","dependencies_parsed_at":"2022-09-07T23:13:22.272Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/fre-routes","commit_stats":null,"previous_names":["song940/fre-router","lsongdev/fre-routes","song940/fre-routes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ffre-routes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ffre-routes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ffre-routes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ffre-routes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/fre-routes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093154,"owners_count":19746780,"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":["fre","fre-routes"],"created_at":"2025-01-02T05:49:12.912Z","updated_at":"2025-10-29T11:26:15.907Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## fre-routes\n\n\u003e simple routes for fre\n\n[![fre-routes](https://img.shields.io/npm/v/fre-routes.svg)](https://npmjs.org/fre-routes)\n\n### Installation\n\n```bash\n$ npm install fre-routes\n```\n\n### Example\n\n```js\nimport { h, render } from 'fre'\nimport { useRoutes, push } from 'fre-routes';\n\nconst routes = {\n  '/': () =\u003e (\n    \u003cdiv\u003e\n      \u003cp\u003ehome\u003c/p\u003e\n      \u003cbutton onClick={() =\u003e push('/home/jack')}\u003eGo jack\u003c/button\u003e\n    \u003c/div\u003e\n  ),\n  '/home/:id': ({ id }) =\u003e (\n    \u003cdiv\u003e\n      \u003cp\u003e{id}\u003c/p\u003e\n      \u003cbutton onClick={() =\u003e push('/')}\u003eGo home\u003c/button\u003e\n    \u003c/div\u003e\n  ),\n}\n\nconst App = () =\u003e useRoutes(routes)\n\nrender(\u003cApp /\u003e, document.getElementById('root'))\n```\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\nThis work is licensed under the [MIT license](./LICENSE).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ffre-routes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Ffre-routes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ffre-routes/lists"}