Kubo.watch

Git repository

https://gitworkshop.dev/sebastix.dev/kubo-watch

About the Combined Git View

This advanced component combines two different perspectives of the same Git repository: decentralized Nostr states and centralized Git lab history.

🔗 Nostr Integration (NIP-34)

  • Fetches kind 30618 repository state events
  • Shows current branch/tag commit IDs
  • Decentralized, relay-based distribution
  • Includes HEAD reference and parent chains

🦊 Git lab integration

  • Fetches commit history via Git lab API
  • Shows commit messages and authors
  • Includes commit statistics (+/-)
  • Links to Git lab commit pages

Smart Comparison: Commits that match Nostr repository states are highlighted in green, showing which commits are being tracked in the decentralized state.

Technical Implementation Details

This component demonstrates advanced Git integration:

  • Dual Data Sources: Simultaneously fetches from Nostr relays and Git lab API
  • Commit Matching: Compares Git lab commit IDs with Nostr repository state refs
  • Branch Switching: Dynamic branch selection with live Git lab data updates
  • Visual Comparison: Highlights commits that are tracked in Nostr states
  • Error Resilience: Works even if one data source fails
  • Performance: Parallel API calls for fast loading
Nostr source:https://gitworkshop.dev/sebastix.dev/kubo-watch
Git lab source:https://gitlab.com/sebastix-group/nostr/kubo.watch
APIs Used: Nostr Web socket relays + Git lab REST API v4
Comparison Method: Commit ID matching between sources