DEV Community

Cover image for I Built a VS Code Extension So I'd Stop Googling Mongoose Docs Every 5 Minutes
Amit Kumar Raikwar
Amit Kumar Raikwar

Posted on

I Built a VS Code Extension So I'd Stop Googling Mongoose Docs Every 5 Minutes

If you've ever written a Mongoose schema, you know the drill:

username: {
  type: String,
  // ...wait, is it "minlength" or "min"?
  // does trim work on this?
  // let me open the docs again
}
Enter fullscreen mode Exit fullscreen mode

I got tired of tab-switching to the Mongoose docs every time I wrote a schema, so I built SchemaSense — a VS Code extension that brings IntelliSense-style autocomplete, hover docs, and ready-made snippets directly into your editor for Mongoose schema authoring.

What it does

  • Context-aware autocomplete — type type: String and it suggests trim, lowercase, minlength, etc. Type type: Number and it suggests min, max instead. No more guessing which properties apply to which type.
  • Hover documentation — hover over any property (required, unique, ref, etc.) to see a description, syntax, and example without leaving your file.
  • Snippets — type emailfield, passwordfield, or objectid and get a properly configured field instantly.

It's built entirely off a JSON metadata layer describing Mongoose's schema options, so the suggestions and docs stay consistent everywhere in the extension.

Why Mongoose specifically

Frameworks like Prisma ship with excellent official tooling. Mongoose — despite being one of the most widely used ODMs in the Node.js/MERN ecosystem — never really got the same editor-level support. If you're a beginner or you just don't write schemas every day, that gap shows up constantly as "wait, what was that property called again?"

Try it

ext install novaedgedigitallabs.schemasense
Enter fullscreen mode Exit fullscreen mode

Or grab it from the Marketplace: https://marketplace.visualstudio.com/items?itemName=novaedgedigitallabs.schemasense

This is an early release — I'd genuinely appreciate feedback, bug reports, or feature requests. If something's missing or a suggestion looks wrong, let me know in the comments or open an issue on the repo linked on the Marketplace page.

What's next on the roadmap: smarter validation for invalid property combinations, and quick-fixes right from the lightbulb menu.


Built by NovaEdge Digital Labs — we build developer tools and products for the MERN stack ecosystem.

Top comments (0)