cd /news/ai-tools/can-a-25-mb-browser-model-design-a-q… · home › topics › ai-tools › article
[ARTICLE · art-163796] src=ainexusdaily.vercel.app ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Can a 25 MB Browser Model Design a Quote Card?

A developer built Slothpress, a client-side quote-card app that runs a quantized 25 MB MobileBERT checkpoint (Xenova/mobilebert-uncased-mnli) via transformers.js and ONNX Runtime Web to rank eight typography presets against a user's quote, with the AI chunk (~6.7 MB ONNX runtime plus 25.7 MB weights) loaded dynamically only on request after a 13.6-second initial download. The rendering engine stays deterministic and is backed by 79 unit tests running in under a second, so the model only suggests styles and never alters text or draws pixels; the developer documented a failure case where the model ranked the stark "Ink" preset first and the sea-themed "Tide" third for the quote "The sea was vast and deep that night." The app shell is 78 KB gzipped, and the WebAssembly and worker files are self-hosted in dist/assets/ rather than loaded from third-party CDNs, letting the tool run fully offline after the model is cached.

read2 min views4 publishedNov 4, 2026
Can a 25 MB Browser Model Design a Quote Card?
Image: Ainexusdaily (auto-discovered)

This is a submission for the MLH x DEV Writing Challenge What I Built Everything happens completely client-side in your browser tab: no account, no uploads, no servers, and no API keys. When you click "Suggest a style", a lightweight, quantized 25 MB MobileBERT checkpoint (Xenova/mobilebert-uncased-

mnli) runs directly in your browser tab via transformers.js and ONNX Runtime. It reads your quote, ranks eight typography presets against it, and applies the vibe that fits best. Crucially, the model is kept entirely away from the renderer. The core rendering engine is completely deterministic: Backed by 79 unit tests running in under a second, the AI only suggests; it never alters your words or draws pixels.

Human intent and reliable design control always stay front and center. Demo Live App: https://emanuelmsjv.github.io/slothpress/ GitHub Repository: Emanuelmsjv/slothpress DEV.to Article & Writeup: I let a 25 MB model choose the typeface for my quote cards. It got it wrong. Hugging Face (@huggingface/transformers & ONNX Runtime Web): Instead of calling a metered, closed-source API, I implemented a zero-shot classification pipeline entirely in the browser using quantized ONNX weights.

Self-Hosted Runtime Asset Delivery: To protect user privacy and avoid relying on external third-party CDNs (like jsDelivr) in the runtime path, Vite bundles the WebAssembly and worker files (ort-wasm-simd-threaded.asyncify.wasm) directly into dist/assets/ to be served from the app's own origin and cached by the service worker. Progressive & Cost Management: The app shell remains lightweight at 78 KB gzipped. The AI chunk (~6.7 MB ONNX runtime + 25.7 MB MobileBERT weights) is loaded dynamically via import() only when the user explicitly requests a suggestion. After the initial 13.6-second download, the model lives in the browser cache and functions seamlessly offline.

One of the most memorable moments was discovering that when asked about "The sea was vast and deep that night," the model ranked Ink (stark, technical) first and Tide (deep, vast, contemplative like the sea) third due to its training priors over natural language inference labels. Instead of hiding the imperfection behind a black box or a heavy server, I shipped it anyway—leaving the scores visible on screen and documenting the trade-off in the README. It proved a vital lesson: a model you cannot inspect is not open innovation. Because everything from ONNX Runtime to the app code is transparent and client-side, users can see why a choice was made, disagree with it in one click, and run the entire experience completely offline.

Key Takeaways #

  • •It reads your quote, ranks eight typography presets against it, and applies the vibe that fits best.
  • •This story was reported by Dev.to , covering developments in thedev space.
  • •AI advancements continue to reshape industries — read the full article on Dev.to for complete coverage.

📖 Continue reading the full article:

Read Full Article on Dev.to →

── more in #ai-tools 4 stories · sorted by recency
── more on @slothpress 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/can-a-25-mb-browser-…] indexed:0 read:2min 2026-11-04 · —