{"repo":"raflymln/zod-key-parser","free":true,"listed":false,"github":"https://github.com/raflymln/zod-key-parser","clone":"git clone https://github.com/raflymln/zod-key-parser.git","description":"Parse your Zod schema into keys or Prisma ORM select format","language":"TypeScript","stars":25,"topics":["zod","nextjs","react","server-actions","typescript","validation"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"### ⚠ Please use latest version All bugs related to peer dependency, fail to parsing, and other bugs has been fixed in latest version If you still have any problem, please make an issue in the GitHub repository --- #### What's New on v2.0.1? - Fix keys issue with ZodPipe - Migrated to Zod v4: All parsing and schema features now require Zod v4. Older Zod versions are supported on v1. Zod Key Parser Parse your Zod schema into keys or ORM select format What This Do? Transform this schema: Into This So that you can use it on your form like this: And This So that you can use it on your ORM like this How About the Opposite? Don't Worry There's 2 function, formatObject and formatFormData() that you can use 1. formatObject(object) Use it to format object to keys format - Format this: - Into this 2. formatFormData(formData) Use it to format data from form action directly, especially for React/Next.js user who use server action It also use formatObject() under the hood What's The Point of This? Pros - Avoid typos in form name - Easily parsed form data with a little lines of code - For ORM, improve your database performance by only selecting data to be used - You'll lovin it like McDonalds says Cons - Idk, maybe it's just too much for you? let me know What You Should Know - Currently it doesn't support non object schema, if your schema is just like z.string() it wont parse anything since it doesn't have a key - It Supports ZodEnum, ZodUnion, ZodIntersection, ZodArray, ZodOptional, ZodNu","default_branch":null,"files":null,"tree":[],"storefront":"/r/raflymln","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raflymln/zod-key-parser/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."}