A Cloudflare Worker that implements a Go package redirector for Vikunja repositories.
This worker serves as a custom import path for Go packages, allowing users to use go get code.vikunja.io/[repo]
to fetch Vikunja repositories from GitHub.
When a Go client tries to fetch a package from code.vikunja.io/[repo]
, this worker:
- Checks if the repository is one of the supported repositories
- If it is, returns an HTML page with meta tags that tell the Go client where to find the actual code
- If not, redirects to the Vikunja GitHub organization
- Install dependencies:
npm install
- Run locally:
npm run dev
- Deploy:
npm run deploy
See the LICENSE file for details.