English | 简体中文
A self-hostable gitignore.io alternative. Deployed on Cloudflare Pages.
Built with Vite + React + TypeScript. /api endpoints are handled by Cloudflare Pages
Functions -- supporting multi-template concatenation. Template data is generated at build
time from the github/gitignore submodule.
git submodule update --init --recursive
bun install
bun run devProduction build:
bun run buildGET /api/list → comma-separated template names
GET /api/Go → single template
GET /api/Go,Node,Global/macOS → concatenated
Git alias:
[alias]
ignore = "!gi() { curl -sL https://<your-domain>/api/$@ ;}; gi"git ignore Go,Node,macOS > .gitignorePush to master triggers auto-deploy via GitHub Actions to Cloudflare Pages.
Prerequisites:
- Create a Pages project named
gitignorein the Cloudflare Dashboard. - Create an API token: My Profile → API Tokens → use the Cloudflare Pages Edit template.
- Get your Account ID from the Workers & Pages sidebar.
- Add these secrets to your GitHub repo (under Environment
cloudflare-pages):CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDGITIGNORE_BOT_PAT-- a fine-grained PAT withcontents: write(used by the scheduled submodule updater)
Optional:
- Enable Dependabot security updates in repo Settings → Code security.
- Enable Allow auto-merge in repo Settings → General → Pull Requests.
dependabot-auto-merge.ymlwill approve and auto-merge Dependabot PRs once CI passes.
Template updates are fully automated. A scheduled GitHub Actions workflow
(update-submodule.yml) runs weekly, checks github/gitignore for new commits,
and pushes the updated submodule reference if changes are found. The push triggers
deploy.yml, which rebuilds and redeploys the site.
To trigger an update manually, run the Update Submodule workflow from the Actions tab.
- All 312 templates are included: Core, Global, and Community.