<?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: Sudheesh Shetty</title>
    <description>The latest articles on DEV Community by Sudheesh Shetty (@sudheeshshetty).</description>
    <link>https://dev.to/sudheeshshetty</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3964105%2F9b9735f8-fe55-4519-93bf-14062d7e98b0.jpg</url>
      <title>DEV Community: Sudheesh Shetty</title>
      <link>https://dev.to/sudheeshshetty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sudheeshshetty"/>
    <language>en</language>
    <item>
      <title>I built an embeddable AI chat widget + MCP-powered backend and open sourced it</title>
      <dc:creator>Sudheesh Shetty</dc:creator>
      <pubDate>Tue, 02 Jun 2026 08:44:11 +0000</pubDate>
      <link>https://dev.to/sudheeshshetty/i-built-an-embeddable-ai-chat-widget-mcp-powered-backend-and-open-sourced-it-179l</link>
      <guid>https://dev.to/sudheeshshetty/i-built-an-embeddable-ai-chat-widget-mcp-powered-backend-and-open-sourced-it-179l</guid>
      <description>&lt;h1&gt;
  
  
  I built an embeddable AI chat widget + MCP-powered backend and open sourced it
&lt;/h1&gt;

&lt;p&gt;Over the weekend, I worked on building something I wanted to exist as a simple developer tool:&lt;/p&gt;

&lt;p&gt;An embeddable AI chat widget that can be dropped into any website, connected to any LLM provider, and extended using tool calling and MCP-style integrations.&lt;/p&gt;

&lt;p&gt;The project is now open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Embeddable AI chat widget&lt;/li&gt;
&lt;li&gt;Plug-and-play backend server&lt;/li&gt;
&lt;li&gt;Supports multiple providers:

&lt;ul&gt;
&lt;li&gt;OpenAI&lt;/li&gt;
&lt;li&gt;Groq&lt;/li&gt;
&lt;li&gt;Gemini&lt;/li&gt;
&lt;li&gt;Ollama&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Tool calling support&lt;/li&gt;

&lt;li&gt;React + CDN support&lt;/li&gt;

&lt;li&gt;Customizable UI&lt;/li&gt;

&lt;li&gt;MCP-ready architecture&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;p&gt;Widget&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;ai-chat-toolkit-widget
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;ai-chat-toolkit-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Quick Example
&lt;/h2&gt;

&lt;p&gt;Frontend&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;ai-chat&lt;/span&gt;
  &lt;span class="na"&gt;backend-url=&lt;/span&gt;&lt;span class="s"&gt;"http://localhost:3000"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&amp;lt;/ai-chat&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Backend&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;aiChat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AiChatServer&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;openai&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;OPENAI_API_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;aiChat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Packages
&lt;/h2&gt;

&lt;p&gt;Widget&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/ai-chat-toolkit-widget" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/ai-chat-toolkit-widget&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Server&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/ai-chat-toolkit-server" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/ai-chat-toolkit-server&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/sudheeshshetty/ai-chat-toolkit" rel="noopener noreferrer"&gt;https://github.com/sudheeshshetty/ai-chat-toolkit&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;p&gt;This project was built with help from AI tooling where it accelerated development, debugging, iteration, and documentation.&lt;/p&gt;

&lt;p&gt;I still made the architecture decisions, implementation choices, and packaged the final developer experience.&lt;/p&gt;

&lt;p&gt;Would genuinely love feedback from other developers.&lt;/p&gt;

&lt;p&gt;If you try it, tell me what you would improve.&lt;/p&gt;

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