Sunday, July 6, 2025
Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano) https://ift.tt/oPix0Im
Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano) Chrome now includes a native on-device LLM (Gemini Nano) starting in version 138. I've been building with it since it was in origin trials, it's powerful but the official Prompt API is still a bit awkward: - Enforces sessions even for basic usage - Requires user-triggered downloads - Lacks type safety or structured error handling So I open-sourced a small TypeScript wrapper I originally built for other projects to smooth over the rough edges: github: https://ift.tt/LxwzqUh npm: https://ift.tt/NEtYBIr - Stateless prompt() method inspired by Anthropic's SDK - Built-in error handling and Result-based .Safe.* variants with neverthrow - Token usage checks - Simple initialization that provides a helper to trigger downloads (must be triggered by user action) It’s intentionally minimal for hacking and prototyping. If you need fine-grained control (e.g. streaming, memory control), use the native API directly: https://ift.tt/A0fFsD4 Would love to hear what people build with it or any feedback! https://ift.tt/LxwzqUh July 6, 2025 at 11:24PM
Subscribe to:
Post Comments (Atom)
Show HN: Starglyphs - A constellation puzzle game based on Euler paths https://ift.tt/imIfyYV
Show HN: Starglyphs - A constellation puzzle game based on Euler paths I am a big Dragon Age fan and sunk hundreds of hours into Inquisition...
-
Show HN: Music player for big local collections with mpd support mpz is a C++/Qt music player focused on UX, with derectory tree and playlis...
-
Show HN: Stickerbox, a kid-safe, AI-powered voice to sticker printer Bob and Arun here, creators of Stickerbox. If AI were built for kids, w...
-
Show HN: HCB Mobile – financial app built by 17 y/o, processing $6M/month Hey everyone! I just built a mobile app using Expo (React Native) ...
No comments:
Post a Comment