{"_id":"@abdallemo/routegen-client","_rev":"10-f99c9498d59a8b31705e8ab20e9eb0fc","name":"@abdallemo/routegen-client","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.0":{"name":"@abdallemo/routegen-client","version":"1.0.0","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.0.0","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"115e082621f35fa441e995fbf2ac099fedda5a58","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.0.0.tgz","fileCount":5,"integrity":"sha512-bNSLcSmmd+7jkvf0OPYeZYs8JX9Vu6wr0iFwZS6rHhfUSjvusaSvS1PMJbjq8/HxEqKkPisSq6sN6CTA03KvIQ==","signatures":[{"sig":"MEQCIA8F8nbK2ExJn8Q8UV3TkA5HnUfX9egrrbxCJNSDKghZAiA8g1j/A/R9j4aD9wynHG9aRJG4GW27VKujJ/pifX/jIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8308},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.11.0","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.0.0_1772779378763_0.186323804435101","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abdallemo/routegen-client","version":"1.0.1","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.0.1","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"c8d16bfd7cdbdd7e6721ddd0506a0355d38436d7","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.0.1.tgz","fileCount":5,"integrity":"sha512-GPvrG4e0WfbVIpTLWnrzlkWh+OivwlrMswWfUk6OBzgSxffdsJ/2/ZUXI/leWutHNraGOk8VXk5nC4LrPykAhQ==","signatures":[{"sig":"MEUCIG/FSMua5ZMPiZ8nhiw8Vmww+39bBufsG1I/A383xJlhAiEA3DJ82nzlFhaQL0FmqWaEL8DN9ZZ0k+HQWn7btjSGDY0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8308},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"4abcdb265db1ccfe7f576422489b621d32ababa0","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.11.0","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.0.1_1772786450885_0.29203736361204236","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@abdallemo/routegen-client","version":"1.0.2","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.0.2","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"7713b9712d7db4a689080f895e466a159ceae915","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.0.2.tgz","fileCount":9,"integrity":"sha512-02xUzb5YkfqGbJl9mSgKKT3QH+vxasQ8Wmogp9qCggEJ/+Ngn7XCzUy8xETpGMIhxP4NSGMi3jZJusODqPGbog==","signatures":[{"sig":"MEUCIQCuj8iP2CHKMI/oekBWod5wimvJoIHfSmd+f+GTohJHHgIgadUaT6RUHrOq8ubBjN/OL7r/yZh9Qwk4FXl/+Otp3to=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14226},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"221317d9ec39f5855bd67c94e6c1f2d4487c2e4c","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.7.0","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.0.2_1773299338611_0.1409370030773589","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@abdallemo/routegen-client","version":"1.1.0","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.0","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"8511caeca5e32f58eba28b09c74af729dceefcc7","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.0.tgz","fileCount":5,"integrity":"sha512-PA2MhtxB1ehe3C1FGzxP3CmOVcQf/c6wqrhLCx7KwLEv9hXI21D6gSiAVARTHZUKT+B9WFx5KDzqgDralOfmTg==","signatures":[{"sig":"MEYCIQDI1TD1308jyqZBoWzjXtecXEav/RpLF3BgqAnlluHAhQIhAKbR598IQ9N40ozK/9vOkKsH3S/WbSQw6fLmz7FYDRkg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9281},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"4abcdb265db1ccfe7f576422489b621d32ababa0","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.12.1","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.0_1775221132738_0.21575108861010261","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@abdallemo/routegen-client","version":"1.1.1","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.1","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"20d49b40b1b9b9f8441435e25f99865aa2ba6297","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.1.tgz","fileCount":5,"integrity":"sha512-s+EJNBI19pJH5Rge9oZORXj78C43gp3eUYAfTDnJnqND7FEYuzA3rUHGZcW3NfDY6Z3Uuhs8subO30CaEqGI0Q==","signatures":[{"sig":"MEYCIQDCXHZsTwKXkPxycH59l7ybfp2LhrS204Lg8bLm33Dk2QIhAO857KmypcQSnjufjp+lgXF1I43WQeldWUeHtxXOY+dd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9281},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"4abcdb265db1ccfe7f576422489b621d32ababa0","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.12.1","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.1_1775222435931_0.7426912997956658","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@abdallemo/routegen-client","version":"1.1.2","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.2","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"74448686c2b7360d1203ab1ed426d7e2f07f5b30","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.2.tgz","fileCount":9,"integrity":"sha512-aDxaqdR6CujaLAE3uJFrF2KkN7umsFzO5KoyQSDgtyZ91falRf6H8XgOfwhCWHMAQcr40tCQJg14uaDGlEVJmw==","signatures":[{"sig":"MEUCIDyuG8EfPbLlMi18zwGaVln44tl77kszNiQyrGi+LN9WAiEAgM95kgI+MeAk9g0qP7MvLsZnobjHCWe3Eadd6lY5Zs4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14226},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"de39fe1da4b9cfc19e50c56f360957d90b836e1d","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.12.1","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.2_1775223936957_0.1194753175733887","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@abdallemo/routegen-client","version":"1.1.3","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.3","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"4622fe23da6442445cd7784e7bcfe2b51d428b86","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.3.tgz","fileCount":9,"integrity":"sha512-L6OHPXYGBBHP/e9rTWj1lPbCZEkP8lzV+wMUrtgd5WQVBeeBwXxs/fov588/qVcQ3dtBwetO5JRP2pcFgPohug==","signatures":[{"sig":"MEUCIQCCUR8QJImuzgsqHWMfKudu0Waiw5nn3ojwOOl4IvN6qwIgR3YquT2CYJUDi0DuOPPiZYiuQtThUIGuktSri15IxzM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16664},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"3d7f5a60a8f21c00a5d0ad44b42b8e100a2be6e4","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.12.1","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.3_1775224709422_0.8545416704202611","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@abdallemo/routegen-client","version":"1.1.4","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.4","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"a19d1c090cf6e1cc8c0cc88a5a27079aad80a013","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.4.tgz","fileCount":10,"integrity":"sha512-5Sgmqvy44bw/mf2RnQYEF18cUJTjCq7PQPx22X4k8ntYiET/5/81sYS9QZ4QsmQuKYqyk78ghW1wN09+wHbiGQ==","signatures":[{"sig":"MEUCIFXyfR7f5L1b3xXiej3MJY0wYAp5fKZqbGPXXS64Y4A0AiEAyQfwuvH80uDvosGZqMhlYr+G7BlBWBkRkCF7r3gzato=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19953},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9b2674d2b81af3fe443aacddacae1334ad8faf00","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.7.0","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.4_1776034173361_0.5858205743261644","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@abdallemo/routegen-client","version":"1.1.5","keywords":["route-gen","go","typescript","api","client","axios"],"author":{"name":"Abdalle"},"license":"MIT","_id":"@abdallemo/routegen-client@1.1.5","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"homepage":"https://github.com/Abdallemo/go-route-gen#readme","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"dist":{"shasum":"367057120c37d0f78f44821d79fca69034b3e2cc","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.5.tgz","fileCount":10,"integrity":"sha512-bh0iXCVcU7x+fg5SoB05xKvsIzGga6L6Jyh74q5S9CbcDO6Oq8o0Ety1lwTjHubsn34467xcBEyENgY1vWaRhQ==","signatures":[{"sig":"MEQCIFnPLvEYKvlz8G8hJ1EDSwNWT7PNDI5mem17tlA+uspoAiAhyzHzqVhWu//h7mjY90JdSHJHSaMzprWQpy5lg5gVGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19215},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9073d2ed0e30cb6c3918e0b548a4bd69e17ac3ee","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"repository":{"url":"git+https://github.com/Abdallemo/go-route-gen.git","type":"git","directory":"packages/client"},"_npmVersion":"11.7.0","description":"A fully type-safe API client for go-route-gen","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"peerDependencies":{"axios":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/routegen-client_1.1.5_1776407148024_0.9524483178413574","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@abdallemo/routegen-client","version":"1.1.6","description":"A fully type-safe API client for go-route-gen","keywords":["route-gen","go","typescript","api","client","axios"],"repository":{"type":"git","url":"git+https://github.com/Abdallemo/go-route-gen.git","directory":"packages/client"},"license":"MIT","author":{"name":"Abdalle"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"peerDependencies":{"axios":"^1.0.0"},"devDependencies":{"axios":"^1.6.0","typescript":"^5.0.0"},"gitHead":"b34433dc4d983dc4018c1762311e182a465b5b49","_id":"@abdallemo/routegen-client@1.1.6","bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"homepage":"https://github.com/Abdallemo/go-route-gen#readme","_nodeVersion":"24.12.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-kzwJyJxEwzvkMTh5QTPkuEnCbTXYFDp1f3t/HKUtp92NBs6Ho0wfyt0qaLyfa7Z06DT2YW8PJ7s1zswQqndk5Q==","shasum":"e8da609729778973a108e7e1a62ed96155c8a99e","tarball":"https://registry.npmjs.org/@abdallemo/routegen-client/-/routegen-client-1.1.6.tgz","fileCount":10,"unpackedSize":19656,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCf4zOUJaaNNB6ZljkLvzWJeAMaR6qAhBJgWG9kOklbRwIgD0REi3ctgkJKmXoi8lhHTg4UJmIrqbe64CykbuyR/4k="}]},"_npmUser":{"name":"abdallemo","email":"learn3038it@gmail.com"},"directories":{},"maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/routegen-client_1.1.6_1784905477823_0.6339418491026754"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-06T06:42:58.691Z","modified":"2026-07-24T15:04:38.124Z","1.0.0":"2026-03-06T06:42:58.935Z","1.0.1":"2026-03-06T08:40:51.070Z","1.0.2":"2026-03-12T07:08:58.766Z","1.1.0":"2026-04-03T12:58:52.897Z","1.1.1":"2026-04-03T13:20:36.097Z","1.1.2":"2026-04-03T13:45:37.111Z","1.1.3":"2026-04-03T13:58:29.599Z","1.1.4":"2026-04-12T22:49:33.489Z","1.1.5":"2026-04-17T06:25:48.174Z","1.1.6":"2026-07-24T15:04:37.967Z"},"bugs":{"url":"https://github.com/Abdallemo/go-route-gen/issues"},"author":{"name":"Abdalle"},"license":"MIT","homepage":"https://github.com/Abdallemo/go-route-gen#readme","keywords":["route-gen","go","typescript","api","client","axios"],"repository":{"type":"git","url":"git+https://github.com/Abdallemo/go-route-gen.git","directory":"packages/client"},"description":"A fully type-safe API client for go-route-gen","maintainers":[{"name":"abdallemo","email":"learn3038it@gmail.com"}],"readme":"# @abdallemo/routegen-client\n\n**End-to-end type-safe routing for Go 1.22+ and TypeScript.**\n\nThis is the frontend client for [go-route-gen](https://github.com/Abdallemo/go-route-gen). It provides a strictly-typed Axios wrapper that consumes route definitions generated directly from your Go standard library (`net/http`) handlers.\n\nGet tRPC-style type safety across the network boundary without switching to a heavy backend framework.\n\n## Features\n\n  * **Strict Route Matching**: TypeScript won't let you request a route that doesn't exist in your backend.\n  * **Path Parameter Validation**: Automatically detects `{id}` segments in your Go routes and requires them as typed arguments in the frontend.\n  * **Global Lifecycle Hooks**: Centralized `onError` and `onUnauthorized` handling.\n  * **Custom Error Types**: Define and receive structured error responses with generic type support.\n  * **Lightweight**: A thin, powerful wrapper around Axios.\n  * **Framework Agnostic**: Works with React, Vue, Svelte, or vanilla TS.\n\n## Installation\n\n```bash\nnpm install @abdallemo/routegen-client\n```\n\n*Note: You also need the [Go CLI](https://github.com/Abdallemo/go-route-gen) to generate your route definitions.*\n\n## Quick Start\n\n### 1\\. Initialize the Client\n\nPoint the client to the `API_ROUTES` file generated by the `route-gen` CLI.\n\n```typescript\nimport { GoApiClient } from '@abdallemo/routegen-client'\nimport { API_ROUTES } from './route' // The file generated by the Go CLI\n\nexport const api = new GoApiClient<typeof API_ROUTES>({\n  baseURL: 'http://localhost:8080',\n  hooks: {\n    onError: (message, status) => {\n      console.error(`[API Error ${status}]:`, message);\n    },\n    onUnauthorized: () => {\n      // Redirect to login, clear storage, etc.\n      window.location.href = '/login';\n    }\n  }\n})\n```\n\n### 2\\. Make Type-Safe Requests\n\nThe `.request()` method enforces the method/path string and validates path parameters.\n\n```typescript\n// 1. Static Route\nconst users = await api.expect<User[]>().request('GET /users')\n\n// 2. Dynamic Route with Path Parameters\n// If the Go route is \"DELETE /customer/{id}\", TS requires the second argument:\nawait api.expect<void>().request('DELETE /customer/{id}', { id: 101 })\n\n// 3. Post Data\nawait api.expect<User>().request('POST /users', {}, { name: 'Abdalle' })\n```\n\n## Advanced Configuration\n\n### Strict Mode vs. Loose Mode\n\nBy default, the client is in **Strict Mode**. It will only allow strings that exist in your `API_ROUTES`.\n\nIf you need to hit external endpoints or routes not yet managed by the generator, you can enable **Loose Mode** by passing `false` as the second generic:\n\n```typescript\n// Autocomplete works for internal routes, but arbitrary strings are allowed\nconst api = new GoApiClient<typeof API_ROUTES, false>({ ... })\n```\n\n### Custom Axios Instance\n\nIf you have an existing Axios setup with complex interceptors, you can pass it directly:\n\n```typescript\nconst api = new GoApiClient<typeof API_ROUTES>({\n  axiosInstance: myExistingInstance\n})\n```\n\n## How it works\n\nThe `go-route-gen` ecosystem bridges the gap between Go 1.22's new routing patterns and modern TypeScript frontends. By scraping your Go AST for `METHOD /path` patterns, it creates a union type of all available endpoints, ensuring your frontend is always in sync with your backend handlers.\n\n## License\n\nMIT © [Abdallemo](https://github.com/Abdallemo)\n","readmeFilename":"README.md"}