<?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 Sahil Kumar on Medium]]></title>
        <description><![CDATA[Stories by Sahil Kumar on Medium]]></description>
        <link>https://medium.com/@Sahilv05?source=rss-fe84a8599a90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nYytVn5emdYl1MFQv1K9wQ.jpeg</url>
            <title>Stories by Sahil Kumar on Medium</title>
            <link>https://medium.com/@Sahilv05?source=rss-fe84a8599a90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:21:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Sahilv05/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[How Google Maps Actually Adds New Roads and Flyovers: A Technical Deep Dive]]></title>
            <link>https://medium.com/@Sahilv05/how-google-maps-actually-adds-new-roads-and-flyovers-a-technical-deep-dive-ca4bfcb7654e?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca4bfcb7654e</guid>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 04:31:03 GMT</pubDate>
            <atom:updated>2026-08-10T04:31:03.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iz3-cmmUTR4TlVM8HZ6m7w.png" /></figure><p>Every day, somewhere in the world, a new flyover opens, a highway extension gets paved, or a residential street finally connects two neighborhoods that used to require a ten-minute detour. Within days sometimes hours that change shows up in Google Maps. No app update required. No manual redraw that you can see. It just appears.</p><p>That feels like magic until you realize it isn’t magic at all it’s a genuinely large piece of distributed systems and machine learning engineering, built and refined over almost two decades. This post breaks down, stage by stage, how a road goes from “freshly built” to “a routable segment in your navigation app,” based on what Google has publicly documented in its engineering blogs, patents, and research papers.</p><p>A quick caveat before we start: Google has never published its literal internal source code or system architecture diagrams. What follows is a synthesis of publicly available information official blog posts, academic papers co-authored by Google researchers, patents, and conference talks not a leaked internal document. But the picture it paints is detailed and consistent enough to explain, with real technical depth, how this system works.</p><h3>Why This Is a Genuinely Hard Problem</h3><p>Before diving into the architecture, it’s worth appreciating the scale of what’s being solved.</p><ul><li>The global road network is estimated at over 60 million kilometers of mapped roads, and that number keeps growing.</li><li>Roads change constantly new construction, closures, lane reconfigurations, renamed streets, temporary diversions, seasonal roads.</li><li>The data has to work at two completely different resolutions at once: a road needs to exist as a routable graph edge (for turn-by-turn navigation) <em>and</em> as a precisely rendered geometric shape (for the visual map you see).</li><li>Ground truth is expensive. You can’t just crowdsource everything, because bad actors can and do submit false edits, and safety-critical information (a one-way street, a blocked turn) has real consequences if it’s wrong.</li><li>Coverage varies wildly. Dense Street View coverage in California is a completely different data environment than a newly built rural highway in a country with sparse imagery.</li></ul><p>The solution Google converged on isn’t a single algorithm it’s a layered pipeline where automated systems do the heavy lifting at scale, and humans intervene precisely where automation is unreliable.</p><h3>The Pipeline, End to End</h3><p>At a high level, the system looks like this:</p><pre>┌─────────────────────────────────────────────────────────────┐<br>│                      DATA COLLECTION LAYER                    │<br>│                                                                 │<br>│   Satellite &amp;        Street View +      Anonymized      Authoritative │<br>│   aerial imagery      LiDAR + Trekkers   GPS probe data   &amp; community data │<br>└───────────┬───────────────┬─────────────────┬──────────────┬─┘<br>            │               │                 │              │<br>            ▼               ▼                 ▼              ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│              CHANGE DETECTION  (imagery time-series diff)      │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│        ML FEATURE EXTRACTION (segmentation, tracing,           │<br>│        GPS-trajectory fusion, attribute classification)        │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│           GEOSPATIAL ALIGNMENT (photogrammetry, centimeter-    │<br>│                        level registration)                     │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│         HUMAN VERIFICATION  (Ground Truth operators, the       │<br>│                    internal &quot;Atlas&quot; editing tool)               │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│      CONFLATION → MASTER ROAD GRAPH  (merge, resolve           │<br>│                conflicts, version the graph)                    │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>┌─────────────────────────────────────────────────────────────┐<br>│         PUBLISH &amp; SERVE  (tile generation, incremental          │<br>│              delta rollout to apps, Maps API, Android)          │<br>└───────────────────────────────┬───────────────────────────────┘<br>                                 ▼<br>                    ↻ Feedback loop: Report a problem,<br>                    Local Guides, live community disruptions<br>                    feed straight back into the top of the<br>                    pipeline for the next pass.</pre><p>Now let’s go through each stage in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*p6gSMRp5y1FGce3pDZbtog.png" /></figure><h3>Stage 1: Data Collection — Four Independent Streams</h3><p>Google doesn’t rely on one data source, because no single source is trustworthy or complete on its own. It fuses four largely independent streams.</p><h3>Satellite and aerial imagery</h3><p>High-resolution satellite and aerial photography gets refreshed on a rolling basis across the globe. This is the primary sensor for detecting <em>that something changed</em> a construction site, a new alignment, a flyover under construction even in places where no car has ever driven.</p><h3>Street View: cars, LiDAR, and “trekkers”</h3><p>Google’s Street View fleet is more than cameras bolted to a car roof. Each vehicle carries its own photo-processing hardware and LiDAR sensors that measure distance with laser pulses, which is what makes it possible to derive precise 3D geometry not just a flat photo from a drive-by. For places cars can’t reach, Google uses the Street View Trekker: a backpack-mounted camera rig that’s been carried by hikers, boats, camels, and even sheep to capture imagery in places with no road access at all.</p><h3>Anonymized GPS probe data</h3><p>Android phones running Google Maps contribute anonymized location trace data. This is enormously valuable for a subtly different reason than imagery: it tells you not just what a road <em>looks like</em>, but how people actually <em>drive</em> on it which direction traffic flows, whether a segment is actually used as a through-road, and where the real, physical connectivity is (a satellite image might suggest two road segments touch, but if millions of trips never make that connection, it probably isn’t actually drivable).</p><h3>Authoritative and community data</h3><p>Since 2008, Google has run an internal effort known as Ground Truth, which licenses and ingests high-quality data directly from governments, municipal planning departments, and postal services, and combines it with everything Google gathers itself. On top of that sits crowdsourced input: Local Guides making edits, and the “Report a problem” tool anyone can use to flag an error directly on the map.</p><p>None of these four sources is individually sufficient. Government data can be stale or wrong. Satellite imagery can misclassify a driveway as a road. GPS traces can be noisy or sparse in low-usage areas. Community edits can be malicious or mistaken. The system is designed around cross-checking these against each other rather than trusting any single feed.</p><h3>Stage 2: Automated Change Detection</h3><p>Here’s a subtlety that’s easy to miss: most of the work in “finding new roads” isn’t actually about detecting roads it’s about detecting <em>change</em>.</p><p>If you just ran a road-detection model on a single satellite image, you’d flag an enormous number of false positives: dirt paths, farm access tracks, walking trails, and drainage channels all look geometrically similar to roads in top-down imagery. Researchers working on this exact problem (including work published by Google researchers) found that the fix is to compare a <em>time series</em> of images of the same location rather than analyzing a single snapshot. If a curvilinear feature has looked the same for the last five years of imagery, it’s very likely a footpath or a field boundary, not a new road because it hasn’t changed. Only segments that show visible change between an old image and a recent one get treated as candidate new construction.</p><p>This matters for a second reason: genuinely new roads are <em>rare</em> relative to the size of the existing map, which makes it expensive to hand-label enough “new road” examples to train a fully supervised model. So the detection approach leans on largely self-supervised or weakly supervised techniques using the <em>existing</em> map as ground truth for what a road already looks like, then hunting specifically for deviations from that baseline in fresh imagery, rather than requiring humans to label thousands of brand-new construction examples from scratch.</p><h3>Stage 3: ML Feature Extraction Turning Pixels into a Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Py4RlplP4TdBPwex3sJh1w.png" /></figure><p>Once a region is flagged as “something changed here,” the next job is turning that raw signal into a structured, routable representation: a graph of nodes (intersections) and edges (road segments), each with attributes like road class, number of lanes, and turn restrictions.</p><p><strong>Road tracing and segmentation.</strong> A family of computer vision techniques semantic segmentation models and iterative tracing algorithms (the academic literature calls approaches like this “RoadTracer”-style) pull road centerlines out of imagery pixel by pixel, then stitch those centerlines into connected paths rather than isolated fragments.</p><p><strong>Fusing imagery with GPS trajectories.</strong> Imagery alone often gets connectivity wrong it can’t easily tell whether two roads that appear to touch in a satellite photo are actually connected, or whether one passes over the other on a flyover with no connection at all. This is exactly where GPS trace data earns its keep: by fusing aerial imagery with millions of real driving trajectories (an approach described in multiple published “aerial-plus-trajectory” road-extraction papers), the system can confirm connectivity empirically if real trips consistently flow from segment A to segment B, that’s strong evidence they’re actually joined; if no trip ever makes that transition, they’re probably not.</p><p><strong>Attribute extraction from Street View.</strong> In parallel, computer vision models scan Street View imagery for road signs, lane markings, traffic signals, and turn-restriction signage, extracting structured attributes (like posted speed limits) directly from photos of physical signs. Google has described training these sign-recognition models on hundreds of different sign formats worldwide, since a speed limit sign in Germany might show only a number while a U.S. sign spells out “Speed Limit.”</p><h3>Stage 4: Geospatial Alignment (Photogrammetry)</h3><p>A new road is only useful on the map if its geometry lines up precisely with everything already there. Google has described using photogrammetry techniques to align newly captured imagery with the existing map data down to centimeter-level accuracy. This step matters enormously for something like a flyover: the elevated road surface and the surface street beneath it occupy nearly the same latitude/longitude footprint, and getting the alignment slightly wrong could cause the map to represent them as touching or intersecting when they’re actually on entirely different elevation planes.</p><h3>Stage 5: Human-in-the-Loop Verification</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPJXARJzVQMEdtO832BLpA.png" /></figure><p>This is the part that surprises people who assume it’s “all AI.” It isn’t, and Google has been fairly open about that.</p><p>The Ground Truth project runs on an internal tool reported to be a large Java-based application called Atlas where trained human map operators review layers of aerial imagery, GPS data, and historical map states, and directly edit the map graph: connecting new segments, retiring roads that no longer exist, correcting a government dataset against what Street View actually shows on the ground. A Google engineering director overseeing this work once put the scale in blunt terms: it takes hundreds of people to map a typical country properly. This isn’t a fully automated pipeline with humans as an afterthought human review is a deliberate, load-bearing stage.</p><p>Human review is especially important for resolving <em>conflicts</em> between data sources. A classic example Google has described: a government dataset says a particular road is two-way, but the anonymized GPS traffic pattern looks like a one-way street. Rather than trusting either source blindly, an operator pulls up Street View imagery of that exact stretch of road, looks for actual physical signage, and makes the final call. That’s a judgment call a fully automated system would get wrong often enough to matter.</p><h3>Stage 6: Conflation and the Master Road Graph</h3><p>Once a change is verified, it needs to be merged “conflated,” in mapping terminology into a single, authoritative graph representation of the road network. This isn’t a trivial database write. The system has to:</p><ul><li>Match the new segment to existing nodes without creating duplicate, overlapping representations of the same physical road.</li><li>Propagate attribute changes (a new speed limit, a new turn restriction) without breaking routing for the millions of trips currently being calculated against that graph.</li><li>Version the change, so it can be rolled back if it turns out to be wrong.</li></ul><p>The result is a living graph database arguably one of the largest and most frequently updated geospatial datasets in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWA-DSo26iB0LDPe7VCA7Q.png" /></figure><h3>Stage 7: Publish and Serve</h3><p>Verified changes don’t get pushed out as one giant nightly rebuild of the entire world map. They roll out as incremental, tile-based updates, so navigation apps, the web client, and the Google Maps Platform API all stay synchronized without requiring users to redownload enormous datasets. At global scale, Google has stated this pipeline produces more than 100 million map updates every single day a figure that only makes sense once you understand it’s the output of a continuous, always-running pipeline rather than a periodic batch process.</p><h3>Stage 8: The Feedback Loop</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_yYrzN8iKB_mvfVlTXAzUQ.png" /></figure><p>The system doesn’t stop at “publish.” Every road that goes live becomes a new observation point:</p><ul><li><strong>Report a problem</strong> lets any user flag something wrong directly on the map.</li><li><strong>Local Guides</strong>, a community of highly active contributors, make direct edits and corrections.</li><li><strong>Real-time community disruption reports </strong>construction, crashes, closures get contributed by drivers at a reported rate of more than 10 million submissions per day.</li></ul><p>These signals feed back into the same pipeline described above, effectively closing the loop: the map that ships today becomes part of the training and verification data for tomorrow’s updates.</p><h3>Case Study: Flyovers and Narrow Roads in India</h3><p>Since flyovers are a distinctly Indian-English term for overpasses, it’s worth looking at how Google handled this as a concrete, documented example rather than staying purely abstract.</p><p>Google built a dedicated AI model specifically for Indian roads, because India’s road network is unusually dense, irregular, and hard to characterize with the same signals that work well in, say, suburban North America. The model estimates road width by fusing multiple signals together: satellite imagery, Street View imagery, the classified road type, the distance between buildings lining the street, how much of the road surface is paved, and even secondary cues like tree cover, utility poles, and drainage. That width estimate is then used to steer four-wheeler drivers away from roads that are technically drivable but impractically narrow, and to insert warning callouts when a narrow stretch is unavoidable.</p><p>The same initiative added flyover-specific navigation logic. Previously, Maps used the generic instruction “take the ramp” for getting on or off an elevated road a term that isn’t how flyovers are described in everyday Indian usage. The update added explicit flyover callouts during navigation, so the app tells you about the upcoming flyover in language that actually matches how people talk about it locally.</p><p>This is a good example of a broader pattern: the core pipeline (imagery → detection → extraction → verification → publish) is global, but it’s tuned with region-specific models where a one-size-fits-all approach breaks down.</p><h3>Where AI Is Heading Next: Multimodal Models</h3><p>The most recent evolution in this system is the shift toward large multimodal models doing more of the “understanding” work directly. Google’s newer Immersive Navigation feature uses Gemini models to analyze fresh, real-world imagery from Street View and aerial sources in order to understand landmarks, medians, overpasses, and terrain along a specific route in something closer to real time, rather than relying purely on pre-extracted, static attributes. This is a meaningful architectural shift: instead of a rigid pipeline of narrow, purpose-built classifiers (one model for speed-limit signs, another for lane markings, another for road width), a general multimodal model can be prompted to reason over an image the way a human reviewer would at least for tasks where that flexibility matters more than raw throughput.</p><h3>Challenges and Open Problems</h3><p>It’s worth being honest about where this system still struggles, because none of the above is close to solved:</p><ul><li><strong>Imagery coverage gaps.</strong> Rural and newly urbanizing regions in the developing world often have lower-resolution satellite imagery and thinner Street View coverage, which slows down both detection and verification.</li><li><strong>Ambiguity at the edges.</strong> Is a wide dirt track a “road” for mapping purposes, or a farm access path? These classification calls don’t always have a clean answer, and different use cases (walking directions vs. truck routing) may want different answers.</li><li><strong>Verification cost and latency.</strong> Human review doesn’t scale linearly with the size of the road network it’s the deliberate bottleneck that keeps quality high, but it also means some changes take longer to appear than users might expect.</li><li><strong>Privacy in GPS data.</strong> Deriving connectivity from real trip data only works if it’s aggregated and anonymized carefully enough that individual trips can’t be reconstructed — a genuinely hard privacy engineering problem sitting underneath a mapping problem.</li><li><strong>Abuse in crowdsourced edits.</strong> Any system that accepts public contributions has to defend against bad-faith edits, from simple vandalism to more targeted manipulation, without becoming so locked-down that legitimate community corrections get ignored.</li></ul><h3>The Takeaway</h3><p>The reason a new flyover shows up in your Google Maps app within days of opening isn’t one clever algorithm it’s a layered system where satellite time-series analysis finds <em>where</em> to look, computer vision models figure out <em>what’s there</em>, GPS trajectories confirm <em>how it actually connects</em>, human operators resolve the cases where automation isn’t confident enough, and a continuously-updated graph database makes sure the change reaches your phone without breaking anything else on the map.</p><p>It’s a good example of a broader pattern in large-scale ML systems: the flashy part (AI detecting a road from a satellite photo) is genuinely impressive, but it’s the unglamorous plumbing around it — conflation logic, human review tooling, incremental publishing, feedback loops — that actually makes the system trustworthy enough to route hundreds of millions of people every day.</p><p>Portfolio — <a href="https://sahil-v05.github.io/portfolio/">https://sahil-v05.github.io/portfolio/</a></p><p>Linkedln — <a href="https://www.linkedin.com/in/sahilk2001/">https://www.linkedin.com/in/sahilk2001/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca4bfcb7654e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Big Tech’s Dirty Secret: Every AI Query You Run Has a Neighbor Paying the Price Subtitle.]]></title>
            <link>https://medium.com/@Sahilv05/big-techs-dirty-secret-every-ai-query-you-run-has-a-neighbor-paying-the-price-subtitle-cb0dd06f848c?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb0dd06f848c</guid>
            <category><![CDATA[water]]></category>
            <category><![CDATA[data-centre]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Sat, 16 May 2026 17:25:35 GMT</pubDate>
            <atom:updated>2026-05-16T17:25:35.888Z</atom:updated>
            <content:encoded><![CDATA[<h4>The explosive data center boom is creating a public health crisis in real communities — and most people have no idea it’s happening.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gz1Fgn0Yfe0-wwJaHBs98w.png" /></figure><h3>Every Time You Ask an AI a Question, Somewhere a Machine Wakes Up.</h3><p>Not metaphorically. Literally.</p><p>A server in a building the size of several football fields spins up, draws power, generates heat, pulls water to cool itself down, hums at a frequency loud enough to damage hearing, and floods the surrounding area with light bright enough to disrupt human sleep cycles and confuse migrating birds.</p><blockquote>That building is a data center. And there’s a very good chance one is either near you already — or coming soon.</blockquote><p>Data centers are the physical backbone of the digital world. Every Google search, every ChatGPT prompt, every streamed episode, every cloud-saved photo runs through one. They are, by any measure, essential infrastructure for modern life.</p><p>They are also, for the communities built around them, an escalating public health crisis — one that’s moving fast, powered increasingly by fossil fuels, and landing hardest on the people least equipped to fight back.</p><p>Here’s what’s actually happening. And here’s what you can do about it.</p><h3>What Exactly Is a Data Center?</h3><p>Before the impacts, the basics.</p><p>A data center is a large facility — sometimes hyperscale, spanning hundreds of thousands of square feet — filled with computer servers used for data storage, data analytics, generative AI processing, and streaming services. When you use any major digital platform, your request is routed to one of these facilities, processed, and returned to you in milliseconds.</p><p>The scale of growth is staggering. The AI boom alone has triggered a data center construction wave unlike anything the industry has seen. And many of the facilities being rushed into communities — including parts of Pennsylvania and other regions across the U.S. — are powered not by clean energy but by fossil fuels, including fracked gas.</p><p>That choice — fossil fuels over renewables — is where the public health story begins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBSJ4ASSAfY0gi5bcAXDdA.jpeg" /></figure><h3>The Five Ways Data Centers Harm the Communities Around Them</h3><h4>🔊 1. Noise Pollution — The Hum That Never Stops</h4><p>Data center construction is loud. The heavy equipment, the excavation, the building — all of it creates significant noise disruption for nearby residents.</p><p>But the construction ends. The noise doesn’t.</p><p>Once operational, a data center generates a constant hum from its diesel generators and HVAC systems — the massive heating, ventilation, and air conditioning infrastructure needed to keep thousands of servers from overheating. These facilities can produce noise levels exceeding <strong>90 decibels</strong>.</p><p>For context: sustained exposure to noise above <strong>85 decibels causes permanent hearing damage</strong>. This isn’t a sound you can escape by closing a window. It is present 24 hours a day, 7 days a week, for the lifetime of the facility.</p><p>Long-term consequences include hearing loss, chronic stress, sleep disruption, and measurably decreased quality of life for everyone within range.</p><h4>💡 2. Light Pollution — The Night That Never Comes</h4><p>Hyperscale data centers require all-night lighting. Full stop.</p><p>For human neighbors, this means constant artificial light invading their homes and disrupting their body’s natural circadian rhythms — including melatonin production, the hormone that regulates sleep. The result is chronic insomnia, fatigue, and the cascade of health consequences that follow long-term sleep deprivation.</p><p>For wildlife, the consequences are equally serious. Light pollution is already documented as disrupting migration patterns and habitat development in birds, butterflies, bats, and other species — fragmenting ecosystems that took generations to establish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMG99eWeZsOKZkhvsMEixA.png" /></figure><h4>🌫️ 3. Air Pollution — The Invisible Threat With Very Real Numbers</h4><p>This is where the data gets alarming.</p><p>Data centers — especially those powered by gas — emit nitrogen oxides, methane, volatile organic compounds, and fine particulate matter. These are not theoretical pollutants. They are documented causes of respiratory disease, cardiovascular conditions, and elevated cancer risk in nearby communities.</p><p>A September 2025 study quantified the scale of the coming crisis. A 2025 model projects that U.S. data centers by 2030 could cause approximately <strong>600,000 asthma symptom cases</strong> and <strong>1,300 premature deaths</strong> annually — exceeding one-third of all asthma deaths in the United States each year. The estimated public health burden: <strong>more than $20 billion</strong>.</p><p>Those aren’t projections for a distant future. The facilities creating those outcomes are being built right now.</p><p>The people most at risk? Children, developing fetuses, pregnant people, the elderly, and individuals already living with chronic respiratory or cardiovascular conditions. The people who can least afford another health burden — and who had no say in the facility being built next door.</p><h4>💧 4. Water Waste — Draining the Supply That Should Belong to Residents</h4><p>Servers generate heat. Heat requires cooling. Cooling requires water — enormous quantities of it.</p><p>A large data center can consume up to <strong>5 million gallons of water daily</strong>. That water is drawn from local supplies — the same aquifers, reservoirs, and municipal systems that residents depend on for drinking, hygiene, and agriculture.</p><p>In water-scarce regions, this isn’t an inconvenience. It’s a crisis in the making.</p><p>In 2023, the state of Arizona revoked construction permits for new homes in Maricopa County due to groundwater scarcity. At the time, Meta had one data center in the county. Microsoft had two. Google had one, with a second in development.</p><p>Homes were denied. Data centers stayed.</p><p>A 2025 report by SourceMaterial and The Guardian found that Google has seven active data centers in water-scarce areas of the United States — with plans to build six more. The communities around these facilities face growing water insecurity, with real downstream consequences for public health.</p><h4>💸 5. Higher Energy Bills Residents Paying for Capacity They Didn’t Ask For</h4><p>This one hits every household not just those closest to the facility.</p><p>Data centers are classified as “large load customers” by utility companies. When a grid operator must add infrastructure to accommodate their enormous energy demands, those costs can flow to every ratepayer in the region — including residential customers who never benefited from the data center being there at all.</p><p>In some cases, utilities negotiate <em>lower</em> rates to attract large data center clients — meaning the shortfall is explicitly covered by other customer segments. You. Your neighbors. Small businesses. Everyone.</p><p>Last year, analysts estimated a <strong>20% rate increase for Pennsylvania households</strong> connected to this dynamic. The U.S. Energy Information Administration reports that the average American has already paid <strong>37% more for electricity since 2020</strong>. With U.S. energy demand expected to grow 2.5% annually over the next decade, residential bills are almost certainly heading higher — and data center load is a significant part of why.</p><p>Pennsylvania Governor Josh Shapiro recently announced standards requiring data center developers to build their own energy sources or pay for grid upgrades themselves — a meaningful step. But enforcement timelines remain unclear, and the broader problem persists nationwide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvtl4NRthHC_DpdFHY4LIQ.png" /></figure><h3>What You Can Actually Do</h3><p>The companies behind the data center boom move fast. They arrive in communities with promises of jobs and economic growth. Some communities are pushing back and winning.</p><p>Here’s how to be part of that:</p><p><strong>🔍 Find out what’s already been decided</strong> Check whether your municipality has a data center ordinance. If not, contact your local representatives and urge them to adopt one before the next proposal arrives.</p><p><strong>📢 Show up before approval, not after</strong> Identify whether a public hearing will be required before any proposed data center is approved. These hearings are your most direct opportunity to put concerns on the official record — and to bring neighbors with you.</p><p><strong>📋 Use existing law</strong> Reference nuisance control ordinances that regulate noise, light, and vibration. Reference zoning laws that restrict new industrial facilities. These tools exist. They are underused because most residents don’t know to look for them.</p><p><strong>⚡ Push for clean energy requirements</strong> If a data center is coming regardless, advocate loudly for renewable energy — solar, wind — in both everyday operations and backup generation. The difference between a gas-powered and renewably-powered facility is the difference between a public health hazard and a manageable neighbor.</p><p><strong>📊 Demand transparency</strong> Urge decision makers to require emissions reporting and a community-accessible emergency preparedness plan from any approved facility. You cannot hold an institution accountable for impacts you cannot measure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i-_bnomi1kbSF2t8XioFow.png" /></figure><h3>The Bigger Picture</h3><p>The data center boom is not slowing down. The AI revolution, the streaming economy, the cloud infrastructure underpinning every major business — all of it requires more servers, more facilities, more power, more water.</p><p>That demand is real. And it doesn’t have to be met the way it’s currently being met.</p><p>This moment is an opportunity — perhaps a rare one — to insist that the infrastructure powering the digital future be built in ways that don’t poison the physical present. That means renewable energy. That means equitable siting. That means genuine community input before ground is broken, not apologies after the hum starts.</p><p>The companies making these decisions respond to pressure. Pressure comes from informed, organized communities.</p><p>That starts with knowing what’s actually at stake.</p><p>Linkedln — <a href="https://www.linkedin.com/in/sahilk2001/">https://www.linkedin.com/in/sahilk2001/</a></p><p>Gumroad — <a href="https://sahilv05.gumroad.com/l/rcdbw">https://sahilv05.gumroad.com/l/rcdbw</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb0dd06f848c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CuePair: The $0 Camera Crew Every Solo Content Creator Needs]]></title>
            <link>https://medium.com/@Sahilv05/cuepair-the-0-camera-crew-every-solo-content-creator-needs-f3e64a4519e2?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3e64a4519e2</guid>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[video-editing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Thu, 14 May 2026 07:16:59 GMT</pubDate>
            <atom:updated>2026-05-14T07:16:59.965Z</atom:updated>
            <content:encoded><![CDATA[<p>No team. No teleprompter. No reshoots. CuePair is the recording tool that shouldn’t have taken this long to exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JW3eifXxEiG8yqLpMEBQag.jpeg" /></figure><h3>He Was Just Trying to Make a Video About Claude Mythos.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rJNWUIOqB-Aso_fP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P3lVa3cGQDnk-Xvx" /><figcaption>Photo by Detail .co on Unsplash</figcaption></figure><p>My brother is a content creator. Solo. No team, no editor, no budget for gear beyond the basics.</p><p>A few months ago he was making a video about Claude Mythos the AI model. He researched it, structured his thoughts, learned his script. He knew what he wanted to say.</p><p>What followed was almost two hours of his evening.</p><p>He set up his camera for landscape. Record. Review. Not quite right. Adjust. Record again. Then realize he also needed a portrait version for Reels. Reposition the camera. Reset the framing. Record again. Forget a line halfway through. Start over. Forget where he was looking. Start over again.</p><p>I was there for some of it, helping reposition the camera between takes. At some point I stopped watching the video and started watching the <em>process</em> — and I couldn’t unsee how broken it was.</p><h3>The Problem Nobody Talks About (But Every Solo Creator Feels)</h3><p>Here’s what the content creation world doesn’t say out loud enough:</p><p>The workflow for a solo creator is genuinely broken.</p><p>YouTube wants 16:9. Instagram Reels wants 9:16. TikTok wants 9:16. LinkedIn wants 16:9. YouTube Shorts wants 9:16.</p><p>So what do most creators do? They shoot everything twice. Or they shoot wide and crop manually in post losing resolution, losing control, spending time they don’t have.</p><p>The ones with budgets hire someone to handle the camera angles. The ones without budgets the beginners, the independents, the people just starting out either burn extra hours or publish in one format and quietly abandon the other.</p><p>And then there’s the script problem layered on top.</p><p>You’ve learned your content. You’re in front of the camera. And your brain, under the pressure of recording, decides that now is an excellent time to forget everything. So you look down at your phone. Your eyes leave the lens. You look like you’re reading because you are. The audience notices. You do another take.</p><p><strong>These aren’t edge cases. This is Tuesday for every solo content creator.</strong></p><h3>What CuePair Actually Does</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTsxOoZy_KDMLAG9rwl6Cw.jpeg" /></figure><p>My colleague @rohitsainier and I built CuePair to solve both of these problems simultaneously — in a single, focused app with no bloat, no accounts, and no internet connection required.</p><blockquote>Here’s what happens when you record with CuePair:</blockquote><h4>🎬 One Take. Two Formats. Automatically.</h4><p>CuePair captures a high-resolution wide 16:9 frame — up to 4K via FaceTime HD on Mac. The moment you stop recording, it immediately renders two files in parallel, locally on your device:</p><ul><li><strong>A 9:16 portrait cut</strong> (1080×1920) — with real-time, smoothed face-tracking that keeps you perfectly centered as you move, eliminating crop jitter</li><li><strong>A 16:9 landscape cut</strong> (3840×2160) — the full, untouched master frame</li></ul><p>Both files land side-by-side in your ~/Movies/CuePair folder. On Apple Silicon, rendering happens faster than real-time. By the time you&#39;ve stood up from your chair, both videos are ready to upload.</p><p>You don’t reposition your camera. You don’t re-record. You just speak — and both formats appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wx_I_Q95vOoQjVJxNG847Q.jpeg" /><figcaption>Preview</figcaption></figure><h4>📖 The Teleprompter That Actually Listens to You</h4><p>The second problem the script, the eye contact, the forgetting needed a different solution.</p><p>Most teleprompter apps scroll at a fixed speed. You set a words-per-minute rate, hit play, and hope you keep up. Pause to think, or slow down on a complex point, and the text races ahead. You’re suddenly three sentences behind what you’re saying.</p><p>CuePair’s teleprompter works differently. It uses <strong>on-device speech recognition</strong> — powered by Apple’s native Speech framework — to listen to what you’re actually saying and scroll the text to match your pace in real time.</p><p>Slow down to think mid-sentence? The text waits. Pick up the pace? It follows. You never lose your place. You never chase the script.</p><p>And because the teleprompter window can be <strong>popped out to an external monitor</strong> placed directly beneath your camera lens, your eyes stay on the lens — not on your keyboard, not on your phone, not on a piece of paper held awkwardly off-screen.</p><p>My brother tried this for the first time and recorded a clean five-minute take in five minutes. The first time. No retakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaJPJtfBlOLWCCUwm8VRTg.jpeg" /><figcaption>Teleprompter Preview</figcaption></figure><h4>🔒 Private by Design. Offline by Architecture.</h4><p>This is the part I’m most deliberate about.</p><p>CuePair uses no third-party SDKs. Every capability — face tracking, speech recognition, video rendering, camera capture — runs through Apple’s own frameworks: AVFoundation, Vision, Speech, AVKit, VideoToolbox.</p><p>The app has <strong>no network entitlement</strong>. That’s not a marketing claim — it literally cannot make an outgoing internet connection. There is no cloud. There are no accounts. There is no telemetry, no analytics, no data collection of any kind.</p><p>Your face, your voice, your script, your video — none of it leaves your device. Ever.</p><p>In a world where most apps are quietly uploading everything to train someone else’s model, CuePair’s privacy isn’t a feature. It’s a philosophy.</p><h3>Who CuePair Is Built For</h3><p>✅ <strong>Solo content creators</strong> who shoot for multiple platforms and are tired of doubling their recording time</p><p>✅ <strong>Beginners</strong> who can’t afford a team or a dedicated teleprompter setup</p><p>✅ <strong>Educators and coaches</strong> who publish long-form YouTube content and short-form Reels simultaneously</p><p>✅ <strong>Podcasters and speakers</strong> who want to add video without adding workflow complexity</p><p>✅ <strong>Anyone</strong> who has ever looked away from the camera lens while recording — and watched their delivery fall apart</p><p><strong>What you need:</strong></p><ul><li>A Mac or iPhone</li><li>A story you want to tell</li><li>One take</li></ul><h3>Ready to Record Smarter?</h3><p>CuePair is launching on the App Store soon — <strong>free for a limited time at launch.</strong></p><p>👉 <strong>Follow me here on Medium</strong> to get notified the moment it goes live, and for behind-the-scenes posts on what we’re building next — audio streaming, multi-device support, and more.</p><p>👉 <strong>Website CuePair</strong> — <a href="https://rohitsainier.github.io/pages/cuepair/#">https://rohitsainier.github.io/pages/cuepair/#</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3e64a4519e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Shared an 8GB File in 45 Seconds — Then Open-Sourced the Tool Behind It]]></title>
            <link>https://medium.com/@Sahilv05/i-shared-an-8gb-file-in-45-seconds-then-open-sourced-the-tool-behind-it-54e29480d49d?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/54e29480d49d</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sharing]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Tue, 12 May 2026 05:24:55 GMT</pubDate>
            <atom:updated>2026-05-12T05:24:55.092Z</atom:updated>
            <content:encoded><![CDATA[<p>A deep dive into how I built LocalShare, a lightweight Node.js app that shares files, text, code snippets, and URLs across devices on the same Wi-Fi — without cloud storage, logins, or file size limits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SlkC-r-F6OTB1VYD89tYQ.png" /></figure><p>A few weeks ago, I needed to send a huge video file to a teammate sitting right next to me.</p><p>The file was over 8GB.</p><p>My first instinct was the same one most of us have: upload it to WhatsApp, Google Drive, or some cloud storage service.</p><p>Then I stopped and asked myself:</p><blockquote><em>Why am I uploading a file to the internet just so someone on the same Wi-Fi network can download it again?</em></blockquote><p>That felt absurd.</p><p>So I built <strong>LocalShare</strong> — a simple, open-source tool that turns any machine on your network into a local file and clipboard sharing server.</p><p>No login.</p><p>No installation.</p><p>No internet.</p><p>No file size limits.</p><p>Just open a browser and start sharing.</p><p>And the result?</p><blockquote><em>I transferred an 8GB file in roughly 45 seconds.</em></blockquote><p>In this article, I’ll explain:</p><ul><li>Why I built LocalShare</li><li>How it works internally</li><li>The Node.js architecture</li><li>The streaming upload system</li><li>Key code snippets</li><li>How you can use or extend it yourself</li></ul><p>The entire backend is implemented in a single server.js file.</p><h3>The Everyday Problem Nobody Talks About</h3><p>Most teams still share files through:</p><ul><li>WhatsApp</li><li>Slack</li><li>Email</li><li>Google Drive</li><li>OneDrive</li></ul><p>That introduces several frustrations:</p><ul><li>Upload and download delays</li><li>File size restrictions</li><li>Duplicate storage consumption</li><li>Internet dependency</li><li>Switching between apps to share URLs or code snippets</li></ul><p>Meanwhile, both devices are often connected to the same router.</p><p>Your local network is already capable of transferring data at extremely high speeds.</p><p>So why route everything through external servers?</p><h3>What Is LocalShare?</h3><p>LocalShare is a small Node.js web server.</p><p>When you run it, it exposes a browser-based interface that any device on the same Wi-Fi can access.</p><p>You can instantly:</p><ul><li>Share files of any size</li><li>Share text and clipboard content</li><li>Share code snippets</li><li>Share URLs</li><li>Download files from any device</li><li>Delete shared files</li></ul><p>If a device has a browser, it works.</p><h3>Real-World Performance</h3><p>In my own workflow, LocalShare transferred:</p><ul><li><strong>8GB in 40–50 seconds</strong></li></ul><p>That’s because the transfer happens directly over the local network.</p><p>No cloud upload.</p><p>No re-download.</p><p>No third-party bottlenecks.</p><h3>Project Architecture</h3><p>Here is the high-level architecture.</p><pre>Browser (Desktop)<br>        │<br>        │ HTTP Requests<br>        ▼<br>┌────────────────────┐<br>│ Node.js Server     │<br>│ server.js          │<br>├────────────────────┤<br>│ Shared Clipboard   │<br>│ File Upload API    │<br>│ File Download API  │<br>│ Delete API         │<br>│ Multipart Parser   │<br>└────────────────────┘<br>        │<br>        ▼<br>uploads/ folder<br>        │<br>        ▼<br>Browser (Laptop / Phone / Tablet)</pre><h3>Technology Stack</h3><p>The project uses only built-in Node.js modules</p><pre>const http = require(&#39;http&#39;);<br>const fs   = require(&#39;fs&#39;);<br>const path = require(&#39;path&#39;);<br>const os   = require(&#39;os&#39;);</pre><p>No external dependencies.</p><p>No npm install.</p><p>No frameworks.</p><p>This makes the project:</p><ul><li>Lightweight</li><li>Portable</li><li>Easy to understand</li><li>Great for learning backend fundamentals</li></ul><h3>Project Structure</h3><pre>localshare/<br>├── server.js<br>├── index.html<br>└── uploads/</pre><h3>Step 1: Starting the Server</h3><p>The server listens on port 3000.</p><pre>const PORT = 3000;<br>const UPLOAD_DIR = path.join(__dirname, &#39;uploads&#39;);<br><br>if (!fs.existsSync(UPLOAD_DIR)) {<br>  fs.mkdirSync(UPLOAD_DIR);<br>}</pre><p>This ensures the upload directory exists before handling any files.</p><h3>Step 2: Detecting the Local IP Address</h3><p>To let other devices connect, the app automatically finds your machine’s LAN IP.</p><pre>function getLocalIP() {<br>  for (const ifaces of Object.values(os.networkInterfaces())) {<br>    for (const i of ifaces) {<br>      if (i.family === &#39;IPv4&#39; &amp;&amp; !i.internal) {<br>        return i.address;<br>      }<br>    }<br>  }<br>  return &#39;localhost&#39;;<br>}</pre><h3>Step 3: In-Memory Shared Clipboard</h3><p>Clipboard text is stored in a single variable.</p><pre>let sharedText = &#39;&#39;;</pre><p>When one device updates this text, all others can retrieve it.</p><p>Perfect for:</p><ul><li>URLs</li><li>Commands</li><li>Notes</li><li>Code snippets</li></ul><h3>Step 4: Listing Shared Files</h3><p>This helper scans the uploads directory and returns metadata.</p><pre>function getFiles() {<br>  return fs.readdirSync(UPLOAD_DIR).map(f =&gt; {<br>    const s = fs.statSync(path.join(UPLOAD_DIR, f));<br>    return {<br>      name: f,<br>      size: s.size,<br>      time: s.mtimeMs<br>    };<br>  });<br>}</pre><p>Each file includes:</p><ul><li>Name</li><li>Size</li><li>Last modified time</li></ul><h3>Step 5: Creating the HTTP Server</h3><p>The backend uses Node’s native HTTP server.</p><pre>const server = http.createServer((req, res) =&gt; {<br>  const url = new URL(req.url, `http://${req.headers.host}`);<br>});</pre><p>Every request is routed manually based on:</p><ul><li>HTTP method</li><li>URL path</li></ul><p>This teaches the fundamentals behind frameworks like Express.</p><h3>REST API Design</h3><p>LocalShare exposes a clean API.</p><pre>| Method | Endpoint              | Purpose                        |<br>| -----: | --------------------- | ------------------------------ |<br>|    GET | `/`                   | Serve frontend                 |<br>|    GET | `/api/state`          | Get clipboard text + file list |<br>|   POST | `/api/text`           | Update clipboard               |<br>| DELETE | `/api/text`           | Clear clipboard                |<br>|   POST | `/api/upload`         | Upload files                   |<br>|    GET | `/api/download/:name` | Download a file                |<br>| DELETE | `/api/file/:name`     | Delete a file                  |</pre><h3>Step 6: Serving the Frontend</h3><pre>if (req.method === &#39;GET&#39; &amp;&amp; url.pathname === &#39;/&#39;) {<br>  res.writeHead(200, {<br>    &#39;Content-Type&#39;: &#39;text/html; charset=utf-8&#39;<br>  });<br>  res.end(fs.readFileSync(path.join(__dirname, &#39;index.html&#39;)));<br>}</pre><p>The frontend is simply an HTML file.</p><p>Any browser can access it.</p><h3>Step 7: Clipboard API</h3><p>Updating shared text is handled with a JSON POST request.</p><pre>sharedText = JSON.parse(body).text || &#39;&#39;;</pre><p>This enables instant sharing of:</p><ul><li>URLs</li><li>Shell commands</li><li>Notes</li><li>Code snippets</li></ul><h3>Step 8: The Most Important Part — Streaming Uploads</h3><p>This is the feature that makes LocalShare truly powerful.</p><p>Instead of loading an entire file into memory, the server writes chunks directly to disk.</p><pre>wStream = fs.createWriteStream(curPath);</pre><p>As each chunk arrives:</p><pre>wStream.write(buf.slice(pos, safe));</pre><p>This architecture allows support for:</p><ul><li>4GB files</li><li>40GB files</li><li>Even larger transfers</li></ul><p>Memory usage remains low regardless of file size.</p><h3>Step 9: Downloading Files</h3><pre>fs.createReadStream(fp).pipe(res);</pre><p>Downloads are also streamed.</p><p>This means users can download huge files without consuming large amounts of server memory.</p><h3>Step 10: Deleting Files</h3><pre>fs.unlinkSync(fp);</pre><p>Any connected device can remove shared files once they are no longer needed.</p><h3>Cross-Origin Support (CORS)</h3><p>The server allows requests from any origin.</p><pre>res.setHeader(&#39;Access-Control-Allow-Origin&#39;, &#39;*&#39;);</pre><p>This makes browser interactions straightforward.</p><h3>Terminal Output and Developer Experience</h3><p>When the server starts, it prints a friendly banner.</p><pre>╔══════════════════════════════════════════╗<br>║        LocalShare is running!            ║<br>║  This machine  → http://localhost:3000   ║<br>║  Other devices → http://192.168.1.105:3000<br>╚══════════════════════════════════════════╝</pre><p>Small UX details like this make tools feel polished.</p><h3>Setup Instructions</h3><p>Install <a href="https://nodejs.org/?utm_source=chatgpt.com">Node.js</a> and run:</p><pre>cd localshare<br>node server.js</pre><p>Open the displayed URL in any browser on the same Wi-Fi.</p><h3>Why I Chose Zero Dependencies</h3><p>Many projects would use:</p><ul><li>Express.js</li><li>Multer</li><li>Socket.IO</li></ul><p>Those are excellent tools, but I wanted LocalShare to be:</p><ul><li>Educational</li><li>Minimal</li><li>Easy to audit</li><li>Dependency-free</li></ul><p>By writing everything manually, the code becomes a learning resource for how HTTP servers actually work.</p><h3>Security and Privacy</h3><p>LocalShare is private by design.</p><ul><li>No cloud servers</li><li>No user accounts</li><li>No external APIs</li><li>Data stays on your LAN</li></ul><p>Files are stored locally in the uploads/ directory.</p><h3>The Entire Project Is Open Source</h3><p>I’ve open-sourced the full code so you can:</p><ul><li>Use it personally</li><li>Adapt it for your team</li><li>Learn from the implementation</li><li>Contribute improvements</li></ul><p><strong>GitHub Repository:</strong> <em>(</em><a href="https://github.com/Sahil-v05/onedesk">https://github.com/Sahil-v05/onedesk</a><em>)</em></p><h3>Final Thoughts</h3><p>The next time you need to share a large file with someone on the same Wi-Fi, ask yourself:</p><blockquote><em>Do I really need the cloud for this?</em></blockquote><p>In many cases, the answer is no.</p><p>Your local network is faster, simpler, and more private.</p><p>LocalShare turns that idea into a practical tool anyone can use.</p><h3>What Would You Add?</h3><p>If you were extending LocalShare, what feature would you build next?</p><ul><li>End-to-end encryption?</li><li>Drag-and-drop folders?</li><li>QR code access?</li><li>Real-time WebSocket updates?</li></ul><p>Let me know in the comments.</p><p>And if you found this article useful, give it a clap and star the GitHub repository.</p><h3>Follow me on gumroad for latest Product</h3><p>Gumroad — <a href="https://sahilv05.gumroad.com/l/rcdbw">https://sahilv05.gumroad.com/l/rcdbw</a></p><p>Linkeldn — <a href="https://www.linkedin.com/in/sahilk2001/">https://www.linkedin.com/in/sahilk2001/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e29480d49d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Python Script to Apple-Signed Mac App — How I Shipped My First Product on Gumroad]]></title>
            <link>https://medium.com/@Sahilv05/from-python-script-to-apple-signed-mac-app-how-i-shipped-my-first-product-on-gumroad-a0c71ffc07a4?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c71ffc07a4</guid>
            <category><![CDATA[notarization]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[dmg]]></category>
            <category><![CDATA[download-movies]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Thu, 07 May 2026 11:23:03 GMT</pubDate>
            <atom:updated>2026-05-07T11:23:03.037Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I turned a simple Python YouTube downloader into a fully signed, notarized, and distributed Mac app.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndW_NxnIz8Ae4DnBhhgd4w.png" /><figcaption>App icon</figcaption></figure><h3>The Idea</h3><p>It started with a simple frustration.</p><p>Every time I wanted to download a YouTube video, I had two options — use a shady website full of ads, or run a command in Terminal that my non-technical friends had no idea how to use.</p><p>So I thought — what if I just build a clean little Mac app? Paste a URL, click Download, done. No Terminal. No Python. No setup. Just works.</p><p>What I didn’t expect was how much I’d learn about <strong>Python packaging, Apple code signing, notarization, and app distribution</strong> along the way.</p><p>Here’s the full story — the workflow, the problems I hit, and every important command I used.</p><h3>The Stack</h3><p>Before we get into the journey, here’s what the final product is built on:</p><ul><li><strong>Python 3.12</strong> — core language</li><li><strong>yt-dlp</strong> — the actual YouTube downloading engine</li><li><strong>CustomTkinter</strong> — modern UI framework (replaced standard tkinter)</li><li><strong>ffmpeg</strong> — video/audio processing and merging</li><li><strong>PyInstaller</strong> — bundles everything into a .app</li><li><strong>Apple Developer ID</strong> — for signing and notarization</li><li><strong>create-dmg</strong> — packages the app into a distributable DMG</li></ul><h3>Phase 1 — Writing the Python App</h3><p>The core logic is straightforward. The app takes a YouTube URL, passes it to yt-dlp, and saves the video to the user&#39;s Downloads folder.</p><pre>import yt_dlp<br>ydl_opts = {<br>    &#39;format&#39;: &#39;bestvideo+bestaudio/best&#39;,<br>    &#39;outtmpl&#39;: &#39;~/Downloads/%(title)s.%(ext)s&#39;,<br>    &#39;merge_output_format&#39;: &#39;mp4&#39;,<br>}<br>with yt_dlp.YoutubeDL(ydl_opts) as ydl:<br>    ydl.download([&#39;https://youtube.com/watch?v=...&#39;])</pre><p>For the UI, I initially used Python’s built-in tkinter. Big mistake — more on that next.</p><h3>Phase 2 — The Blank Window Problem</h3><p>The first major roadblock hit me right at the start.</p><p>When I ran the app, the window opened completely <strong>blank</strong>. No buttons. No fields. Just a dark empty rectangle.</p><p>The Terminal was showing this warning:</p><pre>DEPRECATION WARNING: The system version of Tk is deprecated <br>and may be removed in a future release.</pre><p>The root cause? <strong>Python 3.9.6</strong> — Apple’s system Python — uses a deprecated version of Tk that doesn’t render correctly on modern macOS.</p><h3>The Fix — Switch to CustomTkinter + Python 3.12</h3><p>Instead of fighting the system Tk, I made two changes:</p><p><strong>1. Upgraded to Python 3.12 via Conda:</strong></p><pre>conda create -n ytdownloader python=3.12 -y<br>conda activate ytdownloader<br>conda install tk -y</pre><p><strong>2. Replaced tkinter with CustomTkinter:</strong></p><pre>pip install customtkinter</pre><p>CustomTkinter bundles its own rendering engine — it doesn’t touch Apple’s broken system Tk at all. The blank window was gone immediately.</p><h3>Phase 3 — Bundling Everything with PyInstaller</h3><p>This is where it gets interesting. The goal was a .app file that any Mac user could double-click and run — with <strong>zero dependencies</strong> on their system.</p><p>That means Python, yt-dlp, ffmpeg, and all packages needed to be bundled <em>inside</em> the app.</p><h3>Installing PyInstaller</h3><pre>pip install pyinstaller</pre><h3>The Spec File</h3><p>Instead of using the basic pyinstaller command, I created a .spec file — this gives full control over what gets bundled:</p><pre># youtube_downloader.spec<br>from PyInstaller.utils.hooks import collect_data_files, collect_submodules<br>block_cipher = None<br>FFMPEG_PATH  = &#39;/opt/homebrew/bin/ffmpeg&#39;<br>FFPROBE_PATH = &#39;/opt/homebrew/bin/ffprobe&#39;<br>a = Analysis(<br>    [&#39;youtube-downloader.py&#39;],<br>    pathex=[],<br>    binaries=[<br>        (FFMPEG_PATH,  &#39;.&#39;),    # bundle ffmpeg inside the app<br>        (FFPROBE_PATH, &#39;.&#39;),    # bundle ffprobe inside the app<br>    ],<br>    datas=collect_data_files(&#39;yt_dlp&#39;) +<br>          collect_data_files(&#39;customtkinter&#39;) +<br>          collect_data_files(&#39;certifi&#39;),<br>    hiddenimports=collect_submodules(&#39;yt_dlp&#39;) +<br>                  collect_submodules(&#39;customtkinter&#39;) +<br>                  [&#39;certifi&#39;],<br>    runtime_hooks=[&#39;hook-ssl.py&#39;],<br>    hookspath=[],<br>    excludes=[],<br>    cipher=block_cipher,<br>)<br>pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)<br>exe = EXE(<br>    pyz, a.scripts, [],<br>    exclude_binaries=True,<br>    name=&#39;YouTube Downloader&#39;,<br>    debug=False,<br>    strip=False,<br>    upx=True,<br>    console=False,    # no Terminal window<br>)<br>coll = COLLECT(<br>    exe, a.binaries, a.zipfiles, a.datas,<br>    strip=False,<br>    upx=True,<br>    name=&#39;YouTube Downloader&#39;,<br>)<br>app = BUNDLE(<br>    coll,<br>    name=&#39;YouTube Downloader.app&#39;,<br>    bundle_identifier=&#39;com.yourname.youtubedownloader&#39;,<br>    info_plist={<br>        &#39;NSHighResolutionCapable&#39;: True,<br>        &#39;CFBundleShortVersionString&#39;: &#39;1.0.0&#39;,<br>    },<br>)</pre><h3>Building the App</h3><pre>rm -rf build dist<br>pyinstaller youtube_downloader.spec --clean</pre><p>This creates dist/YouTube Downloader.app — a fully self-contained app bundle.</p><h3>What’s Inside Those 104MB</h3><pre>Python 3.12 runtime     ~30MB<br>yt-dlp                  ~20MB<br>ffmpeg binary           ~30MB<br>ffprobe binary          ~10MB<br>customtkinter + Tk       ~8MB<br>other packages           ~6MB<br>─────────────────────────<br>Total                  ~104MB</pre><p>Yes, 104MB. That’s completely normal for a self-contained app. Spotify is 280MB. Zoom is 450MB. Users don’t care — what they care about is that it <em>just works</em>.</p><h3>Phase 4 — The SSL Certificate Problem</h3><p>After building, I tested the app on a friend’s Mac. The app opened fine, but when they tried to download a video, it crashed with:</p><pre>SSL: CERTIFICATE_VERIFY_FAILED<br>certificate verify failed: unable to get local issuer certificate</pre><p>The problem? PyInstaller isolates the app from the system, so it couldn’t find macOS’s SSL certificates.</p><h3>The Fix — Bundle certifi</h3><pre>pip install certifi</pre><p>Then I created a runtime hook file hook-ssl.py:</p><pre>import os<br>import ssl<br>import certifi<br>os.environ[&#39;SSL_CERT_FILE&#39;] = certifi.where()<br>os.environ[&#39;REQUESTS_CA_BUNDLE&#39;] = certifi.where()<br>ssl.create_default_context = lambda *args, **kwargs: ssl.create_default_context(<br>    cafile=certifi.where()<br>)</pre><p>And added certifi to the spec file&#39;s datas, hiddenimports, and runtime_hooks. This bundles the SSL certificates <strong>inside</strong> the app — no dependency on the system certificates at all.</p><h3>Phase 5 — Code Signing</h3><p>Without code signing, every Mac user gets a scary popup:</p><blockquote>“YouTube Downloader cannot be opened because the developer cannot be verified.”</blockquote><p>That popup kills sales. So signing is not optional.</p><p>I used a friend’s <strong>Apple Developer ID Application</strong> certificate (exported as .p12) and imported it into my Mac&#39;s Keychain:</p><pre>security import DeveloperCert.p12 -k ~/Library/Keychains/login.keychain-db</pre><p>Verify it imported correctly:</p><pre>security find-identity -v -p codesigning<br># Shows: &quot;Developer ID Application: Friend Name (TEAMID)&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTUGhecz6LrhgARahpuvQQ.png" /></figure><h3>Sign the App</h3><pre>codesign --deep --force --verify --verbose \<br>  --sign &quot;Developer ID Application: Friend Name (TEAMID)&quot; \<br>  --options runtime \<br>  &quot;dist/YouTube Downloader.app&quot;</pre><blockquote><strong><em>Important:</em></strong><em> When the keychain password popup appears, always click </em><strong><em>“Always Allow”</em></strong><em> — not just “Allow”. The popup may appear 2–3 times for each bundled binary. Click Always Allow every time.</em></blockquote><h3>Phase 6 — Notarization</h3><p>Code signing proves <em>who</em> made the app. Notarization proves the app is <em>safe</em> — Apple scans it for malware and gives it a stamp of approval.</p><p>Without notarization, even signed apps trigger a warning on newer macOS versions.</p><h3>Zip the App</h3><pre>ditto -c -k --keepParent \<br>  &quot;dist/YouTube Downloader.app&quot; \<br>  &quot;YouTube-Downloader.zip&quot;</pre><h3>Submit to Apple</h3><pre>xcrun notarytool submit &quot;YouTube-Downloader.zip&quot; \<br>  --apple-id &quot;friends@email.com&quot; \<br>  --password &quot;abcd-efgh-ijkl-mnop&quot; \   # app-specific password from appleid.apple.com<br>  --team-id &quot;AB12CD34EF&quot; \<br>  --wait</pre><blockquote><em>The </em><em>--password here is </em><strong><em>not</em></strong><em> the Apple ID login password. It&#39;s an </em><strong><em>app-specific password</em></strong><em> generated at </em><em>appleid.apple.com → Sign-In and Security → App-Specific Passwords.</em></blockquote><h3>Staple the Ticket</h3><pre>xcrun stapler staple &quot;dist/YouTube Downloader.app&quot;</pre><h3>Verify</h3><pre>spctl --assess --verbose &quot;dist/YouTube Downloader.app&quot;<br># Must print: accepted</pre><h3>Phase 7 — Creating the DMG</h3><p>A raw .app file is fine, but a proper DMG with a drag-to-Applications window looks professional and is what customers expect.</p><pre>brew install create-dmg<br>create-dmg \<br>  --volname &quot;YouTube Downloader&quot; \<br>  --window-pos 200 120 \<br>  --window-size 580 380 \<br>  --icon-size 100 \<br>  --icon &quot;YouTube Downloader.app&quot; 160 180 \<br>  --hide-extension &quot;YouTube Downloader.app&quot; \<br>  --app-drop-link 400 180 \<br>  &quot;YouTube-Downloader-1.0.dmg&quot; \<br>  &quot;dist/&quot;</pre><p>This creates a beautiful installer window:</p><pre>┌─────────────────────────────────────┐<br>│                                     │<br>│   [App Icon]    →    [Applications] │<br>│                                     │<br>└─────────────────────────────────────┘</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwhX2ZHgbEiEJJupPztIBw.png" /></figure><h3>Sign the DMG Too</h3><pre>codesign --sign &quot;Developer ID Application: Friend Name (TEAMID)&quot; \<br>  &quot;YouTube-Downloader-1.0.dmg&quot;</pre><h3>Phase 8 — Publishing on Gumroad</h3><p>With a signed, notarized DMG in hand, publishing was the easiest part:</p><ol><li>Go to <strong>gumroad.com</strong> → New Product → Digital Product</li><li>Upload YouTube-Downloader-1.0.dmg</li><li>Write a clear description emphasising <em>no setup required</em></li><li>Set a price and publish</li></ol><p>The product page description matters a lot. Lead with what the customer doesn’t have to do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*pFVpTrLXzfcaO207ZjRSpA.png" /></figure><blockquote>No Python. No Terminal. No technical knowledge. Just download, drag to Applications, and use it.</blockquote><h3>The Full Workflow — At a Glance</h3><pre>Python Script<br>     ↓<br>conda create -n ytdownloader python=3.12<br>     ↓<br>pip install customtkinter yt-dlp pyinstaller certifi<br>     ↓<br>pyinstaller youtube_downloader.spec --clean<br>     ↓<br>dist/YouTube Downloader.app  (self-contained, 104MB)<br>     ↓<br>codesign --deep --sign &quot;Developer ID Application: ...&quot;<br>     ↓<br>xcrun notarytool submit ... --wait<br>     ↓<br>xcrun stapler staple<br>     ↓<br>create-dmg ...<br>     ↓<br>YouTube-Downloader-1.0.dmg  ✅<br>     ↓<br>Upload to Gumroad 🚀</pre><h3>Key Lessons Learned</h3><p><strong>1. Python version matters enormously on Mac.</strong> System Python (3.9.6) uses Apple’s deprecated Tk. Always use Python 3.12+ from Conda or python.org for GUI apps.</p><p><strong>2. Always bundle SSL certificates.</strong> PyInstaller isolates your app — it can’t find system certificates. Bundle certifi explicitly or your app will crash on fresh Macs.</p><p><strong>3. Notarization is not optional.</strong> Signed but unnotarized apps still trigger warnings on modern macOS. Budget time for notarization in your release process.</p><p><strong>4. “Always Allow” in the keychain popup.</strong> Clicking just “Allow” during signing causes the popup to reappear repeatedly. Always click “Always Allow”.</p><p><strong>5. 104MB is not a problem.</strong> A self-contained app that just works is worth far more than a 10MB app that requires users to install 5 other things first.</p><h3>What’s Next</h3><p>The Mac version is live. Windows is next — same Python codebase, PyInstaller on Windows, NSIS for the installer. The goal is one Gumroad product page that serves both platforms.</p><p>If you’ve been sitting on a Python script thinking <em>“I wish non-technical people could use this”</em> the path from script to sellable app is very learnable. The hardest part isn’t the code. It’s understanding Apple’s signing and notarization pipeline.</p><p>Hopefully this post saves you a few hours of confusion.</p><p><em>Built with Python, CustomTkinter, yt-dlp, PyInstaller, and a lot of Terminal commands.</em></p><p><em>Available on Gumroad → </em><a href="https://sahilv05.gumroad.com/l/rcdbw">https://sahilv05.gumroad.com/l/rcdbw</a></p><p>Linkedln — <a href="http://www.linkedin.com/in/sahilk2001">www.linkedin.com/in/sahilk2001</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c71ffc07a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Opus 4.6 Just Became the Most Expensive Free Teacher in AI History]]></title>
            <link>https://medium.com/@Sahilv05/claude-opus-4-6-just-became-the-most-expensive-free-teacher-in-ai-history-34a8c34cfe37?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a8c34cfe37</guid>
            <category><![CDATA[ai-policy]]></category>
            <category><![CDATA[deepseek-r1]]></category>
            <category><![CDATA[claude-opus]]></category>
            <category><![CDATA[distillation]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Wed, 06 May 2026 03:15:12 GMT</pubDate>
            <atom:updated>2026-05-06T03:15:12.329Z</atom:updated>
            <content:encoded><![CDATA[<p>Chinese labs didn’t beat Anthropic — they just made Anthropic train their models for them. Here’s why the real threat isn’t what you think.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_neCaaJqpXqoNy6ojknTw.png" /><figcaption>China vs US</figcaption></figure><h3>What Is Distillation — And Why Does It Matter?</h3><p>Before we talk about the controversy, let’s get the definition right. Because this is exactly where the problem starts.</p><p><strong>Distillation</strong>, in the context of AI, refers to training a smaller or less capable model using the outputs of a stronger one. The stronger model acts as a “teacher.” The smaller model the “student” learns from its responses rather than raw human-labeled data alone.</p><p>This is not a niche research technique. It is one of the most widely used practices in the entire AI industry.</p><ul><li>Frontier labs like OpenAI, Google, and Anthropic routinely distill their own flagship models to create smaller, cheaper versions for consumers and developers.</li><li>Academic research groups use distillation to build <em>specialized</em> models for medicine, law, science, and education often without the budget to train from scratch.</li><li>Open-source projects like <strong>OLMo</strong> and models built</li><li>at AI2 use a mix of open and closed model outputs to create publicly available, community-accessible tools.</li><li>Even <strong>Nvidia’s Nemotron models </strong>among the only frontier models with openly published post-training datasets are technically distilled in part from Chinese open-weight models.</li></ul><p>And then there’s this exchange from recent court proceedings between Elon Musk and OpenAI’s legal team</p><pre>OpenAI&#39;s counsel asked Musk whether xAI has ever &quot;distilled&quot; technology from OpenAI.<br>Musk: &quot;Generally AI companies distill other AI companies.&quot;<br>&quot;Is that a yes?&quot; Savitt asked.<br>Musk: &quot;Partly.&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ICahjVMAUvl1ycKcD_wKA.png" /></figure><h3>So What Did the Chinese Labs Actually Do?</h3><p>Here’s where precision really matters and where the current discourse is failing.</p><p>Anthropic recently published a blog post detailing what they called <strong>“distillation attacks”</strong> carried out by three Chinese labs. The post was careful to acknowledge that distillation is a legitimate technique and that the problem was its potential illicit use.</p><p>But what these labs are actually accused of goes significantly beyond distillation:</p><ul><li><strong>Jailbreaking APIs</strong> to extract outputs the developer never intended to expose — including internal reasoning traces that are extraordinarily useful for training</li><li><strong>Identity spoofing</strong> misrepresenting who they are to gain API access</li><li><strong>Deliberate circumvention</strong> of terms of service in ways that cross from grey area into something much closer to theft</li></ul><p>That’s not distillation. That’s <strong>API abuse.</strong> That’s <strong>jailbreaking.</strong> That’s potentially <strong>corporate espionage</strong>.</p><p>Calling it a “distillation attack” is like calling bank robbery “unauthorized withdrawal.” Technically adjacent but the framing does enormous damage to everything that word is attached to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsfwk0G4r_V3XDbznci4mQ.png" /></figure><h3>The Grey Area That’s Always Existed</h3><p>Here’s the uncomfortable truth that nobody in the policy conversation seems willing to say clearly:</p><p><strong>Using closed APIs to perform some form of distillation has always been a grey area.</strong></p><p>Every major AI platform <strong>Claude, GPT, Gemini</strong> includes terms of service that generally forbid using their API to build competing language model products. But this has been widely unenforced. The open-source community has operated for years with quiet anxiety about being cut off from these APIs for research or public dataset creation.</p><p>Until recently, only one prominent case of corporate API restrictions existed publicly. Meanwhile:</p><ul><li>Research groups routinely use <strong><em>GPT APIs</em></strong><em> </em>to generate synthetic training data</li><li>Specialized small models like document processing tools — are built on pipelines that use frontier model outputs somewhere in the chain</li><li>The boundary between “building a tool with AI” and “distilling from AI” is genuinely blurry in complex, multi-stage workflows</li></ul><p>The Chinese labs’ offence isn’t that they distilled. It’s <strong>how aggressively and deceptively they did it</strong> — extracting data that wasn’t meant to be accessible, through means that circumvented explicit protections.</p><p>That distinction has to survive in the policy discussion. Right now, it isn’t</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmCWWODFPwlCYZHLXBFQwQ.png" /></figure><h3>Who Actually Loses If This Goes Wrong</h3><p>Let’s be specific about who bears the cost of a hasty, overbroad policy response.</p><p><strong>Who survives a crackdown on distillation:</strong></p><ul><li>Large frontier labs with the resources to train models entirely from scratch</li><li>Well-funded Chinese labs who will continue API abuse regardless of U.S. law the same way Chinese multimedia companies took a flexible view of copyright that no U.S. player was willing to risk</li></ul><p><strong>Who doesn’t survive:</strong></p><ul><li>Western academic researchers who rely on <strong>distillation</strong> pipelines to do meaningful AI research on limited budgets</li><li>Small open-source contributors who build specialized models for healthcare, education, accessibility, and other long-tail use cases</li><li>Startups without the capital to train frontier models from scratch who use distillation to create competitive, specialized products</li></ul><p>And there’s a specific scenario that should alarm anyone who cares about the U.S. maintaining its AI ecosystem lead: <strong>a functional ban on Chinese open-weight models in the United States.</strong></p><p>No bill will literally say “ban open models.” But bills don’t need to. They can create grey areas. They can impose compliance requirements that are bureaucratically impossible for small contributors to fullfill. They can expose entities to legal risk that makes working with certain model families unacceptable to university legal departments and startup lawyers.</p><p>The ecosystem of Chinese open-weight models <strong><em>Qwen, DeepSeek,</em></strong> and their successors has no immediate domestic substitute. Building new models with meaningful community adoption takes <strong>6+ months minimum</strong>. In that gap, researchers migrate to closed platforms. Open-source momentum stalls. The long-tail of AI use cases the things that make AI transformative for regular people in specific fields goes dark.</p><p>The groups who lose are not the big labs. They are the researchers, the builders, and ultimately the users.</p><h3>What We Should Actually Be Saying</h3><p>The path forward requires separating two things that have been collapsed into one:</p><p><strong>What is legitimately concerning and should be addressed:</strong></p><ul><li>Jailbreaking AI APIs to extract non-public model internals like reasoning traces</li><li>Identity spoofing to gain unauthorized API access</li><li>Deliberate, systematic circumvention of terms of service at scale</li><li>The genuine challenge frontier labs face in securing their APIs against sophisticated adversarial access</li></ul><p><strong>What should not be caught in the crossfire:</strong></p><ul><li>Distillation as a standard post-training technique</li><li>Academic use of API outputs for research and public datasets</li><li>Small model builders using frontier outputs to create specialized tools</li><li>Open-weight models from any country being used for legitimate research and development</li></ul><p>The behavior that deserves policy attention has a name. It’s <strong>API abuse</strong>. It’s <strong>jailbreaking</strong>. In extreme cases, it may be <strong>corporate espionage</strong>. These are specific, targeted, legally addressable behaviors.</p><p><strong>Distillation</strong> is none of those things. And if we let the language blur that line the way “open source” and “open weights” blurred into meaninglessness we will spend the next decade trying to walk back policy that was written against the wrong target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_DNpy1HQpBzoX4wrbQwwQ.png" /></figure><h3>What Do You Think?</h3><p>The line between legitimate distillation and API exploitation is genuinely blurry in places — and that’s part of what makes this conversation hard.</p><p>👉 <strong>Follow me on Medium</strong> if you want more deep dives into the AI <a href="https://en.wikipedia.org/wiki/Governance"><strong>Governance</strong></a> and technical blog about models that are quietly reshaping the industry — written for people who want to understand what’s actually happening, not just the headlines.</p><p>👉Linkedln — <a href="https://www.linkedin.com/in/sahilk2001/">https://www.linkedin.com/in/sahilk2001/</a></p><p>👉Gumroad — <a href="https://sahilv05.gumroad.com/l/degajn">https://sahilv05.gumroad.com/l/degajn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a8c34cfe37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[784x Faster Scraping then BeautifulSoup:Open Source tool]]></title>
            <link>https://medium.com/@Sahilv05/784x-faster-scraping-then-beautifulsoup-open-source-tool-45f4fc231bac?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/45f4fc231bac</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[beautifulsoup]]></category>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[free]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Mon, 04 May 2026 17:53:23 GMT</pubDate>
            <atom:updated>2026-05-04T17:53:23.622Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>One library. Zero compromises. From a single HTTP request to a full-scale concurrent crawl.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*A_26-BWQyFGDtuBk" /></figure><p>Web scraping in 2025 is a constant arms race. Websites deploy Cloudflare Turnstile, TLS fingerprinting, and bot-detection middleware. Scrapers break the moment a site redesigns its layout. Maintaining a scraper fleet is a full-time job.</p><p>Its parser learns from website changes and automatically relocates your elements when pages update. Its fetchers bypass anti-bot systems like Cloudflare Turnstile out of the box. And its spider framework lets you scale up to concurrent, multi-session crawls with pause/resume and automatic proxy rotation — all in a few lines of Python. One library, zero compromises.</p><p>Scrapling organizes its functionality into three primary subsystems accessed through four user entry points. The framework uses lazy imports to minimize memory footprint and load time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zW-jH_Qbrg61z7pTmshRfw.png" /><figcaption>Scrapling Entry Points and Subsystems</figcaption></figure><h3>Key Components and Their Roles</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8_xAwEDxbxiku6QjRpxm0w.png" /></figure><h3>Key Features</h3><h4>Spiders — A Full Crawling Framework</h4><ul><li>🕷️ Scrapy-like Spider API: Define spiders with start_urls, async parse callbacks, and Request/Response objects.</li><li>⚡ Concurrent Crawling: Configurable concurrency limits, per-domain throttling, and download delays.</li><li>🔄 Multi-Session Support: Unified interface for HTTP requests, and stealthy headless browsers in a single spider — route requests to different sessions by ID.</li><li>💾 Pause &amp; Resume: Checkpoint-based crawl persistence. Press Ctrl+C for a graceful shutdown; restart to resume from where you left off.</li><li>📡 Streaming Mode: Stream scraped items as they arrive via async for item in spider.stream() with real-time stats - ideal for UI, pipelines, and long-running crawls.</li><li>🛡️ Blocked Request Detection: Automatic detection and retry of blocked requests with customizable logic.</li><li>🤖 Robots.txt Compliance: Optional robots_txt_obey flag that respects Disallow, Crawl-delay, and Request-rate directives with per-domain caching.</li><li>🧪 Development Mode: Cache responses to disk on the first run and replay them on subsequent runs — iterate on your parse() logic without re-hitting the target servers.</li><li>📦 Built-in Export: Export results through hooks and your own pipeline or the built-in JSON/JSONL with result.items.to_json() / result.items.to_jsonl() respectively.</li></ul><h3>Installation and Dependency Structure</h3><p>Scrapling uses a modular installation approach with optional dependency groups defined in pyproject.toml. This allows users to install only what they need, keeping the core package lightweight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2l868gTlKmLjG9QDMmRweQ.png" /><figcaption>Dependencies</figcaption></figure><p>For HTML/XML parsing without network fetching capabilities:</p><pre>pip install scrapling</pre><p>This installs the parsing engine and core utilities:</p><ul><li>lxml&gt;=6.0.2: High-performance XML and HTML parsing.</li><li>cssselect&gt;=1.4.0: Translates CSS selectors to XPath.</li><li>orjson&gt;=3.11.8: Fast JSON parsing for TextHandler.json() and AttributesHandler.json().</li><li>tld&gt;=0.13.2: URL parsing and top-level domain extraction.</li></ul><p>To use fetcher classes (Fetcher, DynamicFetcher, StealthyFetcher) or the CLI:</p><pre>pip install &quot;scrapling[fetchers]&quot;<br>scrapling install</pre><p>The scrapling install command is mandatory for browser-based fetchers as it downloads binaries not included in the PyPI package.</p><h3>Verification</h3><p>To verify the installation, you can test the core parser and the static fetcher:</p><pre>from scrapling import Selector, Fetcher<br> <br># Verify Parser<br>sel = Selector(&quot;&lt;h1&gt;Scrapling&lt;/h1&gt;&quot;)<br>print(sel.css(&quot;h1::text&quot;).get()) # Output: Scrapling<br> <br># Verify Fetcher (requires [fetchers] extra)<br>response = Fetcher.get(&quot;https://httpbin.org/status/200&quot;)<br>print(response.status) # Output: 200</pre><h3>Quick Start Guide</h3><p>1.Parsing HTML Without Fetching</p><pre>from scrapling.parser import Selector<br> <br>html = &quot;&quot;&quot;<br>&lt;div class=&quot;product&quot;&gt;<br>    &lt;h3&gt;Product Name&lt;/h3&gt;<br>    &lt;span class=&quot;price&quot;&gt;$29.99&lt;/span&gt;<br>&lt;/div&gt;<br>&quot;&quot;&quot;<br> <br>page = Selector(html)<br>title = page.css(&#39;.product h3::text&#39;).get()<br>price = page.css(&#39;.price::text&#39;).get()<br>print(f&quot;{title}: {price}&quot;)  # Output: Product Name: $29.99</pre><p>2. Making HTTP Requests</p><pre>from scrapling.fetchers import Fetcher<br> <br>response = Fetcher.get(&#39;https://quotes.toscrape.com/&#39;)<br>quotes = response.css(&#39;.quote .text::text&#39;).getall()<br>authors = response.css(&#39;.quote .author::text&#39;).getall()<br> <br>for quote, author in zip(quotes, authors):<br>    print(f&#39;&quot;{quote}&quot; - {author}&#39;)</pre><p>3.Browser Automation</p><pre>from scrapling.fetchers import DynamicFetcher<br> <br>page = DynamicFetcher.fetch(&#39;https://quotes.toscrape.com/&#39;, headless=True)<br>quotes = page.css(&#39;.quote .text::text&#39;).getall()</pre><p>4.Stealth Mode with Anti-Bot Bypass</p><pre>from scrapling.fetchers import StealthyFetcher<br> <br>page = StealthyFetcher.fetch(<br>    &#39;https://example.com&#39;,<br>    headless=True,<br>    network_idle=True<br>)<br># Bypasses Cloudflare Turnstile out of the box<br>content = page.css(&#39;.content&#39;).get()</pre><p>5.Session Management for Multiple Requests</p><pre>from scrapling.fetchers import FetcherSession<br> <br>with FetcherSession(impersonate=&#39;chrome&#39;) as session:<br>    page1 = session.get(&#39;https://quotes.toscrape.com/&#39;)<br>    page2 = session.get(&#39;https://quotes.toscrape.com/page/2/&#39;)</pre><p>6.Browser Session with Tab Pooling</p><pre>from scrapling.fetchers import AsyncStealthySession<br>import asyncio<br> <br>async def scrape():<br>    # max_pages controls the tab pool size<br>    async with AsyncStealthySession(max_pages=3, headless=True) as session:<br>        tasks = [<br>            session.fetch(&#39;https://example.com/page1&#39;),<br>            session.fetch(&#39;https://example.com/page2&#39;),<br>            session.fetch(&#39;https://example.com/page3&#39;),<br>        ]<br>        results = await asyncio.gather(*tasks)<br>        return results<br> <br>asyncio.run(scrape())</pre><p>7.Running Your First Spider</p><pre>from scrapling.spiders import Spider, Response<br> <br>class QuotesSpider(Spider):<br>    name = &quot;quotes&quot;<br>    start_urls = [&quot;https://quotes.toscrape.com/&quot;]<br>    <br>    async def parse(self, response: Response):<br>        # Extract quotes from current page<br>        for quote in response.css(&#39;.quote&#39;):<br>            yield {<br>                &quot;text&quot;: quote.css(&#39;.text::text&#39;).get(),<br>                &quot;author&quot;: quote.css(&#39;.author::text&#39;).get(),<br>            }<br>        <br>        # Follow pagination<br>        next_page = response.css(&#39;.next a::attr(href)&#39;).get()<br>        if next_page:<br>            yield response.follow(next_page)<br> <br># Run the spider<br>result = QuotesSpider().start()<br>print(f&quot;Scraped {len(result.items)} quotes&quot;)<br>result.items.to_json(&quot;quotes.json&quot;)</pre><p>8.Adaptive Parsing for Website Changes</p><pre>from scrapling.fetchers import StealthyFetcher<br> <br># Enable adaptive mode<br>StealthyFetcher.adaptive = True<br> <br># First run: save element signatures<br>page = StealthyFetcher.fetch(&#39;https://example.com&#39;)<br>products = page.css(&#39;.product&#39;, auto_save=True)<br> <br># Later, after website structure changes:<br>page = StealthyFetcher.fetch(&#39;https://example.com&#39;)<br># Scrapling will find the elements even if the .product class is gone<br>products = page.css(&#39;.product&#39;, adaptive=True)</pre><p>9.AI Integration — MCP Server</p><pre>#Scrapling includes a built-in MCP (Model Context Protocol) server that lets <br>#AI assistants like Claude or Cursor use Scrapling as a web scraping tool. <br>#It extracts targeted content before passing it to the AI, reducing token <br>#usage and cost.<br>scrapling mcp</pre><h3>Command Line Interface</h3><p>Scrapling provides CLI commands for quick data extraction and interactive debugging.</p><pre># Extract to markdown<br>scrapling extract get &#39;https://example.com&#39; content.md<br> <br># Extract specific CSS selector to text with TLS impersonation<br>scrapling extract get &#39;https://example.com&#39; output.txt \<br>    --css-selector &#39;.content&#39; --impersonate &#39;chrome&#39;<br> <br># Stealth mode with Cloudflare bypass<br>scrapling extract stealthy-fetch &#39;https://example.com&#39; \<br>    output.html --solve-cloudflare</pre><h3>Summary</h3><p>Scrapling is a well-engineered, production-ready library that covers the full spectrum of modern web scraping needs. Its progressive fetcher hierarchy means you only pay the performance cost of what you actually need. Its adaptive parser is a genuine differentiator — scrapers that self-heal after site redesigns are rare. And the spider framework brings Scrapy-level power without Scrapy’s complexity.</p><ul><li>GitHub: <a href="https://github.com/D4Vinci/Scrapling">github.com/D4Vinci/Scrapling</a></li><li>Docs: <a href="https://scrapling.readthedocs.io/">scrapling.readthedocs.io</a></li><li>PyPI: pip install scrapling</li></ul><p>Follow me for more tech blogs and useful products available on Gumroad.</p><p>Linkedln — <a href="https://www.linkedin.com/in/sahilk2001/">https://www.linkedin.com/in/sahilk2001/</a></p><p>Gumroad — <a href="https://sahilv05.gumroad.com/l/degajn">https://sahilv05.gumroad.com/l/degajn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45f4fc231bac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built My Own “Apple Ecosystem” for Android — Wirelessly Control Your Phone From Any Laptop]]></title>
            <link>https://medium.com/@Sahilv05/i-built-my-own-apple-ecosystem-for-android-wirelessly-control-your-phone-from-any-laptop-d5f6015d46b5?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5f6015d46b5</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[wireless]]></category>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 17:49:07 GMT</pubDate>
            <atom:updated>2026-04-25T17:49:07.833Z</atom:updated>
            <content:encoded><![CDATA[<p>No cables. No third-party apps. No monthly subscription. Just open-source WebRTC and a idea that refused to stay in my head.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcoqgypgx5XqP0rJkfbjRA.png" /><figcaption>Live Testing to connect the phone with laptop</figcaption></figure><h3>What Is Android Mirror?</h3><p><strong>Android Mirror</strong> is an open-source, wireless screen mirroring and remote control tool for Android phones built with WebRTC, Electron, and a Node.js signaling server.</p><p>In plain English: it lets you see your Android phone’s screen on your laptop and fully control it all over WiFi, with no USB cable, no paid software, and no cloud middleman.</p><p>Here’s what it can do right now:</p><ul><li>📶 <strong>Real-time screen mirroring</strong> over WiFi with minimal latency</li><li>🖱️ <strong>Full remote control </strong>click, swipe, long-press, pinch-zoom, all from your mouse</li><li>⌨️ <strong>Keyboard input </strong>type on your phone using your laptop’s keyboard</li><li>🔔 <strong>Notification sync </strong>phone notifications appear on your desktop</li><li>📋 <strong>Clipboard sync </strong>copy on phone, paste on laptop (and vice versa)</li><li>📁 <strong>Drag-and-drop file transfer </strong>drag a file onto the mirrored screen, it lands in your phone’s Downloads folder</li><li>🛠️ <strong>System key controls </strong>Home, Back, Recents, Screenshot, Power Menu all accessible from desktop buttons</li></ul><p>And it works over <strong>mobile hotspot</strong> too. No WiFi router needed. Turn on your phone’s hotspot, connect your laptop to it, and the whole thing runs.</p><h3>How It Actually Works — The Technical Architecture</h3><p>Android Mirror has three components that work together:</p><h4>📡 1. The Signaling Server</h4><p>A lightweight <strong>Node.js + WebSocket</strong> server that runs on your laptop. It handles the initial “handshake” between your phone and desktop exchanging connection information (SDP offers, ICE candidates) so the two devices can find each other on the network.</p><p>Think of it as a matchmaker. Once the connection is established, it steps back. All the actual data flows directly between your devices.</p><h4>📱 2. The Android App</h4><p>Built in <strong>Java with Android SDK (API 24+)</strong>. It runs as a background service on your phone and handles:</p><ul><li><strong>MediaProjection</strong> — Android’s official screen capture API</li><li><strong>RemoteInputService</strong> — translates incoming control signals into actual touch events on the screen</li><li><strong>WebRTCManager</strong> — manages the peer connection and streams video frames to the desktop</li></ul><h4>💻 3. The Desktop App</h4><p>An <strong>Electron</strong> app that receives the WebRTC video stream and displays it in a window. When you click or drag on the mirrored screen, it translates your mouse position into touch coordinates and sends them back to the phone in real time.</p><p>The result is a live, interactive mirror of your Android phone running entirely on your local network, with no data going through any external server.</p><h3>The Feature That Changed Everything: Drag-and-Drop File Transfer</h3><p>When I first launched Android Mirror, it was a screen mirror and control tool. Useful, but not magical.</p><p>Then I added file transfer via drag-and-drop.</p><p>Here’s how it works: you drag any file from your laptop’s file explorer and drop it onto the mirrored phone screen inside the app. A green dashed border appears on the mirror. You release. The file transfers directly to your phone’s Downloads folder.</p><p>No third-party app. No Bluetooth pairing. No cloud upload. Just drop and send.</p><p>It supports virtually any file type images, videos, PDFs, documents, archives. I tested it with a 385MB video file. It worked.</p><p><strong>This is the moment Android Mirror stopped feeling like a dev tool and started feeling like a product.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*ZU1V5mQCrQRiNSG0_1tD9g.gif" /><figcaption>Demo of files trasnfer between</figcaption></figure><h3>Setting It Up — Simpler Than It Looks</h3><p>The README is detailed because I wanted zero-friction for contributors and new users. But the actual setup flow is straightforward:</p><p><strong>Step 1 — Clone the repo and start the signaling server:</strong></p><pre>git clone https://github.com/yourusername/android-mirror.git<br>cd 1-signaling-server<br>npm install &amp;&amp; node server.js</pre><p><strong>Step 2 — Start the desktop app:</strong></p><pre>cd 3-desktop-app<br>npm install &amp;&amp; npm start</pre><p><strong>Step 3 — Build and install the Android APK</strong> on your phone via Android Studio, connect to the same network, enter the signaling server’s IP, and tap Connect.</p><p>That’s it. Your phone screen appears on your laptop.</p><h4>No WiFi Router? Use Your Phone’s Hotspot.</h4><p>Turn on your phone’s mobile hotspot → connect your laptop to it → run everything as normal. The phone becomes both the device you’re controlling <em>and</em> the network router. Works flawlessly.</p><h3>The Control Mapping — More Intuitive Than You’d Expect</h3><p>One thing I’m proud of is how natural the control scheme feels once you’re in it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-O4B_eUV0BvfoK_UGPoUxg.png" /><figcaption>Controls</figcaption></figure><h3>This Is Open Source. Come Build With Me.</h3><p>Android Mirror is <strong>fully open source under the MIT License</strong>. That means you can use it, modify it, and contribute to it for free, forever.</p><p>If you’re interested in any of these areas, there’s a place for you here:</p><p>✅ <strong>Android development</strong> (Java, MediaProjection, WebRTC on mobile) ✅ <strong>Electron / desktop app development</strong> ✅ <strong>WebRTC and real-time networking</strong> ✅ <strong>UI/UX</strong> — the desktop interface could be significantly better ✅ <strong>Performance optimization</strong> — latency, frame rate, bandwidth efficiency ✅ <strong>Documentation</strong> — making the setup guide even clearer for beginners</p><p>You don’t need to be an expert. You need to be curious and willing to try.</p><p>👉 <strong>[GitHub repo — </strong><a href="https://github.com/Sahil-v05/android-mirror">https://github.com/Sahil-v05/android-mirror</a><strong>]</strong></p><p>Clone it. Follow the setup steps. Run it on your laptop and phone. See what breaks. Tell me what should be better.</p><p>Also checkout my <strong>Gumroad</strong> profile you will find some amazing tool there also.</p><p>👉 <strong>[Gumroad — </strong><a href="https://sahilv05.gumroad.com/l/haovbde">https://sahilv05.gumroad.com/l/haovbde</a> <strong>]</strong></p><h3>Let’s Build Something Together</h3><p>Android Mirror is live, open-source, and actively evolving. Whether you want to use it, contribute to it, or just follow along as it grows you’re welcome here.</p><p>👉 <strong>Follow me on Medium</strong> — I’ll be documenting the technical deep-dives as I build each new feature: the WebRTC implementation, the Electron file transfer protocol, the Android MediaProjection quirks, all of it.</p><p>👉 <strong>Star the repo and try it out</strong> — even just running it once and telling me where it broke is genuinely useful feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5f6015d46b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6x Smaller. 8x Faster. Zero Accuracy Loss.]]></title>
            <link>https://medium.com/@Sahilv05/6x-smaller-8x-faster-zero-accuracy-loss-b0c17a9b1fe0?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c17a9b1fe0</guid>
            <category><![CDATA[turbo-quant]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[deep-learning-framework]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 16:41:25 GMT</pubDate>
            <atom:updated>2026-04-20T16:41:25.706Z</atom:updated>
            <content:encoded><![CDATA[<p>Meet the Algorithm Changing How LLMs Think <strong>Subtitle:</strong> <em>TurboQuant’s two-stage approach to KV cache compression is pushing AI memory to the edge of what mathematics says is poss</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77qTrCmoUeLrp_GCktpaXw.jpeg" /><figcaption>Problem and Solution</figcaption></figure><h3>You’ve Felt This Problem. You Just Didn’t Know What It Was Called.</h3><p>You paste a long document into ChatGPT. Or feed a 200 page PDF to your AI assistant. Or have a two hour conversation with Claude and somewhere around the halfway point, something shifts.</p><p>Responses get slower. The model starts “forgetting” things you said earlier. Quality quietly degrades.</p><p>You probably assumed it was just… how AI works.</p><p>It’s not. It’s a specific, well-documented engineering crisis and it has a name.</p><p>It’s called the <strong>KV Cache Memory Wall</strong>. And for years, it’s been one of the most frustrating unsolved problems in the entire field of large language models.</p><p>A new algorithm called <strong>TurboQuant</strong> just put a very serious dent in it. And the results are, genuinely, mind-blowing.</p><h3>First, What Even Is a KV Cache?</h3><p>Let’s slow down for a moment especially if you’re not deep in the AI engineering world.</p><p>When an LLM reads your prompt, it doesn’t just process it once and forget it. It stores the entire conversation context in something called a <strong>Key-Value (KV) cache</strong> think of it as the model’s working memory, the mental notepad it keeps updating as you keep talking.</p><p>The problem? This notepad doesn’t stay small.</p><p>With short prompts, the KV cache is manageable. But with long documents, extended conversations, or complex coding tasks — the cache balloons. It can grow so large it consumes <strong>more memory than the AI model itself.</strong></p><p>That’s not a typo. The memory to <em>remember what you said</em> ends up outweighing the memory of the entire AI brain processing it.</p><p>This is the Memory Wall. And until recently, the solutions were all compromises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlVm9pY_Ej-f-xBthqxF7g.png" /></figure><h3>Why Old Compression Techniques Weren’t Good Enough</h3><p>Engineers have been trying to shrink the KV cache for years using a family of techniques called <strong>quantization </strong>essentially, replacing precise numbers with rougher approximations that take up less space.</p><p>Methods like <strong>PQ, GPTQ, and AWQ</strong> made progress. But they all shared two critical weaknesses:</p><h3>The Hidden Memory Tax</h3><p>Traditional quantization groups numbers into blocks and stores a separate “scaling constant” for each block a little decoder ring the AI needs to uncompress each chunk. This sounds harmless. But at scale, across millions of vectors, those scaling constants add up to a significant hidden memory cost.</p><h3>The Calibration Problem</h3><p>Worse, most of these methods are <strong>data-dependent</strong>. They need to be “trained” or calibrated on specific datasets before they work reliably. Change the use case, change the data and you often need to recalibrate from scratch. Slow, rigid, and expensive.</p><p>The field needed something fundamentally different. Something with no hidden tax, no calibration requirement, and no accuracy trade-off.</p><p>That’s exactly what TurboQuant delivers.</p><h3>How TurboQuant Actually Works — The Two-Stage Breakthrough</h3><p>TurboQuant isn’t just a better version of old compression. It’s a different mathematical philosophy entirely. It works in two elegant stages:</p><h3>🌀 Stage 1: The “Magical Spin” — PolarQuant</h3><p>Here’s where it gets beautiful.</p><p>Instead of building a custom compression dictionary (which requires calibration), TurboQuant takes a completely different approach: it <strong>mathematically rotates the data</strong>.</p><p>Specifically, it applies a <strong>Random Rotation Matrix</strong> to the incoming KV cache vectors essentially spinning the high-dimensional numbers through a mathematical transformation.</p><p>Why does spinning help? Because the rotation forces the data into a highly <strong>predictable statistical shape </strong>something called a Beta distribution. Once the data is in this shape, it can be compressed instantly and uniformly, with no block-by-block scaling constants needed.</p><p>Think of it like this: instead of trying to pack oddly-shaped objects into a box (requiring custom foam inserts for each one), you first reshape all the objects into perfect spheres — then stacking them becomes trivially easy.</p><p><strong>The result: zero calibration, zero scaling tax, instant compression.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lW4MfyAvb7y_n4zorZUwog.png" /></figure><h3>🎯 Stage 2: The 1-Bit Error Corrector — QJL</h3><p>Stage 1 is powerful, but the rotation introduces a tiny mathematical bias a small but real distortion in the compressed data.</p><p>TurboQuant’s second stage fixes this with surgical precision using a technique called the <strong>Quantized Johnson-Lindenstrauss (QJL) transform</strong>.</p><p>Here’s the remarkable part: it corrects this bias by spending just <strong>1 single bit per dimension</strong> on error-checking.</p><p>One bit. That’s the smallest unit of information that exists in computing. And it’s enough to clean up the remaining error almost completely pushing the compression quality to near-theoretical limits.</p><p>This is what separates TurboQuant from every previous approach. It doesn’t just compress efficiently. It <strong>verifies the compression mathematically</strong>, in real time, at almost no extra cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_CTSOGSQlAFVgj2EkKF9xw.png" /></figure><h3>The Results: What “Mind-Blowing” Actually Looks Like in Practice</h3><p>Let’s talk numbers because the benchmarks are where TurboQuant stops being interesting and starts being important.</p><h3>🗜️ True 3-Bit Lossless Compression</h3><p>TurboQuant achieves <strong>6x compression</strong> of the KV cache at just 3 bits per value with <strong>zero measurable drop</strong> in accuracy on retrieval tasks and coding benchmarks.</p><p>Not “acceptable loss.” Not “marginal degradation.” Zero.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e2iKJJ9aXWWnLdCIBPVmgA.png" /></figure><h3>⚡ 8x Faster Attention on H100 GPUs</h3><p>Memory movement is one of the biggest bottlenecks in modern AI inference. Less data to move means faster calculations. TurboQuant’s compression translates directly to <strong>8x faster attention computation</strong> on NVIDIA H100 hardware.</p><p>For production AI systems, that’s not a nice-to-have. That’s a fundamental cost and performance shift.</p><h3>🔬 Near the Laws of Physics</h3><p>This is the number that should genuinely stop you for a moment.</p><p>TurboQuant’s distortion levels are within <strong>~2.7x of Shannon’s information-theoretic limit </strong>the mathematical boundary that defines the absolute best compression theoretically possible for any data, under any method, ever.</p><p>In other words: we are approaching the point where it is <em>mathematically impossible</em> to compress this data better than TurboQuant already does.</p><p>That’s not engineering progress. That’s a law-of-physics moment.</p><h3>Why This Matters Far Beyond Research Papers</h3><p>You might be thinking: <em>okay, impressive math but does this actually change anything I use?</em></p><p>Yes. More than you might expect.</p><h3>For Everyday AI Users</h3><p>Longer, smarter conversations without degradation. AI assistants that can actually hold an entire project’s worth of context without forgetting your first message.</p><h3>For Developers Building with LLMs</h3><p>Dramatically lower inference costs. If you’re paying per token or per GPU-hour for AI API calls, a 6x memory reduction and 8x speed boost changes your unit economics completely.</p><h3>For the Broader AI Landscape</h3><p>The Memory Wall has been a quiet ceiling on what’s possible with local AI models. Running a powerful LLM on a laptop or edge device requires fitting everything model weights <em>and</em> KV cache into limited memory.</p><p>TurboQuant chips away at that ceiling. <strong>Massive, infinite-context models on smaller, cheaper hardware</strong> is no longer a distant dream. It’s becoming an engineering roadmap.</p><h3>The Bigger Picture: Compression as a Competitive Moat</h3><p>There’s a pattern in the history of technology: the teams that win aren’t always the ones who build the biggest models. They’re the ones who run those models most efficiently.</p><p>TurboQuant is a reminder that the next frontier in AI isn’t just about scale it’s about <strong>precision, efficiency, and mathematical elegance</strong>.</p><p>We’ve spent years making LLMs smarter. Now the race is to make them leaner. And the teams that crack efficient inference without sacrificing capability will define what AI looks like on every device, in every application, at every price point.</p><p>TurboQuant is a significant step in that direction. A two-stage algorithm, zero calibration, one bit of correction and results that brush up against the theoretical limits of what mathematics says is possible.</p><p>That’s not just a research paper. That’s a glimpse of what’s coming.</p><h3>What Do You Think Comes Next?</h3><p>The implications of near-lossless KV cache compression are enormous for local AI, for edge deployment, for the cost of running LLMs at scale.</p><p>👉 <strong>If you found this breakdown useful follow me here on Medium.</strong> I write about the AI and engineering breakthroughs that are quietly reshaping what’s possible, explained clearly for developers and curious minds alike.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c17a9b1fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Teapot 3D Animation With 10,000 Particles Can Change Your Website’s First Impression]]></title>
            <link>https://medium.com/@Sahilv05/how-a-teapot-3d-animation-with-10-000-particles-can-change-your-websites-first-impression-84e45fb8ffef?source=rss-fe84a8599a90------2</link>
            <guid isPermaLink="false">https://medium.com/p/84e45fb8ffef</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[threejs]]></category>
            <dc:creator><![CDATA[Sahil Kumar]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 10:42:41 GMT</pubDate>
            <atom:updated>2026-04-20T10:42:41.777Z</atom:updated>
            <content:encoded><![CDATA[<p>From a classic rendering icon to a cinematic browser experience — why this Three.js effect is the upgrade your website has been waiting for.</p><h4>You Have 7 Seconds. What Does Your Website Do With Them?</h4><p>Seven seconds. That’s the average time a visitor decides whether to stay on your website or hit the back button.</p><p>Not seven minutes. Not even one. Seven seconds.</p><p>Now ask yourself honestly — when someone lands on your site, does it <em>stop</em> them in their tracks? Or does it look like every other clean-but-forgettable template they’ve seen a hundred times this week?</p><p>So I built something about it. And what came out was a real-time 3D particle morphing animation that I genuinely couldn’t stop staring at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*LCfVoNmB4bb32D8zgOeXHA.gif" /><figcaption>Animation</figcaption></figure><h4>What Is a 3D Particle Animation, Exactly?</h4><p>If you’re new to creative web development, let me break this down simply.</p><p>Imagine 10,000 tiny glowing dots floating in 3D space. Now imagine those dots smoothly flowing and reorganizing themselves — forming a sphere, then a cube, then a DNA helix, then a human silhouette — all in real time, all inside your browser.</p><p>That’s a particle morphing animation.</p><p>It’s built using <strong>Three.js</strong>, a JavaScript library that makes WebGL (your browser’s 3D rendering engine) accessible without needing to know graphics programming. The result is cinematic 3D motion that runs natively in any modern browser — no plugins, no heavy downloads, no special hardware.</p><p><strong>What makes this version special:</strong></p><ul><li><strong>10,000 particles</strong> moving simultaneously with smooth transitions</li><li><strong>7 shape presets</strong> — Sphere, Cube, Torus, Car, Person silhouette, DNA Helix, and a Teapot mesh</li><li><strong>Bloom/glow post-processing</strong> that gives every particle a soft, cinematic light halo</li><li><strong>Keyboard controls</strong> so you (or your visitor) can switch shapes live</li><li><strong>Zero build steps</strong> — it runs straight from a browser with a simple local server</li></ul><h4>The Technical Side (Simplified for Everyone)</h4><p>You don’t need to be a Three.js expert to use this. The project ships as three clean files:</p><ul><li>index.html — your page structure</li><li>main.js — where all the animation logic lives</li><li>style.css — styling and layout</li></ul><pre>python3 -m http.server 8000</pre><p>Then open your browser to localhost:8000 and it&#39;s live. That&#39;s it.</p><h3>Switching Shapes</h3><p>Hit a number key on your keyboard and watch the particles flow into a new form:</p><ul><li>1 → Sphere</li><li>2 → Cube</li><li>3 → Torus</li><li>4 → Car silhouette</li><li>5 → Person silhouette</li><li>6 → DNA Helix</li><li>7 → Teapot</li></ul><h3>Ready to Make Your Website Unforgettable?</h3><p>The Globe Particle Morph is available now on Gumroad. You get the complete source code, all seven shape presets, bloom post-processing, keyboard controls, and a codebase that’s genuinely easy to customize.</p><p>👉 <strong>[Grab it on Gumroad — </strong><a href="https://sahilv05.gumroad.com/l/degajn">https://sahilv05.gumroad.com/l/degajn</a><strong>]</strong></p><p>And if you’re building something and want to see more effects like this — <strong>follow me here on Medium</strong>. I’m documenting the entire series as I build and launch each new animation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84e45fb8ffef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>