Nostr GitHub Integration Extension
Seamlessly integrate your GitHub workflow with the Nostr network. This browser extension enables you to create repo announcements, share code snippets, and generate permalinks directly from GitHub, publishing them to your selected Nostr relays.

The Nostr Git extension adds convenient integration points throughout the GitHub interface
Features
Repository Announcements
Create Nostr git repo announcements (kind:
3067
) from any repository's main pageShare your projects with the Nostr community

Creating a repository announcement with metadata
Code Sharing
Create Nostr code snippets (kind:
1337
) from files or selectionsGenerate Nostr permalinks (proposed kind:
1623
) from selected line ranges

Sharing code snippets with syntax highlighting and context

Sharing GitHub Permalinks with full line numbers and snippet
Rich Metadata
Automatically extracts and includes:
Line ranges and context
File paths and language detection
Repository metadata (license, topics, runtime, description)
Commit information and messages
Customization & Security
User-configurable relays via the toolbar popup menu
Secure signing with your browser's NIP-07 compatible signer (e.g. AKA Profiles)

Configure your preferred Nostr relays through the extension popup
Installation
Chrome Web Store (Coming Soon)
The extension will be available in the Chrome Web Store for easy installation.
Firefox Add-ons (Coming Soon)
Firefox users will be able to install directly from Firefox Add-ons.
Developer Mode
Clone the repo:
git clone https://github.com/chebizarro/nostr-git-extension.git cd nostr-git-extension
Install dependencies:
npm install
Build the extension:
For Chrome:
npm run build:chrome
For Firefox:
npm run build:firefox
Load the extension:
Chrome:
Visit
chrome://extensions/
Enable Developer Mode
Click "Load unpacked"
Select the
dist/nostr-github-extension
directory
Firefox:
Visit
about:debugging#/runtime/this-firefox
Click "Load Temporary Add-on"
Select any file in the
dist/nostr-github-extension
directory
How It Works
Creating Code Snippets
Navigate to any file or line range on GitHub
Right-click or use the gutter menu to select Create Nostr Snippet or Create Nostr Permalink
Add an optional description in the GitHub-style modal
The extension creates and signs a Nostr event (kind
1337
or1623
)The event is published to your configured relays
Repository Announcements
Visit any GitHub repository's main page
Click the Nostr Git icon in the repository header
Review and customize the announcement metadata
Publish to share with the Nostr community
Configuration
Initial Setup
Click the Nostr Git icon in your browser toolbar
Connect your NIP-07 compatible signer
Add your preferred relays (e.g.
wss://relay.damus.io
)
Contributing
We welcome contributions from the community! Whether it's code, documentation, or feature suggestions, your help makes this project better.
Getting Started
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
Development Guidelines
Follow the existing code style
Add tests for new features
Update documentation as needed
Keep commits focused and descriptive
Repo: https://github.com/chebizarro/nostr-git-extension
License
This project is licensed under the MIT License.
Support
If you find this extension useful, consider:
Starring the repository
Sharing it with your network
Contributing to its development
Following the project on Nostr