How hust-open-atom-club/trusted-agent-hub works
TrustedAgentHub is a distribution and trust platform for Agent Skills, MCP servers, plugins, and subagents. Its primary workflow takes a package submission through source acquisition, metadata extraction, security scanning and trust assessment, then human review and publication; users can browse published packages and install them with the CLI. The graph includes the documented web, API, scanner, scoring, and installation capabilities. Some subsystems are represented at directory level because their implementation files were not sampled; those connections are documented by the README rather than inferred from imports.
Main entry points: services/producer.py Producer workflow · main.py API application · routers/producer.py Submission and producer routes · database.py Application database
Components 24
Web and CLI
- Submission UI
apps/web/src/app/submit/page.tsx - Review workspace
apps/web/src/app/review/page.tsx - Browse and package pages
apps/web/src/app/home-client.tsx - CLI commands
apps/cli/src/cli.ts - Install executor
apps/cli/src/install-executor.ts
Platform API
- API application
apps/api/src/main.py - Submission and producer routes
apps/api/src/routers/producer.py - Review and publication routes
apps/api/src/routers/review.py - Authentication routes
apps/api/src/routers/auth.py - Producer workflow
apps/api/src/services/producer.py - JWT and role authorization
apps/api/src/auth.py - API dependencies
apps/api/src/dependencies.py - Trust and scan endpoints
apps/api/src/routers/trust.py
Scanning and trust
- Security scanner
scanners/risk_scanner/scanner.py - Evidence and redaction
scanners/risk_scanner/evidence.py - Trust assessment engine
packages/trust-score/src/engine.py
Contracts and storage
- Package metadata extraction
packages/schema/extract_skills.py - Shared status and finding contracts
packages/schema/constants.py - Producer repository
apps/api/src/repositories/producer_sqlalchemy.py - Package repository
apps/api/src/repositories/sqlalchemy.py - Application database
apps/api/src/database.py
Other components
- Submitter
- Reviewer
- Package user
Connections 29
- Submitter → Submission UI: submits package
README.md - Submission UI → Submission and producer routes: sends submission
- Submission and producer routes → Producer workflow: invokes workflow
- Producer workflow → Security scanner: scans source
apps/api/src/services/producer.py - Producer workflow → Package metadata extraction: extracts metadata
apps/api/src/services/producer.py - Producer workflow → Trust and scan endpoints: refreshes trust
apps/api/src/services/producer.py - Security scanner → Evidence and redaction: builds evidence
scanners/risk_scanner/evidence.py - Security scanner → Shared status and finding contracts: uses finding types
packages/schema/constants.py - Trust assessment engine → Shared status and finding contracts: uses shared constants
packages/trust-score/src/engine.py - Producer workflow → Producer repository: persists workflow
apps/api/src/services/producer.py - Reviewer → Review workspace: reviews findings
README.md - Review workspace → Review and publication routes: submits decision
- Review and publication routes → Producer workflow: changes package status
apps/api/src/routers/review.py - API application → Submission and producer routes: mounts routes
apps/api/src/main.py - API application → Review and publication routes: mounts routes
apps/api/src/main.py - API application → Authentication routes: mounts routes
apps/api/src/main.py - API application → Trust and scan endpoints: mounts routes
apps/api/src/main.py - Authentication routes → JWT and role authorization: uses token functions
apps/api/src/routers/auth.py - JWT and role authorization → Application database: opens database session
apps/api/src/auth.py - API dependencies → Application database: creates sessions
apps/api/src/dependencies.py - API dependencies → Package repository: provides repository
apps/api/src/dependencies.py - Package repository → Application database: reads and writes
apps/api/src/database.py - Producer repository → Application database: persists records
- Package user → Browse and package pages: browses packages
README.md - Package user → CLI commands: runs commands
README.md - CLI commands → Install executor: dispatches install
- Install executor → Submission and producer routes: requests package data
- Install executor → Package user: installs locally
README.md - Browse and package pages → Package repository: loads catalog