mirror your GitHub repos to tangled.org automatically
1

Configure Feed

Select the types of activity you want to include in your feed.

5 1 0

Clone this repository

https://tangled.org/danielroe.dev/synchub.to https://tangled.org/did:plc:g4lh56ouiwlcyhukzkjvy75g
git@tangled.org:danielroe.dev/synchub.to git@tangled.org:did:plc:g4lh56ouiwlcyhukzkjvy75g

For self-hosted knots, clone URLs may differ based on your setup.



README.md

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:

  1. A GitHub App with a webhook pointed at your local tunnel and contents:read, metadata:read permissions plus the push, create, delete, repository events.
  2. A Neon Postgres database.
  3. 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.