Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
superhighfivesPublic archive

About

A Cloudflare-Workers-powered fetch and cache for github/gitignore

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

gitignore-fetch

A Cloudflare Worker that fetches and caches the templates from github/gitignore.

Status: archived. Made in 2021, not maintained, and no longer deployed.

Running it

It uses the old wrangler.toml format (type = "javascript"), so it needs Wrangler 1 or some updating for current Wrangler.

cp wrangler.toml.example wrangler.toml   # add your account ID from `wrangler whoami`
wrangler secret put OAUTH_TOKEN          # a GitHub token, to avoid API rate limits
wrangler dev

How it works

  • index.js is the whole worker.
  • / returns the list of .gitignore files in the repo, as JSON from the GitHub API.
  • /Node.gitignore, or any other template name, returns that file from raw.githubusercontent.com.
  • Responses are cached at Cloudflare's edge for a day.

About

A Cloudflare-Workers-powered fetch and cache for github/gitignore

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages