<?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: Sanya Gupta</title>
    <description>The latest articles on DEV Community by Sanya Gupta (@bstok).</description>
    <link>https://dev.to/bstok</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%2F4154636%2F2078eef6-6c7b-439b-b265-3643c0b2167e.jpg</url>
      <title>DEV Community: Sanya Gupta</title>
      <link>https://dev.to/bstok</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bstok"/>
    <language>en</language>
    <item>
      <title>DropFolder: Find Your Event Photos from Massive Google Drives Instantly</title>
      <dc:creator>Sanya Gupta</dc:creator>
      <pubDate>Sun, 04 Oct 2026 13:07:15 +0000</pubDate>
      <link>https://dev.to/bstok/dropfolder-find-your-event-photos-from-massive-google-drives-instantly-31a1</link>
      <guid>https://dev.to/bstok/dropfolder-find-your-event-photos-from-massive-google-drives-instantly-31a1</guid>
      <description>&lt;p&gt;This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Every time a college event, trip, or wedding wraps up, someone drops a massive Google Drive link containing thousands of unorganized photos. Finding your own photos usually means spending hours manually scrolling through dozens of subfolders.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;DropFolder&lt;/strong&gt; to solve this exact problem for my friends. &lt;/p&gt;

&lt;p&gt;Instead of hunting for photos manually, you simply paste the public Google Drive folder link and upload a single selfie. &lt;strong&gt;DropFolder&lt;/strong&gt; scans through all the subfolders in the Drive, runs open-source face recognition to match your face against every photo, and gives you a clean gallery of just your pictures ready to download.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;The app is deployed separately across two services on Render:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend App:&lt;/strong&gt; &lt;a href="https://dropfolder-frontend.onrender.com" rel="noopener noreferrer"&gt;https://dropfolder-frontend.onrender.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend API:&lt;/strong&gt; &lt;a href="https://dropfolder.onrender.com" rel="noopener noreferrer"&gt;https://dropfolder.onrender.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;Check out the full open-source codebase on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/BStok/DropFolder" rel="noopener noreferrer"&gt;https://github.com/BStok/DropFolder&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;The app decouples heavy multi-photo scanning into a stream-and-match pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Google Drive Streamer:&lt;/strong&gt; Parses the public Drive link, traverses all nested folders, and streams photo thumbnails directly in-memory using &lt;code&gt;PIL&lt;/code&gt; and &lt;code&gt;io.BytesIO&lt;/code&gt; without writing huge image files to disk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Face Embedding:&lt;/strong&gt; Uses &lt;strong&gt;InsightFace&lt;/strong&gt; (ArcFace architecture on ONNX Runtime) to detect faces and extract 512-dimensional floating-point vectors for every detected face.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NumPy Cosine Similarity Engine:&lt;/strong&gt; Rather than relying on heavy vector database dependencies for an MVP, I represented face embeddings directly as &lt;strong&gt;NumPy matrices&lt;/strong&gt;. When a user uploads a selfie, its target vector is compared against the event matrix using dot-product cosine distance math in milliseconds.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Using open-source AI models and self-hosting over proprietary closed APIs (like AWS Rekognition or Azure AI Vision) was critical for three key reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Biometric Privacy &amp;amp; Data Control:&lt;/strong&gt; Facial embeddings and selfies contain sensitive biometric data. Proprietary APIs force you to send your friends' face data to corporate cloud servers. By running an open-weight model directly inside our self-hosted backend, photos and biometric embeddings remain under our control and are discarded after processing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero API Cost Escalation:&lt;/strong&gt; Running closed APIs against event folders containing 2,000+ high-res photos incurs heavy per-image scanning and storage fees. Open-source models like InsightFace allow processing thousands of faces for $0 in API fees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mathematical Freedom:&lt;/strong&gt; Having direct access to raw 512-d feature vectors from open weights meant I didn't need black-box API lock-in; I could write a lightweight, hyper-fast NumPy matrix comparison script in just a few lines of Python.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
