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 store for github/gitignore

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

GitIgnore Store

A Cloudflare Worker that fetches the .gitignore templates from github/gitignore and caches them in Workers KV. I made it as the backend for gitignore-search, my Raycast extension.

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

Running it

You'll need a Cloudflare account, a KV namespace and a GitHub token.

cp wrangler.toml.example wrangler.toml
wrangler kv:namespace create "GITIGNORES"
wrangler kv:namespace create "GITIGNORES" --preview
wrangler secret put OAUTH_TOKEN
wrangler dev

Add your account ID (from wrangler whoami) and the two namespace IDs to wrangler.toml. The config and commands are for Wrangler 1, so a current Wrangler will need a rewritten config.

How it works

  • index.js is the whole worker. A request to / returns the list of .gitignore files from the GitHub API. A request to /<Name>.gitignore returns that file.
  • Responses are cached in the GITIGNORES KV namespace for an hour.

About

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

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages