SchemaSense
Smart IntelliSense & Toolkit for Data Schemas
SchemaSense is a practical VS Code extension designed to streamline how you write data schemas. By providing context-aware autocomplete, in-depth hover documentation, ready-to-use snippets, and on-the-fly validation, it integrates directly into your coding workflow. Initially developed for Mongoose, it has expanded to support several modern frameworks.
Supported Frameworks
- Mongoose (MongoDB)
- Zod (TypeScript-first schema validation)
- Prisma (Next-generation ORM)
- Joi (Data validation for JavaScript)
Key Features
Smart Property & Type Suggestions
Receive tailored autocomplete suggestions for types, properties, and validation methods specific to your chosen framework.
- Mongoose: Context-aware fields and types.
- Zod / Joi: Intelligent method chaining.
- Prisma: Attribute and directive auto-completion (
@, @@).
Rich Hover Documentation
Hover over any schema property or type to instantly view its description, syntax, example usage, and related fields.
Real-Time Validation & Quick Fixes
(Currently available for Mongoose)
Identifies configuration errors in your schema (such as applying minlength to a Number) and provides immediate Quick Fixes to correct them.
AI Schema Recommendations
Run the SchemaSense: AI Recommend Schema Fields command to generate foundational schema fields from your plain English descriptions, driven by Google Gemini.
Relationship Visualizer
Run the SchemaSense: Visualize Schema command to launch an interactive diagram of your data models and their relationships, rendered with Mermaid.js.
Time-Saving Snippets
Access built-in snippets to quickly insert common schema patterns across all supported frameworks, including examples like emailfield, objectid, zodstring, prismamodel, and joiobject.
Extension Settings
schemasense.enableHoverDocs: Enable/disable hover documentation. (Default: true)
schemasense.enableAutoSuggestions: Enable/disable auto-completion suggestions. (Default: true)
schemasense.enableValidation: Enable/disable real-time AST diagnostics and validation. (Default: true)
schemasense.geminiApiKey: API Key for Google Gemini (Used for AI Schema Recommendations).
Release Notes
0.1.0-alpha
- Expanded from Mongoose MVP to support Zod, Prisma, and Joi!
- Added AST-based Diagnostics Validation Engine and Quick Fix Code Actions.
- Added AI Recommend and Visualize Schema commands.
- Snippet expansion for all supported frameworks.
Keywords
mongoose, mongodb, prisma, zod, joi, schema, intellisense, validation, typescript, autocomplete
Support
If SchemaSense saved you time → novaedgedigitallabs.tech/pay