<?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: MR-RAHAD</title>
    <description>The latest articles on DEV Community by MR-RAHAD (@mrrahad).</description>
    <link>https://dev.to/mrrahad</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%2F4156926%2F585479d4-6532-4d71-8df0-36425efb5644.jpg</url>
      <title>DEV Community: MR-RAHAD</title>
      <link>https://dev.to/mrrahad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrrahad"/>
    <language>en</language>
    <item>
      <title>I Wrapped All My APIs Behind One Key and Started Selling Access (From Bangladesh)</title>
      <dc:creator>MR-RAHAD</dc:creator>
      <pubDate>Fri, 09 Oct 2026 15:44:53 +0000</pubDate>
      <link>https://dev.to/mrrahad/i-wrapped-all-my-apis-behind-one-key-and-started-selling-access-from-bangladesh-16ko</link>
      <guid>https://dev.to/mrrahad/i-wrapped-all-my-apis-behind-one-key-and-started-selling-access-from-bangladesh-16ko</guid>
      <description>&lt;p&gt;I maintain a handful of small APIs: a Grok chat bot, a Kimi chat API, an image generator, a photo enhancer, and a video downloader. Each had its own URL, its own auth (or none), and its own way of breaking at 2 AM.&lt;/p&gt;

&lt;p&gt;So I built a gateway. One endpoint, one API key, plan limits, and a dashboard. It's live at Rahad API Marketplace (Railway), and this is what I learned shipping it in about a day.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One key (rk-...) for every backend: chat, image generation, photo enhancement, media download&lt;/li&gt;
&lt;li&gt;Plan limits that actually stop abuse: Free 100/day, Pro 5000/day, Unlimited 100k/day&lt;/li&gt;
&lt;li&gt;Usage is charged only when an upstream call succeeds — if my backend fails you, it shouldn't cost your quota&lt;/li&gt;
&lt;li&gt;A dashboard where you sign up, verify your email, and get a free key instantly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Payments are the Bangladesh part of the story: no Stripe here, so Pro upgrades run through bKash with a manual transaction-ID approval flow. Ugly? A little. Working? Completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  One bug class that bit me
&lt;/h2&gt;

&lt;p&gt;When an upstream API fails (say it returns 401), my first version passed that straight through to the buyer. Their client then told them "unauthorized" — which sounds like their key is wrong. That's my bug wearing their error message.&lt;/p&gt;

&lt;p&gt;Fix: the gateway now translates any upstream failure into an honest 502 that names the backend, and only counts usage on success. Small change, much fairer billing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's honest about
&lt;/h2&gt;

&lt;p&gt;GET /v1/models doesn't pretend everything is fine. It probes the upstreams and reports real availability — if a backend is down, the endpoint says so instead of selling you a broken promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live: &lt;a href="https://rahad-api-marketplace-production.up.railway.app" rel="noopener noreferrer"&gt;https://rahad-api-marketplace-production.up.railway.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Free key: sign up, verify email, done — 100 requests/day, no card&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Honest question for the comments
&lt;/h2&gt;

&lt;p&gt;For those of you selling small APIs from countries without Stripe — how do you take money? Manual mobile-money approvals like mine, Paddle/Lemon Squeezy, or something else entirely? I'm genuinely deciding what to do next, and I'd rather learn from your scars than earn my own.&lt;/p&gt;

</description>
      <category>api</category>
      <category>ai</category>
      <category>webdev</category>
      <category>wormai</category>
    </item>
    <item>
      <title>I Built a ChatGPT API Without Login — How the Anonymous Flow Actually Works</title>
      <dc:creator>MR-RAHAD</dc:creator>
      <pubDate>Thu, 08 Oct 2026 21:08:11 +0000</pubDate>
      <link>https://dev.to/mrrahad/i-built-a-chatgpt-api-without-login-how-the-anonymous-flow-actually-works-1dcn</link>
      <guid>https://dev.to/mrrahad/i-built-a-chatgpt-api-without-login-how-the-anonymous-flow-actually-works-1dcn</guid>
      <description>&lt;p&gt;I was curious how ChatGPT's logged-out "guest" mode really works under the hood, so I built a small educational project around it: a working API that chats with ChatGPT &lt;strong&gt;without any account, login, or API key&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/MR-RAHAD/chatgpt-api" rel="noopener noreferrer"&gt;https://github.com/MR-RAHAD/chatgpt-api&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;code&gt;POST /chat&lt;/code&gt; with a prompt returns ChatGPT's reply as JSON. Every request runs a completely fresh anonymous session — the same steps a browser would take, but without a browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Studying the guest flow turned into a tour of modern anti-bot engineering:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Session&lt;/strong&gt; — the flow is Cloudflare-gated, so the session opens with a Safari TLS fingerprint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prepare&lt;/strong&gt; — the server issues a "Sentinel" challenge: a proof-of-work plus two obfuscated VM bytecode programs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proof-of-work&lt;/strong&gt; — solved in pure Python (an FNV-1a hash puzzle over a base64 config payload).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VM tokens&lt;/strong&gt; — the bytecode programs (session-observer + turnstile) are XOR-encrypted; I run them in Node/jsdom against the real page environment to produce the required tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finalize + conversation&lt;/strong&gt; — the solved challenge is exchanged for a conversation token, the message is sent, and the streamed (SSE) reply is parsed.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Extras
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Proxy rotation&lt;/strong&gt; — a round-robin proxy pool with automatic cooldown for dead proxies (the guest flow is rate-limited per IP, so rotation spreads the load).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional API keys&lt;/strong&gt; — lock your own deployment down with &lt;code&gt;CHATGPT_API_KEYS&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Honest limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;~20–40 seconds per reply; requests run one at a time.&lt;/li&gt;
&lt;li&gt;Guest quota is roughly 10 messages per 5 hours per identity/IP — proxies help, but nothing here is "unlimited".&lt;/li&gt;
&lt;li&gt;It wraps a web frontend, so bundle changes can break the solver until it's re-derived.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why build this?
&lt;/h2&gt;

&lt;p&gt;🎓 &lt;strong&gt;Education and research.&lt;/strong&gt; This project exists to demonstrate how modern web platforms defend themselves — TLS fingerprinting, proof-of-work challenges, and VM-based token systems — and how those mechanisms work in practice. It's unofficial, not affiliated with OpenAI, and the README carries a full disclaimer.&lt;/p&gt;

&lt;p&gt;If you learned something from it, a ⭐ on the repo helps others find it. Issues and questions are welcome!&lt;/p&gt;




&lt;h2&gt;
  
  
  A question for you
&lt;/h2&gt;

&lt;p&gt;If you were building on top of a no-login API like this, what would you use it for — a Telegram bot, a CLI tool, or something else? And what's the first thing you'd worry about breaking?&lt;/p&gt;

&lt;p&gt;Drop your take in the comments — I read every one.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>api</category>
      <category>webdev</category>
    </item>
    <item>
      <title>One npm Package to Download Videos from TikTok, Instagram, Facebook, YouTube and 7 More</title>
      <dc:creator>MR-RAHAD</dc:creator>
      <pubDate>Fri, 02 Oct 2026 09:15:41 +0000</pubDate>
      <link>https://dev.to/mrrahad/one-npm-package-to-download-videos-from-tiktok-instagram-facebook-youtube-and-7-more-3no4</link>
      <guid>https://dev.to/mrrahad/one-npm-package-to-download-videos-from-tiktok-instagram-facebook-youtube-and-7-more-3no4</guid>
      <description>&lt;p&gt;Every project that touches social media eventually needs the same thing: &lt;em&gt;"give me the direct video URL for this link."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I got tired of wiring up a different scraper for every platform — one library for TikTok, another for Instagram, a third that breaks every time YouTube changes something. So I built &lt;strong&gt;rahad-all-downloader-v2&lt;/strong&gt;: one package, 11 platforms, zero setup.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;11 platforms, one API:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TikTok — no-watermark HD video + MP3 audio extraction&lt;/li&gt;
&lt;li&gt;Instagram — Reels, posts, IGTV, no login needed&lt;/li&gt;
&lt;li&gt;Facebook — HD &amp;amp; SD quality options&lt;/li&gt;
&lt;li&gt;YouTube — with automatic fallback for reliability&lt;/li&gt;
&lt;li&gt;X (Twitter), Snapchat (Spotlight &amp;amp; Stories), Threads, Pinterest, Likee, CapCut, Kwai&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Zero setup:&lt;/strong&gt; no cookies, no API keys, no login. Install and go.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built for real apps:&lt;/strong&gt; batch downloads with concurrency control, auto-retry with backoff, quality preference, progress callbacks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Modern:&lt;/strong&gt; TypeScript definitions, ESM + CJS, ~21KB, MIT licensed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&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;rahad-all-downloader-v2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;alldl&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;rahad-all-downloader-v2&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Single download — returns a direct video URL&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;alldl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://www.tiktok.com/@user/video/123456789&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;videoUrl&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// direct .mp4 link, no watermark&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Batch with concurrency control (never throws — failed items are reported)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;alldl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;batch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://www.instagram.com/reel/ABC123/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://youtu.be/xyz&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;concurrency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;onItem&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;done:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Retry + quality preference&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;hd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;alldl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;quality&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;720p&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. One function, every platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;Most downloader libraries solve one platform well and ignore the rest. Real projects — bots, archivers, content tools, automation — need &lt;em&gt;every&lt;/em&gt; platform behind a single stable interface. This package is dependency-free, handles failures gracefully (batch mode never throws), and stays updated as platforms change their frontends.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/rahad-all-downloader-v2" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/rahad-all-downloader-v2&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/MR-RAHAD/rahad-all-downloader-v2" rel="noopener noreferrer"&gt;https://github.com/MR-RAHAD/rahad-all-downloader-v2&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If it saves you time, a star on GitHub means a lot. Feedback and issues welcome!&lt;/p&gt;




&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;Which platform do you download from the most — TikTok, Instagram, YouTube, Facebook…? And is there a platform you wish this package supported but doesn't yet?&lt;/p&gt;

&lt;p&gt;Tell me in the comments — the most-requested platform goes to the top of my roadmap.&lt;/p&gt;

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