DevDocStop writing outdated code. DevDoc is a VS Code extension that ensures your AI-generated code is always correct and secure by using a real-time documentation vector store. The Silent Risk of AI-Powered DevelopmentIn early 2025, a critical vulnerability (CVE-2025-29927) was discovered in Next.js, one of the world's most popular web frameworks. This flaw allowed attackers to completely bypass middleware authorization, gaining access to protected routes simply by manipulating an HTTP header. The vulnerability affected millions of applications, yet for months, AI coding assistants continued to generate the vulnerable code patterns because their training data was frozen in the past. This is the ticking time bomb in modern development. AI tools like Cursor, GPTs, and Copilot accelerate our workflow but are inherently trained on outdated data. They generate code with deprecated functions, old configurations, and critical security holes that have since been patched. Relying on them is like building a futuristic car with a faulty engine from a decade ago. Our Solution: AI That Reads the Latest DocsDevDoc is our answer to this problem. We are building a VS Code extension that bridges the gap between the power of AI and the pace of modern software documentation. Instead of relying on a static, outdated model, DevDoc connects to a vector database that is continuously updated with the latest documentation from popular libraries and frameworks. When you ask DevDoc to generate code, it doesn't just guess based on old patterns—it consults the current official docs to provide code that is accurate, secure, and up-to-date. The generated changes are presented in a clean diff editor, right in your IDE. You have the final say: review the correct, updated code and simply click Accept or Reject. ✨ Key Features
🚀 Getting Started1. InstallationYou can get DevDoc up and running in two ways:
2. How to Use
Examples in ActionSee how DevDoc prevents common issues caused by other AI tools. Example 1: Tailwind CSS v4 ConfigurationMany AI tools are still trained on data from before Tailwind CSS v4, which introduced a major change to the configuration file. ❌ Outdated Code (from other AI tools):
✅ Correct Code (from DevDoc):
DevDoc knows that
And provide instructions to update your Example 2: Next.js Secure MiddlewareUsing outdated patterns for Next.js middleware can expose critical security vulnerabilities. ❌ Vulnerable Code (from other AI tools): An AI unaware of the CVE-2025-29927 patch might generate middleware that is bypassable. The vulnerability isn't in the code itself, but in the environment it runs on. DevDoc would ensure you're using a secure version and pattern. ✅ Secure Guidance (from DevDoc):
DevDoc would not only generate the correct middleware logic but also check your
And it would add a warning: "⚠️ Security Alert: Your 🤝 ContributingWe are building DevDoc as an open-source project and welcome all contributions! Whether you want to fix a bug, add support for a new framework, or improve the documentation, we'd love your help.
Please read our 📝 LicenseThis project is licensed under the MIT License. See the LICENSE file for details. |