nowfound

Dev tools · April 13, 2023

Using zod to get structured and typed output from ChatGPT in TypeScript

Contribute to olup/zod-chatgpt development by creating an account on GitHub.

Using zod to get structured and typed output from ChatGPT in TypeScript launched on April 13, 2023 with 35 votes, #1,489 of 4,853 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 3 years on.

In plain words

This is a TypeScript tool that uses Zod, a schema validation library, to extract structured and typed data from ChatGPT responses. Developers can define data schemas and ensure the AI output conforms to specific formats and types automatically. The project provides practical methods for working with large language models while maintaining type safety, making it useful for developers building applications that need reliable, predictable data extraction from ChatGPT.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • A tool to visualise Zod validation errors2024 · zod.fyi · ▲17

    I work on code generator that creates TypeScript SDKs from OpenAPI specs and Zod (https://zod.dev/) is a critical building block that I chose to power runtime validation in those SDKs. Depending on the complexity of a Zod schema, the resulting validation error message can contain a wall of JSON text - the serialised issues that were recorded during validation. I wanted to try and create a small tool to help me better visualise and parse these errors. In code and the command line, we do also have the ability to pretty-print the errors but I still wanted a web UI which can let…

  • Get your entire ChatGPT history in Markdown files2023 · github.com · ▲295

    This is just a small thing I coded to help me see my entire convo history in beautiful markdown, in Obsidian (my note-taking app). [Link to Github repo](https://github.com/mohamed-chs/chatgpt-history-export-to-md). The Python script helps you to convert conversations extracted from ChatGPT (ZIP export all your data, sent by Openai) into neatly formatted Markdown files. Also adds YAML metadata headers and includes Code interpreter (Advanced data analysis) intput / output code. Feel free to fork the repo and implement your own improvements, I feel like there's alot…

  • Chatblade – A CLI Swiss Army Knife for ChatGPT2023 · github.com · ▲315

    integrate chatGPT into your scripts or terminal work. Supports piping text, saving prompts, estimating costs, and some basic json/yaml extraction. I've added some elaborate examples on the readme of how to use it with pictures, that may provide a better overview.

  • No more copy-pasting – a ChatGPT plugin to read code from your computer2023 · github.com · ▲46

    Introducing the Code ChatGPT Plugin - a new era of seamless interaction between ChatGPT and your codebase. This TypeScript Code Analyzer furnishes a suite of utilities to analyze TypeScript code, enabling ChatGPT to "talk" with YOUR code. Fetch a list of all the files in your project, list of every function in a TypeScript or JavaScript file, or even get the content of a specific function, all while staying in your conversation with ChatGPT. With accessible API endpoints, you can effortlessly navigate your codebase and ask ChatGPT anything you can think of about it. Say goodbye to the days…

  • Zod – TypeScript-first validation library with static type inference2020 · github.com · ▲5

    TypeScript-first schema validation with static type inference - colinhacks/zod

  • Get structured and typed JSON outputs via GPT-3.5/4 functions2023 · github.com · ▲5

    Get structured, fully typed, and validated JSON outputs from OpenAI and Anthropic models. - dzhng/zod-gpt

More dev tools this month

the category →
  • /dev/null▲491

    a social network for devs

    Dev tools · 4d ago · dev-null.sh

  • Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.

    Dev tools · 21h ago · github.com

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 29d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 24d ago · openbot.run

  • Talanoa▲346

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 22d ago · talanoa.email

Source: Show HN post ↗

Launched alongside, April 2023

the whole month →
  • Guidde AI▲1,476

    Create video documentation instantly with the magic of AI

    AI · 2023 · guidde.com

  • G4

    Hi HN, Today we’re launching GPT-4 answers on Phind.com, a developer-focused search engine that uses generative AI to browse the web and answer technical questions, complete with code examples and detailed explanations. Unlike vanilla GPT-4, Phind feeds in relevant websites and technical documentation, reducing the model’s hallucination and keeping it up-to-date. To use it, simply enable the “Expert” toggle before doing a search. GPT-4 is making a night-and-day difference in terms of answer quality. For a question like “How can I RLHF a LLaMa model”, Phind in Expert mode delivers a…

    AI · 2023 · phind.com

  • Lago▲1,013

    Open-source alternative to Stripe Billing and Chargebee

    Dev tools · 2023 · getlago.com

  • Chatscout▲691

    Shopping assistant powered by ChatGPT for e-commerce brands

    AI · 2023

  • Fabric▲690

    Make notes, tasks, and search, directly from the terminal.

    AI · 2023 · fabric.so

  • Rask AI▲683

    Say it in any language, AI based, sounds as good as a human

    AI · 2023 · rask.ai