{"id":47885,"library":"graphql-introspection-json-to-sdl","title":"graphql-introspection-json-to-sdl","description":"CLI tool that converts a GraphQL schema introspection JSON file into SDL (Schema Definition Language) format. Version 1.0.3 is stable, with no regular release cadence. Differentiator: simple, focused CLI utility with no dependencies, unlike alternatives like graphql-cli or custom scripts.","status":"active","version":"1.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/potatosalad/graphql-introspection-json-to-sdl","tags":["javascript"],"install":[{"cmd":"npm install graphql-introspection-json-to-sdl","lang":"bash","label":"npm"},{"cmd":"yarn add graphql-introspection-json-to-sdl","lang":"bash","label":"yarn"},{"cmd":"pnpm add graphql-introspection-json-to-sdl","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a CLI tool, not a library. Use npx or install globally.","wrong":"graphql-introspection-json-to-sdl schema.json","symbol":"graphql-introspection-json-to-sdl","correct":"npx graphql-introspection-json-to-sdl schema.json > schema.graphql"}],"quickstart":{"code":"npx graphql-introspection-json-to-sdl schema.json > schema.graphql","lang":"javascript","description":"Convert an introspection JSON file to SDL and write to a .graphql file."},"warnings":[{"fix":"Use shell redirection: graphql-introspection-json-to-sdl schema.json > schema.graphql","message":"The output is written to stdout; you must redirect to a file or use the output.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure the JSON file contains the full introspection result, not just the data part.","message":"The input JSON must be a valid introspection query result (e.g., from graphql(IntrospectionQuery)).","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"For federated schemas, consider using @apollo/federation-introspection or graphql-inspector.","message":"The package does not support the newer @link directives or federation introspection. SDL output may be incomplete for modern schemas.","severity":"deprecated","affected_versions":"<2.0.0"}],"env_vars":null,"search_vec":"'1.0.3':24 'altern':41 'cadenc':31 'cli':7,35,45 'convert':10 'custom':47 'definit':20 'depend':39 'differenti':32 'file':16 'focus':34 'format':22 'graphql':2,12,44 'graphql-c':43 'graphql-introspection-json-to-sdl':1 'introspect':3,14 'javascript':49 'json':4,15 'languag':21 'like':42 'regular':29 'releas':30 'schema':13,19 'script':48 'sdl':6,18 'simpl':33 'stabl':26 'tool':8 'unlik':40 'util':36 'version':23","created_at":"2026-06-07T16:53:50.145955+00:00","updated_at":"2026-06-07T16:53:50.145955+00:00","problems":[{"fix":"Run 'npm install -g graphql-introspection-json-to-sdl' or use npx.","cause":"Package not installed globally or locally.","error":"Error: Cannot find module 'graphql-introspection-json-to-sdl'"},{"fix":"Provide the correct path to the introspection JSON file.","cause":"The input file path is incorrect or file missing.","error":"Error: ENOENT: no such file or directory, open 'schema.json'"}],"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/potatosalad/graphql-introspection-json-to-sdl","github":"https://github.com/potatosalad/graphql-introspection-json-to-sdl","docs":null,"changelog":null,"pypi":null,"npm":"graphql-introspection-json-to-sdl","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"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}}