Typed Chrome runtime helper for extension developers.
npm install @theluckystrike/webext-runtimeimport { webextRuntime } from '@theluckystrike/webext-runtime';
// Get resource URL
const url = webextRuntime.getURL('assets/logo.png');
// Send message
const response = await webextRuntime.sendMessage({ type: 'GREETING' });
// Open options page
await webextRuntime.openOptionsPage();- Fully typed Chrome runtime API wrapper.
- Promise-based methods for messaging and async operations.
- Clean and consistent API.
MIT
Built by theluckystrike — zovo.one