{"id":32675471,"url":"https://github.com/oculairmedia/huly-vibe-sync","last_synced_at":"2026-04-27T16:33:48.307Z","repository":{"id":321090700,"uuid":"1084445180","full_name":"oculairmedia/huly-vibe-sync","owner":"oculairmedia","description":"Bidirectional synchronization service between Huly and Vibe Kanban using Model Context Protocol (MCP)","archived":false,"fork":false,"pushed_at":"2026-04-23T07:05:00.000Z","size":15501,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-23T08:28:19.208Z","etag":null,"topics":["bidirectional-sync","docker","huly","mcp","model-context-protocol","nodejs","sync","vibe-kanban"],"latest_commit_sha":null,"homepage":"https://docs.oculair.ca","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oculairmedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit-project-paths.js","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-10-27T17:30:54.000Z","updated_at":"2026-04-23T07:04:24.000Z","dependencies_parsed_at":"2025-10-27T19:26:32.538Z","dependency_job_id":null,"html_url":"https://github.com/oculairmedia/huly-vibe-sync","commit_stats":null,"previous_names":["oculairmedia/huly-vibe-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oculairmedia/huly-vibe-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oculairmedia%2Fhuly-vibe-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oculairmedia%2Fhuly-vibe-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oculairmedia%2Fhuly-vibe-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oculairmedia%2Fhuly-vibe-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oculairmedia","download_url":"https://codeload.github.com/oculairmedia/huly-vibe-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oculairmedia%2Fhuly-vibe-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bidirectional-sync","docker","huly","mcp","model-context-protocol","nodejs","sync","vibe-kanban"],"created_at":"2025-11-01T06:01:36.401Z","updated_at":"2026-04-27T16:33:48.302Z","avatar_url":"https://github.com/oculairmedia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Huly-Vibe Sync Service\n\n[![Build and Push Docker Image](https://github.com/oculairmedia/huly-vibe-sync/actions/workflows/docker-build.yml/badge.svg)](https://github.com/oculairmedia/huly-vibe-sync/actions/workflows/docker-build.yml)\n\nBidirectional synchronization service between [Huly](https://huly.io) and [Vibe Kanban](https://github.com/oculairmedia/vibe-kanban) using the Model Context Protocol (MCP).\n\n## Features\n\n- ✅ **Bidirectional Sync**: Huly ↔ Vibe Kanban for project and task state\n- ✅ **REST API Integration**: Fast, efficient Huly REST API client for optimal performance\n- ✅ **Incremental Sync**: Only fetches issues modified since last sync (timestamp-based)\n- ⚡ **Parallel Processing**: Concurrent project sync with configurable workers (default: 5)\n- 🚀 **Smart Caching**: Skips empty projects to reduce API load\n- ⏱️ **Fast Sync**: 10-second intervals for near real-time updates (~3-5s per cycle)\n- ✅ **Full Description Support**: Multi-line issue descriptions preserved with all formatting\n- ✅ **Status Synchronization**: Task status changes sync both ways (Huly and Vibe)\n- ✅ **Filesystem Path Mapping**: Automatic project path detection from Huly descriptions\n- ✅ **Configurable Intervals**: Run once, continuous sync, or on-demand\n- ✅ **Docker Support**: Fully containerized with health checks\n- ✅ **MCP Fallback**: Optional MCP protocol support for backwards compatibility\n\n## Performance\n\n**Current Configuration (Optimized):**\n\n- **Sync Interval**: 10 seconds (configurable)\n- **Incremental Sync Time**: 3-5 seconds (only fetches changed issues)\n- **Active Projects**: Processes only ~8-10 projects with issues (skips 30+ empty)\n- **Parallel Workers**: 5 concurrent project syncs\n- **Near Real-Time**: Changes sync within 10-15 seconds\n\n**Previous (Sequential):**\n\n- Sync Interval: 30 seconds\n- Full Sync Time: 25-30 seconds\n- All 44 projects processed sequentially\n\n## Quick Start\n\n### Using Pre-built Docker Image (Recommended)\n\n```bash\n# Pull the latest image from GitHub Container Registry\ndocker pull ghcr.io/oculairmedia/huly-vibe-sync:latest\n\n# Or use docker-compose with the pre-built image\ncd /opt/stacks/huly-vibe-sync\ncp .env.example .env\n# Edit docker-compose.yml to use: image: ghcr.io/oculairmedia/huly-vibe-sync:latest\ndocker-compose up -d\ndocker-compose logs -f\n```\n\n### Building from Source\n\n```bash\ncd /opt/stacks/huly-vibe-sync\ncp .env.example .env\ndocker-compose build\ndocker-compose up -d\ndocker-compose logs -f\n```\n\n## Docker Images\n\nPre-built Docker images are automatically published to GitHub Container Registry:\n\n- **Latest (main branch)**: `ghcr.io/oculairmedia/huly-vibe-sync:latest`\n- **Develop branch**: `ghcr.io/oculairmedia/huly-vibe-sync:develop`\n- **Tagged releases**: `ghcr.io/oculairmedia/huly-vibe-sync:v1.0.0`\n- **Commit SHA**: `ghcr.io/oculairmedia/huly-vibe-sync:main-\u003csha\u003e`\n\nImages are built for both `linux/amd64` and `linux/arm64` platforms.\n\n## Configuration\n\n### Environment Variables\n\nSee `.env.example` for all available options. Key settings:\n\n```bash\n# Core Settings\nHULY_API_URL=http://192.168.50.90:3457/api\nHULY_USE_REST=true\nVIBE_MCP_URL=http://192.168.50.90:9717/mcp\n\n# Sync Behavior\nSYNC_INTERVAL=10000           # 10 seconds (default: 10000ms)\nINCREMENTAL_SYNC=true         # Only fetch changed issues\nPARALLEL_SYNC=true            # Process projects concurrently\nMAX_WORKERS=5                 # Max concurrent API calls\nSKIP_EMPTY_PROJECTS=true      # Skip projects with 0 issues\n\n# Dry Run Mode\nDRY_RUN=false                 # Set to true for testing\n```\n\n### Performance Tuning\n\n**For faster sync:**\n\n- Reduce `SYNC_INTERVAL` to 5000 (5 seconds) or 3000 (3 seconds)\n- Increase `MAX_WORKERS` to 8-10 (monitor API load)\n- Enable `SKIP_EMPTY_PROJECTS=true` (recommended)\n\n**For lower API load:**\n\n- Increase `SYNC_INTERVAL` to 30000 (30 seconds) or higher\n- Reduce `MAX_WORKERS` to 3\n- Set `PARALLEL_SYNC=false` for sequential processing\n\n**Monitor performance:**\n\n```bash\ndocker logs huly-vibe-sync 2\u003e\u00261 | grep \"Slow tool execution\"\ndocker logs huly-vibe-sync 2\u003e\u00261 | grep \"sync completed\"\n```\n\n## Documentation\n\n### 📚 Local Documentation\n\nComprehensive documentation is organized in the [`docs/`](./docs/) directory:\n\n- **[Documentation Index](./docs/README.md)** - Complete documentation overview\n- **[API Reference](./docs/api/)** - API specifications and integration guides\n- **[Architecture](./docs/architecture/)** - System design and architecture\n- **[Guides](./docs/guides/)** - Deployment, testing, and agent management\n- **[Deployment Guide](./DEPLOYMENT.md)** - Quick deployment reference\n- **[Testing Guide](./TESTING.md)** - Testing documentation\n\n### 🌐 External Documentation\n\nSee comprehensive documentation in [BookStack](https://docs.oculair.ca) under \"MCP Integration Research\" → \"Huly-Vibe Bidirectional Sync Service\"\n\n## Project Registry API\n\n### Register a project\n\n`POST /api/registry/projects`\n\nRequest body:\n\n```json\n{\n  \"filesystem_path\": \"/opt/stacks/letta-mobile-bz40.2.8\",\n  \"name\": \"Letta Mobile\",\n  \"git_url\": \"https://github.com/oculairmedia/letta-mobile-bz40.2.8.git\"\n}\n```\n\n- `filesystem_path` is required and must be an absolute path\n- `name` and `git_url` are optional\n- the path must exist and be a git repository\n\n### Update a project\n\n`PATCH /api/registry/projects/:id`\n\nRequest body:\n\n```json\n{\n  \"filesystem_path\": \"/opt/stacks/letta-mobile\",\n  \"git_url\": \"https://github.com/oculairmedia/letta-mobile.git\"\n}\n```\n\n- `filesystem_path` must be absolute when provided\n- existing fields are preserved when omitted\n- returns the updated project row\n\n## CLI usage\n\nRegister a project:\n\n```bash\nnpm run vibesync -- project-register /opt/stacks/letta-mobile-bz40.2.8 \\\n  --name \"Letta Mobile\" \\\n  --git-url \"https://github.com/oculairmedia/letta-mobile-bz40.2.8.git\"\n```\n\nUpdate project path or git URL:\n\n```bash\nnpm run vibesync -- project-update LETTAMOBILE \\\n  --filesystem-path /opt/stacks/letta-mobile \\\n  --git-url \"https://github.com/oculairmedia/letta-mobile.git\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foculairmedia%2Fhuly-vibe-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foculairmedia%2Fhuly-vibe-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foculairmedia%2Fhuly-vibe-sync/lists"}