{"id":47813,"library":"graphql-client-example-server","title":"GraphQL Client Example Server","description":"A simple GraphQL server for powering examples of various GraphQL clients in various languages. Current stable version is 1.5.2, released occasionally. It provides a scaffold with features like Node interface (for Relay), globally unique IDs, connection-based pagination, limit/offset pagination, mutations, enums, custom scalars, unions, subscriptions, defer/stream, and artificial delays to emphasize defer/stream. Differentiators: it's a lightweight, ready-to-use example server that can be installed globally via npm and run with a single command, allowing developers to quickly test GraphQL client implementations without setting up their own server. It supports a PORT environment variable to control the server port.","status":"active","version":"1.5.2","language":"javascript","source_language":"en","source_url":"https://github.com/zth/graphql-client-example-server","tags":["javascript"],"install":[{"cmd":"npm install graphql-client-example-server","lang":"bash","label":"npm"},{"cmd":"yarn add graphql-client-example-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add graphql-client-example-server","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a CLI tool, not a module. Run it directly with npx or global install.","wrong":"Not a library to import","symbol":"Default import (the server itself)","correct":"No import needed; run via CLI: graphql-client-example-server"}],"quickstart":{"code":"npm install -g graphql-client-example-server\ngraphql-client-example-server\n# Server starts on http://localhost:4000 by default.\n# Set PORT env variable to change port, e.g.:\nPORT=5000 graphql-client-example-server","lang":"javascript","description":"Global install and run the example GraphQL server on default port 4000."},"warnings":[{"fix":"Use the PORT environment variable to set a different port, e.g., PORT=5000 graphql-client-example-server","message":"The server runs on port 4000 by default, which may conflict with other services.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure only one instance is running or use different ports.","message":"The server modifies global state (starts a process); running multiple instances may cause conflicts.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.5.2':23 'allow':83 'artifici':54 'base':42 'client':2,15,89 'command':82 'connect':41 'connection-bas':40 'control':104 'current':19 'custom':48 'defer/stream':52,58 'delay':55 'develop':84 'differenti':59 'emphas':57 'enum':47 'environ':101 'exampl':3,11,68 'featur':31 'global':37,74 'graphql':1,7,14,88 'id':39 'implement':90 'instal':73 'interfac':34 'javascript':108 'languag':18 'lightweight':63 'like':32 'limit/offset':44 'mutat':46 'node':33 'npm':76 'occasion':25 'pagin':43,45 'port':100,107 'power':10 'provid':27 'quick':86 'readi':65 'ready-to-us':64 'relay':36 'releas':24 'run':78 'scaffold':29 'scalar':49 'server':4,8,69,96,106 'set':92 'simpl':6 'singl':81 'stabl':20 'subscript':51 'support':98 'test':87 'union':50 'uniqu':38 'use':67 'variabl':102 'various':13,17 'version':21 'via':75 'without':91","created_at":"2026-06-07T16:53:26.830115+00:00","updated_at":"2026-06-07T16:53:26.830115+00:00","problems":[{"fix":"Kill the process using port 4000 or set a different port via PORT env variable.","cause":"Port 4000 is already occupied by another process.","error":"Error: listen EADDRINUSE: address already in use :::4000"},{"fix":"Run `npm install -g graphql-client-example-server` or use `npx graphql-client-example-server`.","cause":"Package not installed globally or not in PATH.","error":"command not found: graphql-client-example-server"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/zth/graphql-client-example-server#readme","github":"https://github.com/zth/graphql-client-example-server","docs":null,"changelog":null,"pypi":null,"npm":"graphql-client-example-server","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}