Runtime packages
ExtForge ships first-party runtime packages as subpaths of the extforge npm package. No extra installs, no extra lockfile entries.
| Subpath | Use case |
|---|---|
extforge/storage | Typed chrome.storage wrapper with watch API and namespaces |
extforge/storage/react | useStorage() React hook |
extforge/messaging | Typed RPC over chrome.runtime — defineHandler, sendMessage, ports |
extforge/csui | Mount UI inside a Shadow DOM on matched pages. File-based discovery |
extforge/env | .env loader, EXTFORGE_PUBLIC_* keys inlined into bundles |
extforge/logger | Structured logger with JSON transport — exported for plugins and CI |
Each subpath has its own import and types entry in package.json#exports, so tree-shaking only pulls in what you import.