<?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: ABDULLAH BIN MUGHIRA</title>
    <description>The latest articles on DEV Community by ABDULLAH BIN MUGHIRA (@abmdevx).</description>
    <link>https://dev.to/abmdevx</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%2F4098249%2Fba5deb5b-5738-4c15-bb7b-2d99c5a7a6b4.jpg</url>
      <title>DEV Community: ABDULLAH BIN MUGHIRA</title>
      <link>https://dev.to/abmdevx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abmdevx"/>
    <language>en</language>
    <item>
      <title>Docraft: Turn Pasted AI Responses into Word, PDF and HTML Files, Locally in Your Browser</title>
      <dc:creator>ABDULLAH BIN MUGHIRA</dc:creator>
      <pubDate>Fri, 06 Nov 2026 03:54:25 +0000</pubDate>
      <link>https://dev.to/abmdevx/docraft-turn-pasted-ai-responses-into-word-pdf-and-html-files-locally-in-your-browser-3p7j</link>
      <guid>https://dev.to/abmdevx/docraft-turn-pasted-ai-responses-into-word-pdf-and-html-files-locally-in-your-browser-3p7j</guid>
      <description>&lt;p&gt;AI chats are great at producing structured text, but getting that text into a clean, shareable document is still a chore. &lt;strong&gt;Docraft&lt;/strong&gt; is a Chrome extension that turns a pasted AI response into an editable Word file, a styled PDF, or a standalone HTML page in a couple of clicks.&lt;/p&gt;

&lt;p&gt;Everything runs locally in your browser. There's no server, no account, no analytics, and no AI API behind it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/abmdevx/docraft" rel="noopener noreferrer"&gt;https://github.com/abmdevx/docraft&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Paste your text into the popup, optionally set a title, and export. When you need more control, open the full workspace.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compact popup&lt;/strong&gt; for fast paste-and-export&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full workspace&lt;/strong&gt; with an editor, a live document preview, and document settings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three export formats:&lt;/strong&gt; Word (.docx), PDF, and HTML&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Markdown-aware parsing&lt;/strong&gt; that detects headings, paragraphs, lists, tables, code blocks, quotes, links, and inline formatting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Light and dark documents:&lt;/strong&gt; a white page, or a near-black page with white text, for Word and PDF output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document controls:&lt;/strong&gt; font, size, page size, orientation, margins, title, and page numbers&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional table of contents&lt;/strong&gt; in all three formats&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-paste ZIP batches:&lt;/strong&gt; add several responses, choose a format for each, and download them together&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Math in PDFs:&lt;/strong&gt; KaTeX renders supported LaTeX formulas as crisp images&lt;/li&gt;
&lt;/ul&gt;

&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhzo5gd76obv1gm6uoqh.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuhzo5gd76obv1gm6uoqh.png" alt="Docraft compact popup" width="499" height="736"&gt;&lt;/a&gt;&lt;/p&gt;

&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmg0luf64nblsxp5q975c.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmg0luf64nblsxp5q975c.png" alt="Docraft full workspace with editor, preview and settings" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy by design
&lt;/h2&gt;

&lt;p&gt;People paste a lot of sensitive text into AI tools, so the extension asks for as little as possible:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only the &lt;code&gt;storage&lt;/code&gt; permission is required&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;clipboardRead&lt;/code&gt; is optional and requested only when you use the Paste action&lt;/li&gt;
&lt;li&gt;No host permissions at all&lt;/li&gt;
&lt;li&gt;Pasted content isn't saved unless you enable "Remember my draft"&lt;/li&gt;
&lt;li&gt;Pasted HTML is treated as literal text and is never rendered with &lt;code&gt;innerHTML&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Only validated &lt;code&gt;http&lt;/code&gt;, &lt;code&gt;https&lt;/code&gt;, &lt;code&gt;mailto&lt;/code&gt;, and &lt;code&gt;tel&lt;/code&gt; links become active&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React + TypeScript&lt;/strong&gt; for the popup and workspace UIs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt; for styling and &lt;strong&gt;Vite&lt;/strong&gt; for building&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Chrome Manifest V3&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;A Markdown parser feeding separate &lt;strong&gt;Word, PDF, and HTML exporters&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Automated tests for the parser, the exporters, and the UI&lt;/li&gt;
&lt;li&gt;The open-source &lt;strong&gt;Carlito&lt;/strong&gt; font embedded so PDFs match Calibri's metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Known limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PDF fonts cover Latin, Greek, Cyrillic, and many symbols. CJK and complex scripts such as Arabic or Indic scripts may not render fully, and Docraft warns you after export when characters are unsupported.&lt;/li&gt;
&lt;li&gt;Preview page breaks are estimates.&lt;/li&gt;
&lt;li&gt;Landscape mode is manual, and wide tables are scaled with smaller type.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Docraft installs from source for now:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/abmdevx/docraft.git
&lt;span class="nb"&gt;cd &lt;/span&gt;docraft
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;chrome://extensions&lt;/code&gt;, enable &lt;strong&gt;Developer mode&lt;/strong&gt;, choose &lt;strong&gt;Load unpacked&lt;/strong&gt;, and select the generated &lt;code&gt;dist/&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;It's MIT licensed, so feedback, issues, and stars are all welcome: &lt;a href="https://github.com/abmdevx/docraft" rel="noopener noreferrer"&gt;https://github.com/abmdevx/docraft&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What would you want from a tool like this? Let me know in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>react</category>
    </item>
    <item>
      <title>🚀 A Tiny Developer Tool I Built for My Node.js Workflow</title>
      <dc:creator>ABDULLAH BIN MUGHIRA</dc:creator>
      <pubDate>Sat, 29 Aug 2026 13:19:43 +0000</pubDate>
      <link>https://dev.to/abmdevx/a-tiny-developer-tool-i-built-for-my-nodejs-workflow-5a68</link>
      <guid>https://dev.to/abmdevx/a-tiny-developer-tool-i-built-for-my-nodejs-workflow-5a68</guid>
      <description>&lt;p&gt;While working on Node.js + Express projects, I noticed I was repeatedly generating JWT secrets for my &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;

&lt;p&gt;Usually, I would either:&lt;/p&gt;

&lt;p&gt;→ Search for an online secret generator&lt;br&gt;
→ Run a long Node.js command manually&lt;br&gt;
→ Copy the generated value&lt;br&gt;
→ Paste it into &lt;code&gt;.env&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It's not difficult, but when you're doing it repeatedly, why not automate it?&lt;/p&gt;

&lt;p&gt;So I created my own tiny Windows command called &lt;code&gt;jwt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Now I can simply type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and get a secure random secret instantly.&lt;/p&gt;

&lt;p&gt;Even better:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;generates a 64-byte random secret instead of the default 32-byte secret.&lt;/p&gt;

&lt;h3&gt;
  
  
  🛠️ How I built it
&lt;/h3&gt;

&lt;p&gt;I used Node.js' built-in &lt;code&gt;crypto&lt;/code&gt; module, so there was no additional npm package involved.&lt;/p&gt;

&lt;p&gt;First, I created a folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\Users\YOUR_USERNAME\bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I created:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt.cmd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;inside that folder.&lt;/p&gt;

&lt;p&gt;The file contains:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;@echo off
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;"%~1"&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;
    &lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="s2"&gt;"bytes=32"&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;
    &lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="s2"&gt;"bytes=%~1"&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;

node &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s2"&gt;"console.log(require('crypto').randomBytes(%bytes%).toString('hex'))"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🔍 What does it do?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;%~1&lt;/code&gt; represents the first argument passed to the command.&lt;/p&gt;

&lt;p&gt;So:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;means no argument was provided, therefore:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bytes &lt;span class="o"&gt;=&lt;/span&gt; 32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;sets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bytes &lt;span class="o"&gt;=&lt;/span&gt; 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then Node.js runs:&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="nx"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which generates cryptographically secure random bytes.&lt;/p&gt;

&lt;p&gt;Finally:&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="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hex&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;converts them into a hexadecimal string.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;32 bytes → 64 hexadecimal characters&lt;br&gt;
64 bytes → 128 hexadecimal characters&lt;/p&gt;
&lt;h3&gt;
  
  
  🌐 Making the command available everywhere
&lt;/h3&gt;

&lt;p&gt;The final step was adding my &lt;code&gt;bin&lt;/code&gt; folder to the Windows &lt;strong&gt;User PATH&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I went to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Windows Search → Environment Variables → Edit the system environment variables → Environment Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Under &lt;strong&gt;User variables&lt;/strong&gt;, I selected:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Path → Edit → New
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and added:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C:\Users\YOUR_USERNAME\bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After restarting the terminal, Windows could find &lt;code&gt;jwt.cmd&lt;/code&gt; from any directory.&lt;/p&gt;

&lt;p&gt;Now I can open CMD, PowerShell, or the VS Code terminal and simply run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jwt 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  💡 Why I like this
&lt;/h3&gt;

&lt;p&gt;It's a very small automation, but it taught me something useful about Windows PATH, &lt;code&gt;.cmd&lt;/code&gt; files, command-line arguments, and Node's &lt;code&gt;crypto&lt;/code&gt; module.&lt;/p&gt;

&lt;p&gt;More importantly, it removed a repetitive step from my development workflow.&lt;/p&gt;

&lt;p&gt;Sometimes developer productivity isn't about building a huge tool.&lt;/p&gt;

&lt;p&gt;Sometimes it's just:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"I do this repeatedly → let's automate it."&lt;/strong&gt; ⚡&lt;/p&gt;

</description>
      <category>node</category>
      <category>express</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
