<?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: Gaurav Pandey</title>
    <description>The latest articles on DEV Community by Gaurav Pandey (@gaurav_pandey).</description>
    <link>https://dev.to/gaurav_pandey</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%2F4272638%2Fa770afc4-aba5-45a4-ac51-3c8269aa1b06.png</url>
      <title>DEV Community: Gaurav Pandey</title>
      <link>https://dev.to/gaurav_pandey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gaurav_pandey"/>
    <language>en</language>
    <item>
      <title>I built a pixel pet and a shooting star that hide on your website</title>
      <dc:creator>Gaurav Pandey</dc:creator>
      <pubDate>Sun, 29 Nov 2026 16:27:26 +0000</pubDate>
      <link>https://dev.to/gaurav_pandey/i-built-a-pixel-pet-and-a-shooting-star-that-hide-on-your-website-1345</link>
      <guid>https://dev.to/gaurav_pandey/i-built-a-pixel-pet-and-a-shooting-star-that-hide-on-your-website-1345</guid>
      <description>&lt;p&gt;Most websites are polite and a little bit dull. I wanted something that rewards the people who look closely, so I made &lt;strong&gt;joypacket&lt;/strong&gt;: small React components that hide on a page like easter eggs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F270bn0cvcff30sx2s2tp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F270bn0cvcff30sx2s2tp.gif" alt="A star shoots across a page and lands a wish while a pixel cat looks up" width="720" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pixel Pet&lt;/strong&gt; peeks over the edge of the window. It falls asleep when you ignore it, wakes when you click its head, and talks back. There are five pets (cat, dog, bunny, fox, bear) in 18 hand-drawn variants.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wish Star&lt;/strong&gt; is a tiny star in the corner. Click it and it charges up, flies across the screen leaving a trail, and lands a wish. A wish can be plain text, a link, or a code that copies to your clipboard. About one launch in ten is a rare golden one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;WishStar&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"joypacket/wish-star"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;PixelCat&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"joypacket/pets"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;PixelCat&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bottom-left"&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;WishStar&lt;/span&gt; &lt;span class="n"&gt;position&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"right-center"&lt;/span&gt; &lt;span class="n"&gt;sound&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;A few things I enjoyed building&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The star is just a DOM button.&lt;/strong&gt; The full-screen canvas only exists during the flight, so there is no cost while it waits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No sound files.&lt;/strong&gt; The whoosh and chime are synthesized with the Web Audio API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The pet and the star never import each other.&lt;/strong&gt; The star fires a window event when it launches and lands, and the pet listens for it. If both are on the page, the cat looks up and says "Did you see that?!"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Landing spots avoid your content.&lt;/strong&gt; The wish picks a spot away from links, buttons, headings and images.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It works with Next.js (the components are "use client" and safe to render on the server), respects prefers-reduced-motion, and the star is a real keyboard-focusable button.&lt;/p&gt;

&lt;p&gt;Try it: &lt;a href="https://gaurav-pndy.github.io/joypacket/" rel="noopener noreferrer"&gt;Live Demo&lt;/a&gt; · &lt;a href="https://github.com/gaurav-pndy/joypacket" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://www.npmjs.com/package/joypacket" rel="noopener noreferrer"&gt;npm&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i joypacket
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I'd love your feedback. This is my first published npm package, so I'm especially curious about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does it feel delightful or distracting on a real site?&lt;/li&gt;
&lt;li&gt;Is the API easy to use? Is anything confusing or missing?&lt;/li&gt;
&lt;li&gt;Anything that breaks in your framework, browser or screen reader?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And what tiny delight should come next?&lt;/p&gt;

&lt;p&gt;Issues and ideas are welcome on &lt;a href="https://github.com/gaurav-pndy/joypacket" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

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