How viru04/agent-hub works
agentHub indexes the pinned awesome-copilot collection into a safety- and role-aware marketplace, then supports discovery in a web UI or CLI and hash-verified installation of selected assets. The CLI resolves assets and bundles, fetches their indexed upstream files, checks integrity and local conflicts, writes them to the chosen scope, and records a lockfile. The README documents build-to-index behavior and additional CLI features; unsampled implementation details are represented only where that documentation supports them.
Main entry points: App.jsx Marketplace UI · ingest.mjs Asset ingestion · install.mjs Verified installer · main.mjs Command routing
Components 21
Curation & indexing
- Curation data
curation - Asset ingestion
lib/ingest.mjs - Frontmatter parser
lib/frontmatter.mjs - Safety heuristics
lib/scan.mjs - Curation schemas
lib/schema.mjs - Generated index
Web marketplace
- Marketplace UI
web/src/App.jsx - Asset cards
web/src/components/AssetCard.jsx - Asset details
web/src/components/AssetDetails.jsx - Install cart UI
web/src/components/InstallCart.jsx - Cart sharing
web/src/cart.js
CLI discovery
- CLI command
cli/bin/agenthub.mjs - Command routing
cli/src/main.mjs - Registry access
cli/src/registry.mjs
Installation & state
- Asset resolution
cli/src/resolve.mjs - Verified installer
cli/src/install.mjs - Local or global files
- Install lockfile
Other components
- awesome-copilot
- Marketplace user
- CLI user
Connections 24
- awesome-copilot → Asset ingestion: supplies pinned assets
README.md - Curation data → Asset ingestion: configures curation
lib/ingest.mjs - Asset ingestion → Frontmatter parser: parses metadata
lib/ingest.mjs - Asset ingestion → Safety heuristics: scans content
lib/ingest.mjs - Asset ingestion → Curation schemas: validates curation
lib/ingest.mjs - Asset ingestion → Generated index: generates index
README.md - Marketplace user → Marketplace UI: browses
- Marketplace UI → Generated index: fetches index
web/src/App.jsx - Marketplace UI → Asset cards: renders cards
web/src/App.jsx - Marketplace UI → Asset details: renders details
web/src/App.jsx - Marketplace UI → Install cart UI: renders cart
web/src/App.jsx - Marketplace UI → Cart sharing: encodes cart
web/src/App.jsx - Install cart UI → Cart sharing: creates commands
web/src/components/InstallCart.jsx - CLI user → CLI command: runs command
README.md - CLI command → Command routing: dispatches to
cli/bin/agenthub.mjs - Command routing → Registry access: opens registry
cli/src/main.mjs - Registry access → Generated index: reads index
cli/src/registry.mjs - Command routing → Verified installer: invokes install
cli/src/main.mjs - Verified installer → Asset resolution: resolves specs
cli/src/install.mjs - Verified installer → Registry access: fetches source files
cli/src/registry.mjs - Registry access → awesome-copilot: fetches pinned files
cli/src/registry.mjs - Verified installer → Local or global files: writes verified files
cli/src/install.mjs - Verified installer → Install lockfile: updates install record
cli/src/install.mjs - Command routing → Install lockfile: reads installed state
cli/src/main.mjs