{"repo":"ecyrbe/zodios","free":true,"listed":false,"github":"https://github.com/ecyrbe/zodios","clone":"git clone https://github.com/ecyrbe/zodios.git","description":"typescript http client and server with zod validation","language":"TypeScript","stars":1915,"topics":["zod","http","typescript","api","nodejs","openapi","rest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Zodios Zodios is a typescript api client and an optional api server with auto-completion features backed by axios and zod and express Documentation https://user-images.githubusercontent.com/633115/185851987-554f5686-cb78-4096-8ff5-c8d61b645608.mp4 What is it ? It's an axios compatible API client and an optional expressJS compatible API server with the following features: - really simple centralized API declaration - typescript autocompletion in your favorite IDE for URL and parameters - typescript response types - parameters and responses schema thanks to zod - response schema validation - powerfull plugins like fetch adapter or auth automatic injection - all axios features available - @tanstack/query wrappers for react and solid (vue, svelte, etc, soon) - all expressJS features available (middlewares, etc.) Table of contents: - What is it ? - Install - Client and api definitions : - Server : - How to use it on client side ? - Declare your API with zodios - API definition format - Full documentation - Ecosystem - Roadmap - Dependencies Install Client and api definitions : or Server : or How to use it on client side ? For an almost complete example on how to use zodios and how to split your APIs declarations, take a look at dev.to example. Declare your API with zodios Here is an example of API declaration with Zodios. Calling this API is now easy and has builtin autocomplete features : It should output You can also use aliases : API definition format Full documentation Check o","default_branch":null,"files":null,"tree":[],"storefront":"/r/ecyrbe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ecyrbe/zodios/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}