{"id":15392521,"url":"https://github.com/vordgi/nimpl-router","last_synced_at":"2025-04-15T23:27:46.924Z","repository":{"id":246241575,"uuid":"819523236","full_name":"vordgi/nimpl-router","owner":"vordgi","description":"Edge router for next.js apps. Allows you to configure rewrites, redirects, i18n and basePath at the middleware level instead of next.config.js.","archived":false,"fork":false,"pushed_at":"2024-10-23T19:06:57.000Z","size":68,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T13:47:05.059Z","etag":null,"topics":["edge","i18n","middleware","nextjs","nextjs14"],"latest_commit_sha":null,"homepage":"https://nimpl.tech/docs/router","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/vordgi.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":"2024-06-24T17:15:57.000Z","updated_at":"2024-12-26T07:24:34.000Z","dependencies_parsed_at":"2024-10-19T00:14:27.283Z","dependency_job_id":"b065dc91-1b1b-4d43-9a9c-f20f22253e08","html_url":"https://github.com/vordgi/nimpl-router","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"b7b68f5eb8e4a7df12c91c7e0ca019a6cfb51ba3"},"previous_names":["vordgi/nimpl-router"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fnimpl-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fnimpl-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fnimpl-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fnimpl-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vordgi","download_url":"https://codeload.github.com/vordgi/nimpl-router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234883314,"owners_count":18901366,"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":["edge","i18n","middleware","nextjs","nextjs14"],"created_at":"2024-10-01T15:15:04.251Z","updated_at":"2025-01-21T02:07:36.738Z","avatar_url":"https://github.com/vordgi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nimpl/router\n\nEdge router for next.js apps. Allows you to configure rewrites, redirects, i18n and basePath at the middleware level instead of `next.config.js`\n\nVisit https://nimpl.tech/docs/router to view the full documentation.\n\n```js\nimport { createMiddleware } from \"@nimpl/router\";\n\nexport const middleware = createMiddleware({\n  redirects: [\n    {\n      source: \"/old\",\n      destination: \"/\",\n      permanent: false,\n    },\n  ],\n  rewrites: [\n    {\n      source: \"/home\",\n      destination: \"/\",\n      locale: false,\n    },\n  ],\n  basePath: \"/doc\",\n  i18n: {\n    defaultLocale: \"en\",\n    locales: [\"en\", \"de\"],\n  },\n});\n```\n\n## Installation\n\n**Using npm:**\n\n```bash\nnpm i @nimpl/router\n```\n\n**Using yarn:**\n\n```bash\nyarn add @nimpl/router\n```\n\n## Additional\n\nPlease consider giving a star if you like it, it shows that the package is useful and helps continue work on this and other packages.\n\nCreate issues with wishes, ideas, difficulties, etc. All of them will definitely be considered and thought over.\n\n## License\n\n[MIT](https://github.com/vordgi/nimpl-router/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvordgi%2Fnimpl-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvordgi%2Fnimpl-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvordgi%2Fnimpl-router/lists"}