<?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: Adarsh Chaudhary</title>
    <description>The latest articles on DEV Community by Adarsh Chaudhary (@adarsh_chaudhary_02df358b).</description>
    <link>https://dev.to/adarsh_chaudhary_02df358b</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%2F3844448%2F50c1c667-3dba-4100-8e0b-cc58e9c2a1f5.png</url>
      <title>DEV Community: Adarsh Chaudhary</title>
      <link>https://dev.to/adarsh_chaudhary_02df358b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adarsh_chaudhary_02df358b"/>
    <language>en</language>
    <item>
      <title>I built a zero-dependency Groq API wrapper for Node.js — simple-groq</title>
      <dc:creator>Adarsh Chaudhary</dc:creator>
      <pubDate>Thu, 26 Mar 2026 09:44:43 +0000</pubDate>
      <link>https://dev.to/adarsh_chaudhary_02df358b/i-built-a-zero-dependency-groq-api-wrapper-for-nodejs-simple-groq-678</link>
      <guid>https://dev.to/adarsh_chaudhary_02df358b/i-built-a-zero-dependency-groq-api-wrapper-for-nodejs-simple-groq-678</guid>
      <description>&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;I was working on a small AI chatbot project and wanted to &lt;br&gt;
use Groq's blazing fast inference. But the official SDK &lt;br&gt;
felt too heavy for what I needed.&lt;/p&gt;

&lt;p&gt;So I built simple-groq — a minimal, zero-dependency &lt;br&gt;
Groq API client that just works.&lt;/p&gt;




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

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;bash&lt;br&gt;
npm install simple-groq&lt;br&gt;
\&lt;/code&gt;&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;




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

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;`javascript&lt;br&gt;
import { GroqClient } from "simple-groq";&lt;/p&gt;

&lt;p&gt;const groq = new GroqClient({ apiKey: "gsk_..." });&lt;/p&gt;

&lt;p&gt;const answer = await groq.ask("What is Node.js?");&lt;br&gt;
console.log(answer);&lt;br&gt;
`&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;⚡ Zero dependencies — uses native fetch only&lt;/li&gt;
&lt;li&gt;🪶 Under 5KB minified + gzipped&lt;/li&gt;
&lt;li&gt;🌊 Streaming with for await...of&lt;/li&gt;
&lt;li&gt;💬 Built-in multi-turn chat history&lt;/li&gt;
&lt;li&gt;🔒 Full TypeScript support&lt;/li&gt;
&lt;li&gt;📦 ESM + CJS dual build&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Streaming Example
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;&lt;code&gt;javascript&lt;br&gt;
for await (const chunk of groq.stream(messages)) {&lt;br&gt;
  process.stdout.write(chunk.content);&lt;br&gt;
}&lt;br&gt;
\&lt;/code&gt;&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Chat History Example
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;\&lt;/code&gt;`javascript&lt;br&gt;
const history = groq.createHistory();&lt;/p&gt;

&lt;p&gt;history.add("system", "You are a helpful assistant.");&lt;br&gt;
history.add("user", "My name is Adarsh.");&lt;/p&gt;

&lt;p&gt;const reply = await groq.chat(history.messages);&lt;br&gt;
history.add("assistant", reply);&lt;/p&gt;

&lt;p&gt;history.add("user", "What is my name?");&lt;br&gt;
const answer = await groq.chat(history.messages);&lt;br&gt;
console.log(answer); // "Your name is Adarsh."&lt;br&gt;
`&lt;code&gt;\&lt;/code&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/codewithAdarsh1/simple-groq" rel="noopener noreferrer"&gt;https://github.com/codewithAdarsh1/simple-groq&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/simple-groq" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/simple-groq&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Feedback and contributions are welcome!&lt;br&gt;
If you find it useful, a ⭐ on GitHub would mean a lot!&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
