Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>SchemaCraft: Multi-Schema to JSONNew to Visual Studio Code? Get it now.
SchemaCraft: Multi-Schema to JSON

SchemaCraft: Multi-Schema to JSON

Bama Charan Chhandogi

|
472 installs
| (1) | Free
Convert schemas from multiple libraries (Mongoose, Prisma, Sequelize, Zod) to JSON data for API testing and other use cases. Universal schema conversion tool.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SchemaCraft: Multi-Schema to JSON & Test Hub

Introduction

SchemaCraft is a powerful Visual Studio Code extension that transforms your database schemas (Mongoose, Prisma, Sequelize, Zod) into ready-to-use JSON sample data, Postman collections, and validation code. Using Google's Gemini 2.0 Flash AI, SchemaCraft eliminates manual boilerplate, allowing you to focus on building features rather than writing test data.

🌟 New: The AI Action Hub

SchemaCraft now features a unified AI Action Hub. Right-click any schema and select "SchemaCraft: AI Action Hub" to access a dashboard of developer-centric tools.

Features

  • Multi-Schema Support: Deep integration with Mongoose, Prisma, Sequelize, and Zod.
  • AI-Powered Dataset Scenarios:
    • Standard Instance: Realistic, valid data for daily testing.
    • Negative Test Cases: Boundary values and type-mismatches to stress-test your backend.
    • Robustness (Edge Cases): Nasty strings, emojis, and unusual formats to test system limits.
    • Load/Bulk Data: Generates arrays of 10+ records for pagination and performance testing.
  • Postman/Thunder Client Export: Export a full Postman Collection v2.1 directly from your schema.
  • Zod Validation Sync: Instantly generate TypeScript Zod validation logic from your DB schemas to keep your frontend and backend in sync.
  • Gemini 2.0 Integration: Uses the latest gemini-2.0-flash-exp for near-instant responses.

Installation

  1. Open Visual Studio Code.
  2. Navigate to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
  3. Search for "SchemaCraft".
  4. Click the Install button.

How to Use Guide:

  1. Open a file containing your schema.
  2. Select the schema code.
  3. Right-click and select SchemaCraft: AI Action Hub.
  4. Choose your desired action from the dashboard!

https://github.com/user-attachments/assets/c4a94ad5-00ce-4b62-826a-43705affa731

Configuration

SchemaCraft provides 100 free uses with a built-in API key. After that, you can easily use your own:

  1. Automatic Prompt: The extension will guide you once the limit is reached.
  2. Manual Setup:
    • Press Ctrl+Shift+P
    • Type "Set Gemini API Key"
    • Head to Google AI Studio to get your free key.

Examples

Mongoose to Edge Case JSON:

// Input:
const UserSchema = new Schema({ name: String, bio: String });

// Output (Edge Case):
{
  "name": "𝔍𝔬𝔥𝔫 𝔇𝔬𝔢 <script>alert(1)</script>",
  "bio": "A very long string... [5000 chars] ... 🚀🔥"
}

Mongoose to Zod Validation:

// Output (Zod):
export const UserSchema = z.object({
  name: z.string(),
  bio: z.string().optional()
});

Contributing

We welcome contributions! Please refer to the CONTRIBUTING.md file.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft