@sp-editor/native-bridge
v1.1.0
Published
SP Editor native messaging bridge — routes AI prompts through the local GitHub Copilot CLI
Downloads
1,721
Maintainers
Readme
@sp-editor/native-bridge
Native messaging bridge for the SP Editor browser extension (Chrome · Edge). Connects the browser extension to the local GitHub Copilot CLI so AI features work without sending your SharePoint data to external servers.
Prerequisites
- Node.js 18+
- GitHub Copilot CLI installed and authenticated:
npm install -g @github/copilot copilot login
Installation
npm install -g @sp-editor/native-bridge
sp-editor-bridge installThis registers the native messaging host manifest with Chrome and Edge on your machine.
Commands
sp-editor-bridge install # Install for Chrome / Edge
sp-editor-bridge install --verbose # Show each manifest path written
sp-editor-bridge install --extension-id <id> # Use a custom / dev extension ID
sp-editor-bridge uninstall # Remove all manifests and registry keys
sp-editor-bridge status # Show installation statusPlatforms
| Platform | Supported | |----------|-----------| | macOS | ✓ Chrome, Edge, Chromium | | Linux | ✓ Chrome, Edge, Chromium | | Windows | ✓ Chrome, Edge |
How it works
The bridge is a small Node.js process spawned by the browser via the Native Messaging protocol. It reads length-prefixed JSON messages from stdin, forwards AI prompts to the local Copilot CLI, and writes responses back to stdout.
No data leaves your machine except through the Copilot CLI itself.
License
MIT
