<?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: karan nakra</title>
    <description>The latest articles on DEV Community by karan nakra (@karannakra).</description>
    <link>https://dev.to/karannakra</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%2F951550%2Fab0a7329-7851-4ca4-b846-19cc65abe062.jpeg</url>
      <title>DEV Community: karan nakra</title>
      <link>https://dev.to/karannakra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karannakra"/>
    <language>en</language>
    <item>
      <title>Show Password – Chrome Extension</title>
      <dc:creator>karan nakra</dc:creator>
      <pubDate>Mon, 15 Sep 2025 11:49:02 +0000</pubDate>
      <link>https://dev.to/karannakra/show-password-chrome-extension-2m75</link>
      <guid>https://dev.to/karannakra/show-password-chrome-extension-2m75</guid>
      <description>&lt;p&gt;Got it 👍 I’ve updated the LinkedIn post draft to clearly mention installation instructions, GitHub availability, and that support for other browsers/stores is coming soon:&lt;/p&gt;

&lt;p&gt;👨‍💻 If you’re a web developer, you’ve definitely been here…&lt;/p&gt;

&lt;p&gt;You’re testing a login form, typing your password again and again… and then realize you mistyped.&lt;br&gt;
What happens next?&lt;/p&gt;

&lt;p&gt;👉 Open DevTools&lt;br&gt;
👉 Inspect the input field&lt;br&gt;
👉 Change type="password" → type="text"&lt;br&gt;
👉 Finally, you can see the password.&lt;/p&gt;

&lt;p&gt;I’ve been there countless times — and honestly, it sucks. It breaks your flow and feels like unnecessary overhead for something so small.&lt;/p&gt;

&lt;p&gt;So, I built a solution. 🚀&lt;/p&gt;

&lt;p&gt;✨ A Chrome Extension that lets you reveal your password instantly — no DevTools, no extra clicks, just one clean action.&lt;/p&gt;

&lt;p&gt;🔹 Saves time&lt;br&gt;
🔹 Keeps you in the flow&lt;br&gt;
🔹 Super lightweight&lt;/p&gt;

&lt;p&gt;Right now, it’s available only on GitHub, and can be installed manually in Chrome.&lt;br&gt;
📎 Please find the installation instructions in the attached README.&lt;/p&gt;

&lt;p&gt;🌍 Browser &amp;amp; store support:&lt;/p&gt;

&lt;p&gt;✅ Chrome (via GitHub install)&lt;/p&gt;

&lt;p&gt;⏳ Firefox, Edge, Opera → coming soon&lt;/p&gt;

&lt;p&gt;⏳ Chrome Web Store &amp;amp; other browser stores → coming soon&lt;/p&gt;

&lt;p&gt;If this sounds useful, you can try it out here: &lt;a href="https://github.com/karannakra2/show-password-extension" rel="noopener noreferrer"&gt;🔗 GitHub link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⭐ And if you like it, please leave a star on the repo — it really helps and keeps me motivated to build more dev-friendly tools!&lt;/p&gt;

</description>
      <category>extensions</category>
      <category>password</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Integrate preact/ react in astro</title>
      <dc:creator>karan nakra</dc:creator>
      <pubDate>Mon, 18 Dec 2023 10:52:54 +0000</pubDate>
      <link>https://dev.to/karannakra/how-to-integrate-preact-react-in-astro-3gco</link>
      <guid>https://dev.to/karannakra/how-to-integrate-preact-react-in-astro-3gco</guid>
      <description>&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

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

&lt;p&gt;The &lt;code&gt;astro add&lt;/code&gt; command-line tool automates the installation for you. Run one of the following commands in a new terminal window. (If you aren’t sure which package manager you’re using, run the first command.) Then, follow the prompts, and type “y” in the terminal (meaning “yes”) for each one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx astro add preact

yarn astro add preact

pnpm astro add preact

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;First, install the &lt;code&gt;@astrojs/preact&lt;/code&gt; package using your package manager. If you’re using npm or aren’t sure, run this in the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install @astrojs/preact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most package managers will install associated peer dependencies as well. Still, if you see a “Cannot find package ‘preact’” (or similar) warning when you start up Astro, you’ll need to install Preact:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install preact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, apply this integration to your astro.config.* file using the integrations property:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { defineConfig } from 'astro/config';
 import preact from '@astrojs/preact';

export default defineConfig({
  // ...
  integrations: [preact()],
  //             ^^^^^^^^
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;To use your first Preact component in Astro, refer to the &lt;a href="https://docs.astro.build/en/core-concepts/framework-components/#using-framework-components"&gt;UI framework documentation&lt;/a&gt;. You’ll explore:&lt;/p&gt;

&lt;h3&gt;
  
  
  Options
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Combining multiple JSX frameworks
&lt;/h4&gt;

&lt;p&gt;When you are using multiple JSX frameworks (React, Preact, Solid) in the same project, Astro needs to determine which JSX framework-specific transformations should be used for each of your components. If you have only added one JSX framework integration to your project, no extra configuration is needed.&lt;/p&gt;

&lt;p&gt;Use the include (required) and exclude (optional) configuration options to specify which files belong to which framework. Provide an array of files and/or folders to include for each framework you are using. Wildcards may be used to include multiple file paths.&lt;/p&gt;

&lt;p&gt;I recommend placing common framework components in the same folder (e.g. /components/react/ and /components/solid/) to make specifying your includes easier, but this is not required:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
import react from '@astrojs/react';

export default defineConfig({
  // Enable many frameworks to support all different kinds of components.
  // No `include` is needed if you are only using a single JSX framework!
  integrations: [
    preact({
      include: ['**/preact/*'],
    }),
    react({
      include: ['**/react/*'],
    })
  ],
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  tsconfig.json
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "extends": "astro/tsconfigs/base",
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "preact", // or react depending upon the integration
  },
  "exclude": ["dist"] // to exclude type checking in build files
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Common Errors
&lt;/h3&gt;

&lt;p&gt;Sometimes Astro is not able to identify which framework is used if you don't have any import statement from that particular framework in your framework component. Due to this, the &lt;code&gt;astro check&lt;/code&gt; command may fail to resolve the issue. In such cases, you can use a per-file pragma to set the correct jsxImportSource:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/** @jsxImportSource preact */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>astro</category>
      <category>preact</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
