{
  "schemaVersion": "1.0",
  "item": {
    "slug": "synapse",
    "name": "synapse",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "canonicalUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/synapse",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=synapse",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "HEARTBEAT.md",
      "README.md",
      "SKILL.md",
      "client.py",
      "pyproject.toml",
      "requirements.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/synapse"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/synapse",
    "agentPageUrl": "https://openagent3.xyz/skills/synapse/agent",
    "manifestUrl": "https://openagent3.xyz/skills/synapse/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/synapse/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Synapse Protocol - Installation & Usage",
        "body": "P2P file sharing with semantic search. Share any file, find it by content similarity.\n\nFor features and architecture, see README.md."
      },
      {
        "title": "Prerequisites",
        "body": "Python: 3.10 or higher\nuv: Package manager (install)"
      },
      {
        "title": "Quick Install",
        "body": "# 1. Install uv\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# 2. Navigate to Synapse directory\ncd /path/to/HiveBrain/Synapse\n\n# 3. Dependencies auto-installed on first run via uv\n# No manual venv or pip install needed!\n\n# 4. Verify installation\nuv run python client.py --help\n\nNote: Always use uv run python instead of python3. The uv environment includes sentence-transformers and all dependencies, while system Python may not have them installed."
      },
      {
        "title": "Seeder Daemon Control",
        "body": "# Start seeder daemon (runs in background)\nuv run python client.py seeder start\n\n# Check status\nuv run python client.py seeder status\n\n# Stop daemon\nuv run python client.py seeder stop"
      },
      {
        "title": "Share Files",
        "body": "# Share a file (auto-starts seeder if needed)\nuv run python client.py share /path/to/file.md \\\n  --name \"My Document\" \\\n  --tags \"doc,knowledge\"\n\n# Output: magnet link + starts seeding"
      },
      {
        "title": "Stop Sharing",
        "body": "# List what you're sharing\nuv run python client.py list-shared\n\n# Stop sharing a specific file\nuv run python client.py unshare <info_hash>"
      },
      {
        "title": "Search Network",
        "body": "# Search by content similarity\nuv run python client.py search \\\n  --query \"kubernetes deployment guide\" \\\n  --limit 10\n\n# Returns: ranked results with similarity scores"
      },
      {
        "title": "Download Files",
        "body": "# Download using magnet link from search results\nuv run python client.py download \\\n  --magnet \"magnet:?xt=urn:btih:...\" \\\n  --output ./downloads"
      },
      {
        "title": "Environment Variables",
        "body": "export SYNAPSE_PORT=6881\nexport SYNAPSE_DATA_DIR=\"./synapse_data\""
      },
      {
        "title": "Tracker Configuration",
        "body": "Default tracker: http://hivebraintracker.com:8080\n\nTo use custom trackers:\n\nuv run python client.py share file.txt --trackers \"http://tracker1.com,http://tracker2.com\""
      },
      {
        "title": "🔍 Testing Installation",
        "body": "# Check uv installed\nuv --version\n\n# Test CLI (auto-installs dependencies on first run)\nuv run python client.py --help\n\n# Test seeder\nuv run python client.py seeder status"
      },
      {
        "title": "🆘 Troubleshooting",
        "body": "Issue: ModuleNotFoundError: No module named 'libtorrent'\n\nSolution: Add to pyproject.toml or install: uv pip install libtorrent\n\nIssue: sentence-transformers not found error\n\nSolution: Use uv run python instead of python3. System Python doesn't have the dependencies.\nAlternative: Manually activate: source .venv/bin/activate && python client.py ...\n\nIssue: Port 6881 already in use\n\nSolution: Change port: export SYNAPSE_PORT=6882\n\nIssue: Seeder daemon won't start\n\nSolution: Check logs: cat ~/.openclaw/seeder.log\n\nIssue: Search returns 0 results\n\nSolution: Ensure file was shared WITH embedding registration (check tracker logs)"
      },
      {
        "title": "📚 Available Commands",
        "body": "share           - Share a file with semantic search\nunshare         - Stop sharing a file  \nlist-shared     - List currently shared files\nseeder          - Control seeder daemon (start/stop/status/restart)\nsearch          - Search network by content\ndownload        - Download file from magnet link\ngenerate-magnet - (legacy) Generate magnet without daemon\nsetup-identity  - Generate ML-DSA-87 identity"
      },
      {
        "title": "📖 Next Steps",
        "body": "Read README.md for features and architecture\nCheck tracker status at http://hivebraintracker.com:8080/api/stats\nJoin the network and start sharing!"
      }
    ],
    "body": "Synapse Protocol - Installation & Usage\n\nP2P file sharing with semantic search. Share any file, find it by content similarity.\n\nFor features and architecture, see README.md.\n\n🚀 Installation\nPrerequisites\nPython: 3.10 or higher\nuv: Package manager (install)\nQuick Install\n# 1. Install uv\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# 2. Navigate to Synapse directory\ncd /path/to/HiveBrain/Synapse\n\n# 3. Dependencies auto-installed on first run via uv\n# No manual venv or pip install needed!\n\n# 4. Verify installation\nuv run python client.py --help\n\n\nNote: Always use uv run python instead of python3. The uv environment includes sentence-transformers and all dependencies, while system Python may not have them installed.\n\n📝 Usage\nSeeder Daemon Control\n# Start seeder daemon (runs in background)\nuv run python client.py seeder start\n\n# Check status\nuv run python client.py seeder status\n\n# Stop daemon\nuv run python client.py seeder stop\n\nShare Files\n# Share a file (auto-starts seeder if needed)\nuv run python client.py share /path/to/file.md \\\n  --name \"My Document\" \\\n  --tags \"doc,knowledge\"\n\n# Output: magnet link + starts seeding\n\nStop Sharing\n# List what you're sharing\nuv run python client.py list-shared\n\n# Stop sharing a specific file\nuv run python client.py unshare <info_hash>\n\nSearch Network\n# Search by content similarity\nuv run python client.py search \\\n  --query \"kubernetes deployment guide\" \\\n  --limit 10\n\n# Returns: ranked results with similarity scores\n\nDownload Files\n# Download using magnet link from search results\nuv run python client.py download \\\n  --magnet \"magnet:?xt=urn:btih:...\" \\\n  --output ./downloads\n\n⚙️ Configuration\nEnvironment Variables\nexport SYNAPSE_PORT=6881\nexport SYNAPSE_DATA_DIR=\"./synapse_data\"\n\nTracker Configuration\n\nDefault tracker: http://hivebraintracker.com:8080\n\nTo use custom trackers:\n\nuv run python client.py share file.txt --trackers \"http://tracker1.com,http://tracker2.com\"\n\n🔍 Testing Installation\n# Check uv installed\nuv --version\n\n# Test CLI (auto-installs dependencies on first run)\nuv run python client.py --help\n\n# Test seeder\nuv run python client.py seeder status\n\n🆘 Troubleshooting\n\nIssue: ModuleNotFoundError: No module named 'libtorrent'\n\nSolution: Add to pyproject.toml or install: uv pip install libtorrent\n\nIssue: sentence-transformers not found error\n\nSolution: Use uv run python instead of python3. System Python doesn't have the dependencies.\nAlternative: Manually activate: source .venv/bin/activate && python client.py ...\n\nIssue: Port 6881 already in use\n\nSolution: Change port: export SYNAPSE_PORT=6882\n\nIssue: Seeder daemon won't start\n\nSolution: Check logs: cat ~/.openclaw/seeder.log\n\nIssue: Search returns 0 results\n\nSolution: Ensure file was shared WITH embedding registration (check tracker logs)\n📚 Available Commands\nshare           - Share a file with semantic search\nunshare         - Stop sharing a file  \nlist-shared     - List currently shared files\nseeder          - Control seeder daemon (start/stop/status/restart)\nsearch          - Search network by content\ndownload        - Download file from magnet link\ngenerate-magnet - (legacy) Generate magnet without daemon\nsetup-identity  - Generate ML-DSA-87 identity\n\n📖 Next Steps\nRead README.md for features and architecture\nCheck tracker status at http://hivebraintracker.com:8080/api/stats\nJoin the network and start sharing!"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "publisherUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "owner": "Pendzoncymisio",
    "version": "0.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/synapse",
    "downloadUrl": "https://openagent3.xyz/downloads/synapse",
    "agentUrl": "https://openagent3.xyz/skills/synapse/agent",
    "manifestUrl": "https://openagent3.xyz/skills/synapse/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/synapse/agent.md"
  }
}