A VS Code extension for developing GraphQL APIs with StepZen, featuring intelligent schema management, import capabilities, and development tools.
- cURL Import - Convert REST endpoints to GraphQL with smart cURL parsing
- OpenAPI Import - Generate schemas from OpenAPI specifications
- GraphQL Import - Import existing GraphQL endpoints with authentication
- Database Import - Connect PostgreSQL, MySQL, Oracle, Snowflake, and more
- Smart Configuration - Auto-detect secrets, generate names, validate inputs
- Schema Indexing - Real-time analysis of GraphQL schemas and directives
- Type Definitions - Navigate and explore your schema structure
- Directive Support - Full support for StepZen directives (@rest, @dbquery, @graphql, etc.)
- File Watching - Automatic updates when schema files change
- CLI Integration - Seamless StepZen CLI command execution
- Project Management - Initialize and manage StepZen projects
- Request Testing - Execute GraphQL operations directly from VS Code
- Error Handling - Comprehensive error reporting and validation
- Auto-completion - Intelligent suggestions for StepZen directives
- Syntax Highlighting - Enhanced GraphQL syntax support
- Schema Validation - Real-time validation of schema files
- GraphQL Linting - Comprehensive GraphQL schema linting with custom rules
- Quick Actions - Context-aware commands and shortcuts
This extension is not published to the VS Code Marketplace. To install it:
- Download the latest
.vsixfile from the GitHub Releases page - Install it in VS Code using one of these methods:
- Command line:
code --install-extension vscode-stepzen-<version>.vsix - VS Code UI: Open the Extensions view, click the
...menu, and select "Install from VSIX..."
- Command line:
- Ensure you have the StepZen CLI installed
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and run any of the import commands:
- StepZen: Import cURL - Paste a cURL command or endpoint URL
- StepZen: Import Database - Select a database type and provide connection details
- StepZen: Import GraphQL - Provide an endpoint URL and authentication
- StepZen: Import OpenAPI - Select a local file or provide a URL
StepZen: Import cURL- Import REST endpoints using cURL syntaxStepZen: Import OpenAPI- Import from OpenAPI/Swagger specificationsStepZen: Import GraphQL- Import existing GraphQL endpointsStepZen: Import Database- Import database schemas (PostgreSQL, MySQL, etc.)
StepZen: Initialize Project- Create a new StepZen projectStepZen: Deploy Schema- Deploy your schema to StepZenStepZen: Run GraphQL Request- Execute GraphQL operationsStepZen: Open Schema Visualizer- Visualize your schema structureStepZen: Lint GraphQL Schema- Lint GraphQL schema files with custom rules
StepZen: Generate Operations- Create sample GraphQL operationsStepZen: Validate Schema- Check schema for errorsStepZen: Show Logs- View extension logs and debugging info
The extension includes GraphQL schema linting with custom rules. Linting errors and warnings appear in the Problems panel.
Enable automatic linting in your VS Code settings:
{
"stepzen.autoLintGraphQL": true
}You can also lint manually via the Command Palette with StepZen: Lint GraphQL Schema.
{
"stepzen.cliPath": "/path/to/stepzen",
"stepzen.logLevel": "info",
"stepzen.autoValidate": true,
"stepzen.defaultWorkingDir": "./stepzen",
"stepzen.autoLintGraphQL": false
}The extension automatically detects StepZen projects and provides context-aware features based on your stepzen.config.json and schema files.
- Node.js 16+
- VS Code 1.74+
- StepZen CLI
git clone https://github.com/stepzen-dev/vscode-stepzen
cd vscode-stepzen
npm install
npm run compilenpm test # Run all tests
npm run test:unit # Unit tests only
npm run test:integration # Integration tests only- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
CLI Not Found
- Ensure StepZen CLI is installed and in your PATH
- Set
stepzen.cliPathin VS Code settings if needed
Import Failures
- Check network connectivity for remote resources
- Verify authentication credentials
- Review VS Code output panel for detailed error messages
Schema Validation Errors
- Ensure GraphQL syntax is correct
- Check StepZen directive usage
- Validate file paths and references
- Check the StepZen Documentation
- Review extension logs in VS Code Output panel
- Report issues on GitHub
This extension is licensed under the MIT License. See LICENSE for details.