Skip to content

Instantly share code, notes, and snippets.

@ircfspace
ircfspace / worker.js
Created September 18, 2025 08:05
Simple GitHub Raw Proxy Worker
export default {
async fetch(request) {
const url = new URL(request.url);
const path = url.pathname.replace(/^\/+/, "");
const parts = path.split("/");
if (parts.length < 4) {
return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 });
}
const [owner, repo, branch, ...filePathParts] = parts;
const filePath = filePathParts.join("/");
92.243.74.0/24
185.148.106.0/24
77.232.142.0/24
194.76.18.0/24
31.43.179.0/24
194.59.5.0/24
45.80.111.0/24
45.135.235.0/24
38.180.154.0/24
13.36.140.0/24