Registry / devops / graphql-cli-voyager

graphql-cli-voyager

JSON →
library0.1.3jsnpmunverified

Plugin for graphql-cli that opens GraphQL Voyager, an interactive visualization tool for any GraphQL schema as a force-directed graph. Version 0.1.3 is the latest, with no active development since 2018. It provides a simple command `graphql voyager` to launch the Voyager UI using the schema defined in your project's .graphqlconfig. Differentiator: integrates directly with the graphql-cli workflow, unlike standalone Voyager. Requires graphql-cli as a peer dependency.

npm install graphql-cli-voyager
INSTALL
IMPORT
SIG · GRAPHQL-CLI-VOYAGE
G
graphql-cli-voyager
devopsjavascriptv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import voyager from 'graphql-cli-voyager'
const voyager = require('graphql-cli-voyager')
The package only provides a default export, no named exports.

Install the CLI and plugin, initialize a graphql project, then run the voyager command to visualize the schema.

npm install -g graphql-cli graphql-cli-voyager graphql init # edit .graphqlconfig with your schema endpoint graphql voyager
Debug
Known issues
gotchaPackage only works with graphql-cli version 1.x; incompatible with graphql-cli v2+
fix
Use graphql-cli v1.x or switch to standalone GraphQL Voyager.
affects: >=0.1.0
deprecatedNo updates since 2018; graphql-cli ecosystem is deprecated in favor of graphql-config and other tools.
fix
Consider using graphql-voyager as a standalone library or via graphql-config.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'graphql-cli'
graphql-cli is not installed or not globally accessible.
fix
Install graphql-cli globally: npm install -g graphql-cli
graphql voyager: command not found
graphql-cli is not installed or not in PATH.
fix
Ensure graphql-cli is installed globally: npm install -g graphql-cli graphql-cli-voyager
Upgrade
Version history
0.1.3latest on npm
Audit
Dependencies
graphql-clirequiredrequired as a peer dependency; the plugin extends graphql-cli
Agent activity
6 hits · last 30 days
node
6
Resources
graphql-cli-voyager — npm install graphql-cli-voyager · libregistry