React hooks for Gemini Nano
@yudin-s/react-chrome-ai gives React applications a hook-first
interface for Gemini Nano through Chrome Built-in AI and the native
LanguageModel Prompt API.
The package covers model availability, user activation, browser-managed model download progress, session creation, streaming prompts, structured output, context-window state, and teardown.
Install with npm install @yudin-s/react-chrome-ai, then use
useChromeAIAvailability, useChromeAISession,
useChromeAIPrompt, and useChromeAIStream.
Links: npm, GitHub, live example.