{"id":21091581,"url":"https://github.com/uber-workflow/usync","last_synced_at":"2026-04-28T09:35:41.469Z","repository":{"id":46924992,"uuid":"202242633","full_name":"uber-workflow/usync","owner":"uber-workflow","description":"Sync subdirectories of a monorepo with external repos","archived":false,"fork":false,"pushed_at":"2023-12-15T05:54:47.000Z","size":964,"stargazers_count":0,"open_issues_count":15,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T06:26:12.411Z","etag":null,"topics":["git","monorepo","sync-files"],"latest_commit_sha":null,"homepage":"","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/uber-workflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-14T00:24:37.000Z","updated_at":"2022-01-28T23:04:29.000Z","dependencies_parsed_at":"2023-02-02T02:46:49.595Z","dependency_job_id":null,"html_url":"https://github.com/uber-workflow/usync","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/uber-workflow/usync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-workflow%2Fusync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-workflow%2Fusync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-workflow%2Fusync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-workflow%2Fusync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber-workflow","download_url":"https://codeload.github.com/uber-workflow/usync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-workflow%2Fusync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263211340,"owners_count":23431294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["git","monorepo","sync-files"],"created_at":"2024-11-19T21:47:04.023Z","updated_at":"2026-04-28T09:35:36.449Z","avatar_url":"https://github.com/uber-workflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uSync\n\n[![Build status](https://badge.buildkite.com/b261e65e2871a2025986979ef6c8ef0cccd67f7972b3371254.svg?branch=master)](https://buildkite.com/uberopensource/usync)\n[![codecov](https://codecov.io/gh/uber-workflow/usync/branch/master/graph/badge.svg)](https://codecov.io/gh/uber-workflow/usync)\n\n\u003e Sync subdirectories of a monorepo with external repos\n\n\n## Setup your monorepo\n\nConfiguration for synced repos exists as a json file in the root of your monorepo; this allows your configuration to be versioned along with your code.\n\n**.usyncrc.json**\n\n```js\n{\n  \"$schema\": \"https://raw.githubusercontent.com/uber-workflow/usync/v0.0.1/schema/.usyncrc.json\",\n  \"mapping\": {\n    // setup directory mappings per external repo\n    \"my-open-source-org/some-repo\": {\n      // sync `/projects/some-repo` with root of external repo\n      \"/projects/some-repo\": \"/\"\n    }\n  }\n}\n```\n\n\n## Setup your server\n\n### Install\n\n```sh\nyarn add usyncit\n```\n\n\n### Provide environment vars\n\n`GH_TOKEN`\n\nUsed in the remote url when cloning repos (see docs on [customizing git](DOCS.md#gitconfigureopts)). Must be from an account that has write access to repos in your org.\n\n\n### Use\n\n```js\nconst {USync} = require('usyncit');\n\n// provide parent monorepo name so it knows where to look\n// for config and where to import into\nconst usync = new USync('myorg/monorepo');\n\nyourImportWebhookHandler(async () =\u003e {\n  await usync.import(...);\n});\n\nyourLandWebhookHandler(async () =\u003e {\n  await usync.land(...);\n});\n```\n\nSee [DOCS.md](DOCS.md) for full usage info.\n\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-workflow%2Fusync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber-workflow%2Fusync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-workflow%2Fusync/lists"}