{"id":30809403,"url":"https://github.com/bearstudio/astro-typed-routes","last_synced_at":"2025-09-06T04:08:40.072Z","repository":{"id":313422869,"uuid":"1050982133","full_name":"BearStudio/astro-typed-routes","owner":"BearStudio","description":"Astro integration to build a typed routes object","archived":false,"fork":false,"pushed_at":"2025-09-05T22:42:11.000Z","size":270,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T00:22:48.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BearStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T08:54:20.000Z","updated_at":"2025-09-05T22:42:15.000Z","dependencies_parsed_at":"2025-09-06T00:22:53.694Z","dependency_job_id":"9d898665-dfb1-4347-aa89-1c811104c026","html_url":"https://github.com/BearStudio/astro-typed-routes","commit_stats":null,"previous_names":["bearstudio/astro-typed-routes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BearStudio/astro-typed-routes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BearStudio%2Fastro-typed-routes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BearStudio%2Fastro-typed-routes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BearStudio%2Fastro-typed-routes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BearStudio%2Fastro-typed-routes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BearStudio","download_url":"https://codeload.github.com/BearStudio/astro-typed-routes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BearStudio%2Fastro-typed-routes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273855014,"owners_count":25180064,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-06T04:08:38.069Z","updated_at":"2025-09-06T04:08:40.052Z","avatar_url":"https://github.com/BearStudio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Astro Typed Routes\n\nThis Astro integration helps you generating a typed ROUTES object that you can\nuse with [lunalink](https://github.com/BearStudio/lunalink) so you can enjoy\nfully typed routes in all your Astro project, avoiding wrong parameters and 404\npages.\n\n## Installation\n\n### Automatic Integration Setup\n\nYou can install the integration through `astro add` command so it automatically\ninstall the package and configure your `astro.config.mjs` for you.\n\n```sh\npnpm astro add @bearstudio/astro-typed-routes\n```\n\n### Manual Installation\n\n```sh\npnpm add @bearstudio/astro-typed-routes\n```\n\n```diff\nimport { defineConfig } from 'astro/config';\n+import typedRoutes from \"@bearstudio/astro-typed-routes\";\n\nexport default defineConfig({\n  integrations: [\n+    typedRoutes(),\n  ]\n});\n```\n\n## Usage\n\nThis integration automatically generate a `./src/routes.gen.ts` file in your\nproject when you add or remove a file from the `./src/pages` folder.\n\nThen, use the exported const `ROUTES` in your project with\n[lunalink](https://github.com/BearStudio/lunalink) for path with params.\n\n```index.astro\n---\nimport {lunalink } from \"@bearstudio/lunalink\"\nimport { ROUTES } from \"../routes.gen\";\n---\n\n\u003ca href={lunalink(ROUTES.about.__path, {})}\u003e\n  About\n\u003c/a\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearstudio%2Fastro-typed-routes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearstudio%2Fastro-typed-routes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearstudio%2Fastro-typed-routes/lists"}