AI
Small Language Models Running Locally Are Reshaping How We Build Web Apps
Rachel Lee Nabors, a former React core contributor, explains why on-device AI offers developers a faster, cheaper, and more privacy-respecting alternative to cloud-based model APIs.
InfoQ
Rachel Lee Nabors, a former member of the React core team and creator of react.dev, has spent recent years rethinking how web applications should handle AI. Rather than treating language models as external services to call over the network, she's exploring what happens when those models run directly in the browser—and the answer suggests a fundamental shift in how developers think about architecture.
Nabors recently discussed these ideas on a podcast, sharing lessons from building Mima (mima.social), a local-first social media aggregator that pulls content from multiple networks—X, LinkedIn, Bluesky, Mastodon—into a single interface, all processed on-device without storing data on company servers.
Why Sending Everything to the Cloud Became Inefficient#
The dominant pattern over the past few years has been straightforward: developers build wrappers around large language models. Users send prompts to a remote API, the model processes them on someone else's servers, and a response comes back. Nabors identifies several problems with this approach.
First, it wastes computational resources. Running inference on multimodal models costs roughly four times more energy than necessary for most real-world tasks. That energy cost translates into API fees that climb with every call. More troubling are the privacy implications—sending text snippets, private messages, or company data to external servers creates vectors for data leaks and competitive espionage.
"I just don't want to have servers with your personal information on it," Nabors explains. The approach also forces users to trust whoever controls the server with potentially sensitive information.
Small Models Do Most of What Large Models Can#
The technology landscape has shifted dramatically. Small language models like Llama 3.2B now handle the tasks that used to require cloud APIs: summarization, classification, content moderation, and tool selection. Nabors documented this shift through systematic evaluation using a technique called evals—essentially test-driven development for AI.
When building Mima, she initially used Claude Sonnet running in the cloud to summarize conversation threads. The practice made her uncomfortable when applied to her own private messages. So she set up evaluations using real data from her conversations, established a quality baseline with larger models, and tested smaller candidates. Using Phoenix, an open-source evals library, she found that Llama 3.2B matched Claude Sonnet's summarization quality while running locally—faster and without leaving her device.

