Documentation

Get Started withGraphQL Grab

The missing GraphQL DevTool. Capture any GraphQL API in one command. 100% free, no account required.

30 second setup
No schema required
All export formats free

Installation

Install GraphQL Grab globally using your preferred package manager:

npm
npm install -g graphql-grab
yarn
yarn global add graphql-grab
pnpm
pnpm add -g graphql-grab

Verify the installation:

gqlgrab --version

Quick Start

1

Start the proxy server

gqlgrab capture --port 8080

This starts a local proxy server on port 8080 that captures all GraphQL requests.

2

Configure your application

Point your application or browser to use the proxy:

export HTTP_PROXY=http://localhost:8080
3

Make requests

Use your application normally. GraphQL Grab automatically detects and captures GraphQL requests.

4

Export the session

gqlgrab export session.json --format postman

Export captured requests to Postman, Insomnia, cURL, or HAR format.

HAR File Import

Already have network traffic captured? GraphQL Grab can analyze HAR files exported from browser DevTools or other network capture tools.

Export HAR from Chrome DevTools

  1. Open Chrome DevTools (F12 or Cmd+Opt+I)
  2. Go to the Network tab
  3. Perform your GraphQL operations
  4. Right-click in the Network panel and select "Save all as HAR with content"

Analyze the HAR File

gqlgrab analyze network.har

View statistics and summary of all GraphQL operations.

Search for Specific Operations

gqlgrab search network.har 'UserQuery'

Find specific queries or mutations by name.

Export to Other Formats

# Export to cURL commands
gqlgrab export network.har --format curl

# Export to Postman collection
gqlgrab export network.har --format postman --output collection.json

# Export to Insomnia
gqlgrab export network.har --format insomnia --output workspace.json

# Export all formats at once
gqlgrab export network.har --format curl,postman,insomnia,har

Commands Reference

capture

Start a proxy server and capture GraphQL requests

Usage

gqlgrab capture [options]

Options

--port, -pPort to run the proxy on (default: 8080)
--output, -oOutput file for session data (default: session.json)
--httpsEnable HTTPS proxy mode
--introspectAuto-fetch schemas from detected endpoints

Example

gqlgrab capture --port 3000 --output my-session.json
analyze

Analyze a captured session or HAR file

Usage

gqlgrab analyze <file>

Options

--statsShow detailed statistics
--queriesList all unique queries
--mutationsList all unique mutations

Example

gqlgrab analyze session.json --stats
export

Export session to various formats

Usage

gqlgrab export <file> [options]

Options

--format, -fExport format: curl, postman, insomnia, har (all free!)
--output, -oOutput file path
--filterFilter operations by name pattern

Example

gqlgrab export session.json --format postman --output collection.json
search

Search for operations in a session

Usage

gqlgrab search <file> <query>

Options

--regex, -rUse regex pattern for search
--type, -tFilter by type: query, mutation, subscription

Example

gqlgrab search session.json 'user' --type query
list

List all operations in a session

Usage

gqlgrab list <file> [options]

Options

--type, -tFilter by type: query, mutation, subscription
--verbose, -vShow detailed information

Example

gqlgrab list session.json --type query
introspect

Fetch GraphQL schema from an endpoint

Usage

gqlgrab introspect <url> [options]

Options

--output, -oOutput file path for schema
--headers, -HCustom headers (key:value format)

Example

gqlgrab introspect https://api.example.com/graphql --output schema.graphql

Proxy Setup

Browser Configuration

Configure your browser to use the GraphQL Grab proxy:

CChrome / Edge

  1. Open Settings → System → Open proxy settings
  2. Set HTTP proxy to localhost:8080
  3. Apply settings

FFirefox

  1. Open Settings → Network Settings
  2. Select Manual proxy configuration
  3. Set HTTP Proxy to localhost, Port to 8080
  4. Click OK

System-Wide Proxy (macOS/Linux)

export HTTP_PROXY=http://localhost:8080
export HTTPS_PROXY=http://localhost:8080

System-Wide Proxy (Windows)

set HTTP_PROXY=http://localhost:8080
set HTTPS_PROXY=http://localhost:8080

All Features - 100% Free

Everything Included

No limits, no paywalls, no account required

  • Unlimited request captures
  • Unlimited saved sessions
  • All export formats (cURL, Postman, Insomnia, HAR)
  • HAR file analysis
  • Schema introspection
  • Search and filter operations
  • TypeScript code generation
  • Works offline - no internet required

FAQ

Need Help?

Can't find what you're looking for? We're here to help.