<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vamsi krishna</title>
    <description>The latest articles on DEV Community by Vamsi krishna (@vamsi_krishna_1467562fd82).</description>
    <link>https://dev.to/vamsi_krishna_1467562fd82</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3965664%2F489c1c22-ed43-4bf1-8bc1-69ed31bc007a.png</url>
      <title>DEV Community: Vamsi krishna</title>
      <link>https://dev.to/vamsi_krishna_1467562fd82</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vamsi_krishna_1467562fd82"/>
    <language>en</language>
    <item>
      <title>I Built an AI-Powered Database Query Optimizer (And Made It Open Source)</title>
      <dc:creator>Vamsi krishna</dc:creator>
      <pubDate>Fri, 05 Jun 2026 14:22:28 +0000</pubDate>
      <link>https://dev.to/vamsi_krishna_1467562fd82/i-built-an-ai-powered-database-query-optimizer-and-made-it-open-source-2h7k</link>
      <guid>https://dev.to/vamsi_krishna_1467562fd82/i-built-an-ai-powered-database-query-optimizer-and-made-it-open-source-2h7k</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvu72mi8kjoe1tnhi13ml.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvu72mi8kjoe1tnhi13ml.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;I wanted to share a project I've been working on recently: an &lt;strong&gt;AI-Powered Database Query Optimizer.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Problem&lt;/strong&gt;: Identifying slow database queries can be tedious, and manually running EXPLAIN ANALYZE to figure out what went wrong takes time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It acts as a middleware monitoring PostgreSQL queries via SQLAlchemy.&lt;/p&gt;

&lt;p&gt;If a query takes longer than a threshold (default 500ms), it flags it and automatically triggers an EXPLAIN ANALYZE.&lt;/p&gt;

&lt;p&gt;The query structure, schema context, and execution plan are passed to the GROQ API to generate tailored indexing and optimization strategies.&lt;/p&gt;

&lt;p&gt;Everything is fed into a live React/Vite dashboard where you can review, dismiss, or manually queue optimizations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚠️ Note:&lt;/strong&gt; This is currently an MVP to prove out the core pipeline and concept—it is not yet built or intended for heavy production scaling!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech Stack:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Backend: FastAPI, SQLAlchemy, PostgreSQL, Pytest&lt;/p&gt;

&lt;p&gt;Frontend: React, Vite, TypeScript&lt;/p&gt;

&lt;p&gt;AI Layer: GROQ API&lt;/p&gt;

&lt;p&gt;I've open-sourced the repository and also deployed a live demo if you want to check it out or trigger some simulated slow queries!&lt;/p&gt;

&lt;p&gt;GitHub Repository : &lt;a href="https://github.com/Dreamervamsi/AI-powered-database-query-optimiser" rel="noopener noreferrer"&gt;https://github.com/Dreamervamsi/AI-powered-database-query-optimiser&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live Dashboard : &lt;a href="https://ai-powered-database-query-optimiser-cqdl.onrender.com/" rel="noopener noreferrer"&gt;https://ai-powered-database-query-optimiser-cqdl.onrender.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd like to hear your thoughts on the architecture, the approach to query interception, or any features you think would make this even more useful!&lt;/p&gt;

</description>
      <category>database</category>
      <category>ai</category>
      <category>opensource</category>
      <category>backend</category>
    </item>
    <item>
      <title>I built typecraft-cli: An AI tool that automatically catches missing TypeScript types</title>
      <dc:creator>Vamsi krishna</dc:creator>
      <pubDate>Wed, 03 Jun 2026 04:18:49 +0000</pubDate>
      <link>https://dev.to/vamsi_krishna_1467562fd82/i-built-typecraft-cli-an-ai-tool-that-automatically-catches-missing-typescript-types-538h</link>
      <guid>https://dev.to/vamsi_krishna_1467562fd82/i-built-typecraft-cli-an-ai-tool-that-automatically-catches-missing-typescript-types-538h</guid>
      <description>&lt;p&gt;We’ve all stared at a schema or a complex function (especially when it's written in TypeScript) and thought... "What the heck type am I actually supposed to put here?". &lt;/p&gt;

&lt;p&gt;To save time and keep your momentum, you slap an &lt;code&gt;any&lt;/code&gt; type on it and promise yourself you'll "fix it later." (Spoiler alert: we rarely do).&lt;/p&gt;

&lt;p&gt;Manually tracking down missing implicit &lt;code&gt;any&lt;/code&gt; definitions or unannotated parameters can ruin your development flow. While paid AI extensions exist, they can be costly and frequently spam your terminal console with unreadable, messy raw string blocks.&lt;/p&gt;

&lt;p&gt;To solve this, I built &lt;strong&gt;typecraft-cli&lt;/strong&gt; ⚡ — an entirely open-source, minimal static analysis tool that scans your codebase and leverages free Hugging Face LLMs to generate accurate TypeScript annotations automatically.&lt;/p&gt;

&lt;p&gt;Instead of cluttering your local environment, it streams suggestions straight into a neatly formatted &lt;code&gt;type-checker.md&lt;/code&gt; file right in your workspace directory so you can reference it side-by-side with your code editor.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Automated Type Detection:&lt;/strong&gt; Scans local directories to catch loose parameters and missing strict types.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open Source &amp;amp; Free AI:&lt;/strong&gt; Leverages specialized, open-source code models via Hugging Face. No OpenAI API keys required.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Terminal Clutter:&lt;/strong&gt; Keeps your workspace completely quiet while processing everything into clean Markdown reports.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠️ Quick Start
&lt;/h2&gt;

&lt;p&gt;You can run it instantly using &lt;code&gt;npx&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx typecraft-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;(Or install it globally via &lt;code&gt;npm install -g typecraft-cli&lt;/code&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisties
&lt;/h2&gt;

&lt;p&gt;Before running the tool, you'll need a Hugging Face Inference API token (it's free!) so the CLI can communicate with the open-source LLMs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. - Grab your token from your Hugging Face Settings.&lt;/li&gt;
&lt;li&gt;2. - Create a .env file in the root of your project.&lt;/li&gt;
&lt;li&gt;3. - Add your token like this: Code snippet  &lt;code&gt;HF_TOKEN=your_actual_token&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>typescript</category>
      <category>opensource</category>
      <category>ai</category>
      <category>npm</category>
    </item>
  </channel>
</rss>
