synchub.to#
mirror your GitHub repos to tangled.org, automatically.
Features#
- a GitHub App
- OAuth connection to tangled
- per-push sync of branches and tags
IMPORTANT
Only public repositories are synced (tangled does not yet support private repositories).
Try it out locally#
You will need:
- A GitHub App with a webhook pointed at your local tunnel and
contents:read,metadata:readpermissions plus thepush,create,delete,repositoryevents. - A Neon Postgres database.
- An AT Protocol confidential OAuth client (see
.well-known/atproto-client-metadata.json).
Set your environment variables in a .env file:
NUXT_GITHUB_APP_ID=<github app id>
NUXT_GITHUB_APP_PRIVATE_KEY=<github app private key, pem>
NUXT_GITHUB_WEBHOOK_SECRET=<github app webhook secret>
NUXT_DATABASE_URL=<neon postgres connection string>
NUXT_ENCRYPTION_KEY=<32-byte base64 key for sealing ssh private keys>
NUXT_CRON_SECRET=<shared secret for the worker cron route>
Setup#
# install dependencies
corepack enable
pnpm install
# serve in dev mode, with hot reload at localhost:3000
pnpm dev
# build for production
pnpm build
# preview in production mode
pnpm preview
License#
Made with 鉂わ笍
Published under MIT License.