Type-Safe Fetch with Next.js, Strapi, and OpenAPI

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. qs

    A querystring parser with nesting support

    That would mean a bit of string concatenation. Luckily, Strapi suggest a library called qs to make this a bit more streamlined:

  2. SurveyJS

    JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor. Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.

    SurveyJS logo
  3. TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    TypeScript helps you in many ways in the context of a JavaScript app. It makes it easier to consume interfaces of any type.

  4. Strapi

    πŸš€ Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.

    const pages = await client.GET("/pages", { params: { query: { filters: { // @ts-ignore - openapi generated from strapi results in Record // https://github.com/strapi/strapi/issues/19644 path: { $eq: path, }, }, // @ts-ignore populate: { blocks: { populate: "*" }, }, }, }, });

  5. React

    The library for web and native user interfaces.

    What you have seen now works great especially when you are fetching data on the server, like in React Server Components using Next.js. But data fetching on the client side is often a bit more involved. At least what you want is for example some data loading indication and to know when the data is actually available in the client.

  6. strapi-next-rsc-openapi-fetch

    YouTube, 20240301, using typed fetch with strapi and nextjs

    The source code is available on GitHub.

  7. OpenAI-DotNet

    A Non-Official OpenAI RESTful API Client for DotNet (by RageAgainstThePixel)

  8. Next.js

    The React Framework

    What you have seen now works great especially when you are fetching data on the server, like in React Server Components using Next.js. But data fetching on the client side is often a bit more involved. At least what you want is for example some data loading indication and to know when the data is actually available in the client.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. foundation

    GraphQL Foundation Charter and Legal Documents (by graphql)

    When you use technologies like GraphQL, it is trivial to derive TypeScript types. A GraphQL API is created by implementing a schema. Generating the TypeScript type definitions from this schema is simple, and you do not have to do any more work than just making the GraphQL API. This is one reason why I like GraphQL so much.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • My 2024 Good Links List

    9 projects | dev.to | 6 Dec 2024
  • Building a Personal Finance App with Arcjet

    9 projects | dev.to | 6 Sep 2024
  • The hunt for a perfect headless CMS

    9 projects | dev.to | 3 Jul 2024
  • Low-Code Backend Solution for Refine.dev Using Prisma and ZenStack

    4 projects | dev.to | 27 May 2024
  • 10 Issues That Will Help You Grow as a top contributor in Opensource πŸ…πŸ…

    12 projects | dev.to | 16 Oct 2023

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?