{"id":13608351,"url":"https://github.com/tmitchel/workspace-sync","last_synced_at":"2026-02-19T12:09:08.847Z","repository":{"id":64302143,"uuid":"265058510","full_name":"tmitchel/workspace-sync","owner":"tmitchel","description":"Make sure your remote stays up to date with changes to local code","archived":false,"fork":false,"pushed_at":"2020-06-26T19:50:04.000Z","size":44,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T14:39:55.319Z","etag":null,"topics":["go","golang","pion","webrtc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tmitchel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-18T20:49:25.000Z","updated_at":"2024-05-06T14:10:50.000Z","dependencies_parsed_at":"2023-01-15T09:45:26.074Z","dependency_job_id":null,"html_url":"https://github.com/tmitchel/workspace-sync","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tmitchel/workspace-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmitchel%2Fworkspace-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmitchel%2Fworkspace-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmitchel%2Fworkspace-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmitchel%2Fworkspace-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmitchel","download_url":"https://codeload.github.com/tmitchel/workspace-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmitchel%2Fworkspace-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","golang","pion","webrtc"],"created_at":"2024-08-01T19:01:26.575Z","updated_at":"2026-02-19T12:09:08.832Z","avatar_url":"https://github.com/tmitchel.png","language":"Go","funding_links":[],"categories":["DataChannel"],"sub_categories":[],"readme":"# Workspace Sync\n\n__NOTE:__ I wrote this package for my own needs, so it may not generalize well. Feel free to create issues and PRs, but I may be slow to get to them.\n\nWorkplace sync is a tool that allows you to write code in one place and automatically keep a remote copy of the code in sync. [fsnotify](https://github.com/fsnotify/fsnotify) is used to watch the local copy and [Pion](https://github.com/pion/webrtc) Data Channels are used to send a copy of the updated file to the remote when a change is detected.\n\n## Setup\n\nDownload the appropriate binary to your local machine and the remote. If one is not provided, compile using\n```go\nGOOS=\u003cos\u003e GOARCH=\u003carchitecture\u003e go build -o sync cmd/workspace-sync/main.go\n```\n\n## Usage - Remote\n\nThe remote end must be started first because it runs an HTTP server for the local end to send requests. The remote end is configured using the `config.json` file which must be located at the root of the directory where you want updates to be sent. An example json config is shown below:\n\n```json\n{\n    \"port\": \":50000\",\n    \"iceURL\": \"stun:stun.l.google.com:19302\"\n}\n```\n\nStart the remote end first:\n```\n./linux-workspace-sync --endpoint remote  // if remote end is linux\n```\n\nNOTE: the connection is established via HTTP over localhost. If remote is a server which you SSH into, make sure to forward the port from `config.json`.\n\n## Usage - Local\n\nThe local end is configured using a similar `config.json` containing a few extra fields. An example is shown below:\n```json\n{\n    \"directories\": \"./\",\n    \"ignore\": [\".git\"],\n    \"port\": \":50000\",\n    \"iceURL\": \"stun:stun.l.google.com:19302\",\n}\n```\n\nThis this config will recursively watch the current directory and all subdirectories, excluding any paths containing `.git`. Start the local end with:\n```\n./macos-workspace-sync --endpoint local  // if local end is mac\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmitchel%2Fworkspace-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmitchel%2Fworkspace-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmitchel%2Fworkspace-sync/lists"}