Seeking Alternatives to GitHub GraphQL Explorer - What Tools Are You Using? #170728
Replies: 4 comments
-
|
Hi! Thanks for asking about alternatives to GitHub’s GraphQL Explorer, which is being removed on November 1, 2025. Since you’re looking for tools to browse and test GitHub’s GraphQL API, handle authentication via OAuth (avoiding Personal Access Tokens), and provide schema introspection and auto-completion, I’ve put together a list of tools I’ve used or found effective, along with setup details. Here’s what I recommend:1. Apollo Studio ExplorerI’ve found Apollo Studio Explorer to be a fantastic replacement for GitHub’s GraphQL Explorer. It’s a powerful, web-based GraphQL IDE that checks all your boxes: it supports schema introspection, auto-completion, and OAuth-based authentication, so you don’t need to deal with PATs.Why I Like It: The interface is intuitive, similar to GitHub’s Explorer, and it lets me explore the schema, write queries with auto-completion, and save them for later. It’s perfect for interactive testing. Get an OAuth Token:Redirect users to: https://github.com/login/oauth/authorize?client_id=YOUR_CLIENT_ID&scope=repo After authorization, GitHub redirects to your callback URL with a code. Exchange it for an access token: curl -X POST -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&code=CODE" https://github.com/login/oauth/access_token Store the token securely (no PAT needed). Configure Apollo Studio:Visit Apollo Studio. Testing Queries:Write queries in the Explorer with auto-completion (e.g., press Ctrl+Space). query { repository(owner: "octocat", name: "hello-world") { name stargazerCount } } The Docs panel shows the schema, making it easy to explore fields. Pros: Polished UI, robust OAuth support, and great for saving queries.
npm install -g graphiql Alternatively, use the online version at graphiql-online.com. Authenticate with OAuth:Follow the same OAuth setup as above to get an access token. { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } Set the Endpoint:Use https://api.github.com/graphql. Load Schema:Run an introspection query to fetch the schema:graphql query { __schema { types { name fields { name } } } } This enables auto-completion and schema exploration in the Docs tab. Test Queries:Write queries with auto-completion (e.g., Ctrl+Space). query { viewer { login repositories(first: 5) { nodes { name } } } } Pros: Lightweight, open-source, and easy to use locally or online.
brew install gh Or follow instructions at cli.github.com for other platforms. Authenticate:Run: gh auth login Choose the browser-based OAuth flow. This authenticates you without needing a PAT. Run GraphQL Queries:Use the gh api graphql command:bash gh api graphql -f query='query { viewer { login name } }' For schema introspection:bash gh api graphql -f query='query { __schema { types { name fields { name } } } }' > schema.json Filter results with --jq:bash gh api graphql -f query='query { repository(owner:"octocat", name:"hello-world") { name } }' --jq '.data.repository.name' Schema Exploration:Since there’s no built-in auto-completion, I pair it with GitHub’s public schema or use a text editor like VS Code with a GraphQL extension for auto-completion. Pros: Zero PAT hassle, great for automation, and lightweight.
Authenticate with OAuth:Get an OAuth token using the same GitHub OAuth App process. { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } Set Endpoint:Use https://api.github.com/graphql. Load Schema:Run an introspection query or load the public schema to enable auto-completion. Test Queries:Write queries with auto-completion and explore the schema in the DOCS tab. query { repository(owner: "octocat", name: "hello-world") { stargazerCount } } Pros: User-friendly, supports OAuth, and open-source.
Set Up OAuth 2.0:In Postman, create a new request, go to the “Authorization” tab, and select “OAuth 2.0”. Configure GraphQL Request:Set the request to POST and the endpoint to https://api.github.com/graphql. Test Queries:Example:graphql query { viewer { login repositories(first: 5) { nodes { name } } } } Pros: Familiar interface, strong OAuth support, and versatile for other APIs. My RecommendationAfter trying these tools, I’d recommend Apollo Studio Explorer as the closest match to GitHub’s GraphQL Explorer. It’s polished, supports OAuth seamlessly, and makes schema exploration and query building a breeze. If you prefer a terminal-based workflow, GitHub CLI is awesome for quick queries and automation, though you’ll need external tools for auto-completion.Extra TipsOAuth Workflow: Setting up an OAuth app takes a few minutes but ensures you avoid PATs. Always store tokens securely and refresh them as needed. query GetRepoStars($owner: String!, $name: String!) { Variables: {"owner": "octocat", "name": "hello-world"} If you have a specific use case (e.g., automation vs. interactive testing) or need help with setup, let me know, and I can share more details or troubleshoot with you! Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @azu, Here are solid alternatives to the soon-to-be-removed GraphQL Explorer, plus ways to avoid storing a long-lived PAT. Good tool choices
How to authenticate without a long-lived PATOption A — Use
|
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Best Online Graphql Tester: https://devtoolsets.com/graphql-tester |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
GitHub is removing the GraphQL Explorer from API documentation on November 1, 2025.
What GraphQL tools are you using as alternatives?
I'm looking for recommendations for tools that can:
Additionally, I'd like to avoid Personal Access Tokens (PAT).
I'm looking for OAuth-based or other approaches that don't require storing a PAT.
(I used the official GraphQL Explorer because it did not require storing a PAT.)
Please share what you're using and how you set it up. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions