<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amar Kanala on Medium]]></title>
        <description><![CDATA[Stories by Amar Kanala on Medium]]></description>
        <link>https://medium.com/@amarkanala?source=rss-ba44d0d0a932------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O6Z5UrAyzigepRwa.png</url>
            <title>Stories by Amar Kanala on Medium</title>
            <link>https://medium.com/@amarkanala?source=rss-ba44d0d0a932------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 23:04:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amarkanala/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unlocking the Power of Real-Time AI: A Beginner’s Guide to MediaPipe]]></title>
            <link>https://medium.com/@amarkanala/unlocking-the-power-of-real-time-ai-a-beginners-guide-to-mediapipe-7017b4138c94?source=rss-ba44d0d0a932------2</link>
            <guid isPermaLink="false">https://medium.com/p/7017b4138c94</guid>
            <dc:creator><![CDATA[Amar Kanala]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 01:13:05 GMT</pubDate>
            <atom:updated>2026-01-04T01:13:05.778Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever marveled at how modern applications can track hand gestures, detect facial features, or analyze video streams in real time? If so, you’ve witnessed the magic of cutting-edge machine learning pipelines in action. One of the tools making this possible is <strong>MediaPipe</strong> — an open-source framework developed by Google that’s revolutionizing how developers build multimodal (video, audio, and sensor) solutions.</p><p>In this post, I’ll share an accessible overview of MediaPipe, outline its key features, and discuss why it’s an essential resource for anyone looking to incorporate real-time perception into their AI projects.</p><h3>What Exactly Is MediaPipe?</h3><p>At its core, MediaPipe is a framework designed to simplify the creation and deployment of complex machine learning pipelines. Whether you’re building applications for gesture recognition, face detection, pose estimation, or even full-body tracking, MediaPipe provides a modular architecture that abstracts away much of the heavy lifting involved in processing and analyzing diverse data streams.</p><p><strong>Key takeaways:</strong></p><ul><li><strong>Cross-Platform Compatibility:</strong> MediaPipe supports multiple platforms, making it easier to develop applications that run seamlessly on mobile devices, desktops, or even in web browsers.</li><li><strong>Real-Time Performance:</strong> Optimized for speed, MediaPipe is built to handle real-time data processing — essential for interactive applications and live analytics.</li><li><strong>Modularity:</strong> The framework comes with a host of pre-built solutions (or “graphs”) that you can customize or extend to fit your project needs.</li></ul><h3>Why MediaPipe Matters</h3><p>In today’s fast-paced digital world, the demand for real-time data processing is higher than ever. Whether it’s enhancing user experiences with dynamic interfaces or powering critical features in healthcare, sports analytics, and augmented reality, MediaPipe bridges the gap between raw data and actionable insights.</p><p><strong>Some compelling benefits include:</strong></p><ul><li><strong>Accelerated Development:</strong> With ready-to-use modules for common tasks (e.g., hand tracking or facial landmark detection), you can get prototypes up and running in no time.</li><li><strong>Resource Efficiency:</strong> MediaPipe is designed to work well on devices with limited computational power, ensuring that even mobile applications can benefit from advanced ML capabilities.</li><li><strong>Flexibility and Extensibility:</strong> The framework isn’t a one-size-fits-all solution. Its design allows you to integrate custom models or modify existing ones, providing a high degree of control over your pipeline’s performance.</li></ul><h3>Real-World Applications</h3><p>MediaPipe is not just a developer’s toy — it’s being used in a variety of real-world applications:</p><ul><li><strong>Gesture and Motion Recognition:</strong> Enhance user interfaces by allowing natural, touch-free interactions.</li><li><strong>Healthcare:</strong> Monitor patient movements or analyze rehabilitation exercises in real time.</li><li><strong>Sports Analytics:</strong> Track and analyze athletes’ movements to improve training and prevent injuries.</li><li><strong>Augmented Reality:</strong> Power interactive AR experiences that require precise real-time tracking of facial features or body poses.</li></ul><p>These examples illustrate how MediaPipe’s versatility can transform industries by enabling applications that were once considered too complex or resource-intensive for real-time processing.</p><h3>Getting Started with MediaPipe</h3><p>For those ready to dive in, the first step is exploring the extensive documentation and tutorials available on the <a href="https://github.com/google/mediapipe">MediaPipe GitHub repository</a> and the official <a href="https://mediapipe.dev/">MediaPipe website</a>. Here are a few tips to get you started:</p><ol><li><strong>Experiment with Pre-Built Graphs:</strong> Start by running some of the provided examples. This hands-on approach can help you understand how data flows through the pipeline.</li><li><strong>Customize and Extend:</strong> Once you’re comfortable with the basics, try integrating your own machine learning models or tweaking existing graphs to better suit your project’s requirements.</li><li><strong>Join the Community:</strong> Engage with fellow developers through forums and discussion groups. Learning from others’ experiences can accelerate your progress and spark innovative ideas.</li></ol><h3>Looking Ahead</h3><p>MediaPipe is continuously evolving, with new features and updates being added regularly. As the landscape of AI and real-time data processing expands, frameworks like MediaPipe will play a crucial role in shaping the future of interactive, intelligent applications.</p><p>Whether you’re a seasoned developer or just starting out, exploring MediaPipe offers a glimpse into the powerful convergence of machine learning and real-time data processing. It’s an exciting time to innovate — so why not harness this technology to drive the next wave of transformative applications?</p><p>Feel free to share your thoughts or experiences with MediaPipe in the comments below. Let’s continue the conversation on how we can push the boundaries of real-time AI together!</p><p><em>#MachineLearning #AI #MediaPipe #RealTimeProcessing #Innovation #TechTrends</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7017b4138c94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing react-keyboard-shortcuts: Clean, Performant, Hook-based Keyboard Shortcuts for Modern…]]></title>
            <link>https://medium.com/@amarkanala/introducing-react-keyboard-shortcuts-clean-performant-hook-based-keyboard-shortcuts-for-modern-f9edefbf92bb?source=rss-ba44d0d0a932------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9edefbf92bb</guid>
            <dc:creator><![CDATA[Amar Kanala]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 01:12:13 GMT</pubDate>
            <atom:updated>2026-01-04T01:12:13.701Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing react-keyboard-shortcuts: Clean, Performant, Hook-based Keyboard Shortcuts for Modern React Apps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVZ5fF-AaHErwmxN0wd5NQ.jpeg" /><figcaption>Say goodbye to memory leaks and hello to zero-dependency, component-scoped hotkeys with full TypeScript support</figcaption></figure><p>Keyboard shortcuts are one of those features that instantly make an application feel more polished and professional — think VS Code, Figma, Notion, or any serious productivity tool.</p><p>Yet implementing them correctly in React has historically been surprisingly annoying:</p><ul><li>Global event listeners that forget to clean up → memory leaks</li><li>Re-renders causing handlers to be re-attached unnecessarily</li><li>Conflicts when multiple components want the same shortcut</li><li>Forgetting to ignore inputs, textareas, and other form elements</li><li>Poor TypeScript support in many popular solutions</li></ul><p>After dealing with these pain points across multiple production apps, I decided to build something better.</p><p>Today I’m excited to open-source <a href="https://github.com/amarkanala/react-keyboard-shortcuts?referrer=grok.com"><strong>react-keyboard-shortcuts</strong></a> — a lightweight, modern, <strong>zero-dependency</strong> React hook library for handling keyboard shortcuts the way React was meant to be used.</p><h3>Why a new hook in 2026?</h3><p>Many existing solutions (react-hotkeys, react-hotkeys-hook, mousetrap wrappers, etc.) are either:</p><ul><li>Class-component oriented and not actively maintained</li><li>Global by default with manual cleanup burden</li><li>Heavy on dependencies or complex APIs</li><li>Lack first-class TypeScript support</li></ul><p><strong>react-keyboard-shortcuts</strong> takes a deliberately simple, hook-first approach that feels native to modern React.</p><h3>Core Features</h3><ul><li><strong>Component-scoped by default</strong> — shortcuts are automatically removed when the component unmounts (no more useEffect cleanup boilerplate)</li><li><strong>Performance first</strong> — internal usage of useCallback + useMemo minimizes re-renders</li><li><strong>Smart input filtering</strong> — shortcuts are ignored when users are typing in &lt;input&gt;, &lt;textarea&gt;, or &lt;select&gt;</li><li><strong>Flexible options</strong> — control preventDefault, stopPropagation, and enabled state per shortcut</li><li><strong>Single + batch registration</strong> — useKeyboardShortcut for one, useKeyboardShortcuts for many</li><li><strong>Full TypeScript support</strong> — excellent inference and type safety</li><li><strong>Zero dependencies</strong> — just React ≥16.8</li></ul><h3>Quick Start</h3><p><strong>Installation</strong></p><pre>npm install @amarkanala/react-keyboard-shortcuts<br># or<br>yarn add @amarkanala/react-keyboard-shortcuts<br># or<br>pnpm add @amarkanala/react-keyboard-shortcuts</pre><p><strong>Single shortcut — Save action</strong></p><pre>import { useState } from &#39;react&#39;<br>import { useKeyboardShortcut } from &#39;@amarkanala/react-keyboard-shortcuts&#39;</pre><pre>export function Editor() {<br>  const [message, setMessage] = useState(&#39;&#39;)</pre><pre>  useKeyboardShortcut(&#39;ctrl+s&#39;, (e) =&gt; {<br>    e.preventDefault()<br>    setMessage(&#39;Document saved! ✨&#39;)<br>    // your save logic here...<br>  })</pre><pre>  return (<br>    &lt;div&gt;<br>      &lt;h2&gt;Press Ctrl+S to save&lt;/h2&gt;<br>      &lt;p&gt;{message}&lt;/p&gt;<br>    &lt;/div&gt;<br>  )<br>}</pre><p><strong>Multiple shortcuts in one go</strong></p><pre>import { useKeyboardShortcuts } from &#39;@amarkanala/react-keyboard-shortcuts&#39;</pre><pre>function AppShell() {<br>  useKeyboardShortcuts({<br>    &#39;ctrl+s&#39;: (e) =&gt; {<br>      e.preventDefault()<br>      console.log(&#39;Save triggered&#39;)<br>    },<br>    &#39;ctrl+o&#39;: openFileDialog,<br>    &#39;ctrl+z&#39;: undo,<br>    &#39;ctrl+shift+z&#39;: redo,<br>    &#39;esc&#39;: closeModal,<br>    &#39;f1&#39;: showHelpPanel,<br>  })</pre><pre>  return &lt;YourAppContent /&gt;<br>}</pre><p><strong>Advanced — Conditional + custom options</strong></p><pre>useKeyboardShortcut(<br>  &#39;ctrl+shift+z&#39;,<br>  redoAction,<br>  {<br>    preventDefault: true,<br>    stopPropagation: false,<br>    enabled: canRedo &amp;&amp; !isLoading,<br>  }<br>)</pre><h3>What’s next?</h3><p>This is v0.1 — the foundation is solid, battle-tested with Jest, and TypeScript-ready.</p><p>Planned improvements (help welcome!):</p><ul><li>Global / named scope support (for app-wide shortcuts)</li><li>Nice-to-have: shortcut conflict visualization / debug mode</li><li>Better macOS symbol display helpers (⌘ vs Ctrl)</li><li>Optional shortcut cheat-sheet component</li></ul><h3>Give it a try!</h3><p>Head over to the repo: 👉 <a href="https://github.com/amarkanala/react-keyboard-shortcuts?referrer=grok.com"><strong>https://github.com/amarkanala/react-keyboard-shortcuts</strong></a></p><p>Stars, forks, issues, PRs, and feedback are <strong>very</strong> welcome — especially real-world usage stories!</p><p>Whether you’re building the next developer tool, internal dashboard, or creative app — I hope this library saves you the headache I had many times before.</p><p>Happy coding (and shortcut-ing)!</p><p>#React #JavaScript #TypeScript #OpenSource #WebDevelopment #KeyboardShortcuts #ReactHooks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9edefbf92bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get “variable” name as a string in JavaScript]]></title>
            <link>https://medium.com/@amarkanala/get-variable-name-as-a-string-in-javascript-cc8c5443df4a?source=rss-ba44d0d0a932------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc8c5443df4a</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[javscript]]></category>
            <dc:creator><![CDATA[Amar Kanala]]></dc:creator>
            <pubDate>Sun, 13 Sep 2020 19:22:19 GMT</pubDate>
            <atom:updated>2020-09-13T19:22:19.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V_Xp4qR_UjwpEGGk" /><figcaption>Photo by <a href="https://unsplash.com/@jontyson?utm_source=medium&amp;utm_medium=referral">Jon Tyson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There might be a usecase to get variable name as a string, perhaps for logging purposes. We can do this by constructing object using shorthand and then pulling out the first property name with array destructuring</p><p>Here’s an example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a7bfc43bba48ca57c509a665ddffd508/href">https://medium.com/media/a7bfc43bba48ca57c509a665ddffd508/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc8c5443df4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>