No description
  • TypeScript 94.5%
  • HTML 5.5%
Find a file
Jakob Wallner b00a4dd571
All checks were successful
/ deploy-worker (push) Successful in 38s
Created a good README.md
2026-05-20 12:16:45 +02:00
.forgejo/workflows Forgejo actions workflow :yay: 2026-05-20 09:23:11 +02:00
.vscode Basic setup 2025-06-20 23:27:03 +02:00
public Basic setup 2025-06-20 23:27:03 +02:00
src formatting 2026-05-20 10:15:47 +02:00
test Basic setup 2025-06-20 23:27:03 +02:00
.editorconfig Basic setup 2025-06-20 23:27:03 +02:00
.gitignore Cleanup 2026-05-20 08:59:38 +02:00
.prettierrc Basic setup 2025-06-20 23:27:03 +02:00
LICENSE Update LICENSE 2026-05-20 08:57:45 +02:00
package.json Cleanup 2026-05-20 08:59:38 +02:00
README.md Created a good README.md 2026-05-20 12:16:45 +02:00
tsconfig.json Basic setup 2025-06-20 23:27:03 +02:00
vitest.config.mts Basic setup 2025-06-20 23:27:03 +02:00
wrangler.jsonc Optimize imports (11 high severity vulnerabilities :ah:) 2026-05-20 08:45:20 +02:00

CDNWorker

About

This is the source code of the Cloudflare worker that powers the PolyModLoader CDN

Platforms

Currently, 3 platforms are supported:

  • Codeberg
  • GitHub
  • PolyModLoader

URL Structure

The URL structure for Codeberg and GitHub follows this pattern:
https://cdn.polymodloader.com/<gh|cb>/<user>/<repo>/<branch>/[path]
gh is for GitHub
cb is for Codeberg
user is the user/org the repository belongs to
repo is the name of the repository
branch is the branch of the repository
path is an optional field to point to a subfolder or file within the repo

The PolyModLoader platform

PolyModLoader is a special platform. It points to the polytrackmods org on our self-hosted Forgejo instance (git.polymodloader.com)
The URL structure for pml is:
https://cdn.polymodloader.com/pml/<repo>/<branch>/[path]
repo is the name of the repository
branch is the branch of the repository
path is an optional field to point to a subfolder or file within the repo