Skip to content

geobde/graphqlexplorer

Repository files navigation

https://graphqlexplorer.vercel.app

A project that simplifies the process of generating queries from plain text prompts.
It harnesses the power of AI to make querying your GraphQL APIs a breeze.

Twitter License

How It Works · Quickstart · Example · Tech Stack · Contributors. Read More


How It Works

This project utilizes the ChatGPT API and the Vercel AI SDK with streaming capabilities. Here's a quick overview of the workflow:

  1. User Input: You input a text prompt or query in a user-friendly form.

  2. Prompt Construction: The system constructs a query prompt based on the input.

  3. AI Magic: The prompt is sent to the ChatGPT API using a Vercel Edge Function.

  4. Streamlined Response: The AI-generated response is streamed back to the application's user interface, allowing you to view and use the generated query effortlessly.

Quickstart

  1. Clone this repository to your local machine.

  2. Create an account on OpenAI.

  3. Store your API key in a file named .env in the project directory.

  4. Run the application from the command line, and it will be available at http://localhost:3000.

Example

Endpoint

Question

  • Retrieve the titles of all films

Tech Stack

Contributors

Repo Activity

GraphQL Explorer repo activity – generated by Axiom

Read More

Generate GraphQL queries from simple text prompts

License

See the LICENSE file for licensing information

About

An open-source query generator from simple text prompts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published