Discover and explore top open-source AI tools and projects—updated daily.
kstonekuanTypeScript SDK for Chrome's local LLM Prompt API
Top 98.5% on SourcePulse
This project provides a lightweight TypeScript wrapper for Chrome's Local LLM Prompt API, targeting developers building browser extensions. It simplifies LLM integration by offering type-safe initialization, automatic error handling, and a streamlined API, enabling quicker development of AI-powered features within Chromium browsers.
How It Works
The library acts as a thin layer over Chrome's native AI Prompt API, abstracting away complex setup and session management. It enforces type safety through TypeScript, preventing incorrect API calls. Key features include automatic error handling, a simplified prompt function, and a Safe API variant that returns Result types for explicit error management, enhancing robustness and developer experience.
Quick Start & Requirements
npm install simple-chromium-aichrome://flags.chrome://components.demo folder.Highlighted Details
Result types for explicit, graceful error handling.createSession, withSession).AbortController.Maintenance & Community
The README does not detail specific contributors, sponsorships, or community channels (e.g., Discord, Slack).
Licensing & Compatibility
Limitations & Caveats
This wrapper prioritizes simplicity and does not expose all native API capabilities, notably omitting support for streaming responses. Users requiring streaming functionality must use the native Chromium AI APIs directly. The setup involves enabling specific browser flags and a significant model download (~4GB).
2 days ago
Inactive
approximatelabs
microsoft
microsoft
ShishirPatil