Categorygithub.com/gugabfigueiredo/git-remote-nostr
repositorypackage
0.0.1
Repository: https://github.com/gugabfigueiredo/git-remote-nostr.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

git-remote-nostr - WIP

Host your code wherever you want (github, gitlab, gitea, etc.).

Host a single remote url for your repo on nostr.

Installation

$ go install github.com/gugabfigueiredo/git-remote-nostr

To clone this repo try with this ad-hoc remote url:

$ git clone nostr::cc3d2bbe8530edabc1555fcdf1d93f6caed604a6eaf96f7939da47e83b52b935@relay.primal.net:git-remote-nostr

Usage

clone from a public key:

$ git clone nostr://96beaaaeffcf4ca1b1e988bc5f112602b20945b67dc27339af31bd0854bcbf47@relay.str/git-remote-nostr

Clone from a nip-05 compatible identifier:

$ git clone nostr::[email protected]:git-remote-nostr

clone from a nip-19 compatible identifier:

$ git clone nostr://npub1sfm59ksgc7g3sckz8hw5wk990t2v8wmunwysxn0sfpt8g7r0zezq6y46mp@relay.str/git-remote-nostr

Examples

Open the example client in a browser to create a quick bare announcement with the required tags.

Run the example client:

$ make example-up

Or connect to a known relay:

2024-06-26_07-05.png

Roadmap

  • create git-remote-helper
  • clone from remote url
  • fetch from remote url
  • push to remote url
  • parse remote url
  • fetch remote url from nostr
  • add support for all nostr identifiers
    • supports public keys
    • full support nor nip-19 identifiers if applicable
      • support nip-19 npubs/repo-id
      • support nip-19 notes
      • support nip-19 nevents
      • support nip-19 nprofile/repo-id
      • support nip-19 naddr
    • supports nip-05 identifiers
    • others?
  • add support for nostr hosted repos
    • add permission verification for private repos
      • add ssh key exchange for contributors