Skip to content
HALOWERK

Codewerk

gitignore generate

Combines templates from github/gitignore (CC0-1.0, commit 6bb5af7a of 2026-10-30, 312 templates including Global/ and community/) by name (case-insensitive, common aliases such as vscode, macos, nodejs) and/or by detection from marker files (package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, *.csproj, .idea/ and more). Every section names its template file; repeated patterns are removed after their first occurrence; extra patterns go into a custom section. Unknown names fail with.

POST https://code.halowerk.com/v1/gitignore-generate

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
templatesarrayNoTemplate names such as Node, Python, Global/macOS, community/Python/JupyterNotebooks or aliases (vscode, macos).
detect_from_filesarrayNoRepository paths used to detect templates (e.g. git ls-files output).
extra_patternsarrayNoAdditional patterns appended in a custom section.
dedupebooleanNoRemove patterns that already appeared in an earlier section.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "templates": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80
      },
      "description": "Template names such as Node, Python, Global/macOS, community/Python/JupyterNotebooks or aliases (vscode, macos)."
    },
    "detect_from_files": {
      "type": "array",
      "maxItems": 5000,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 500
      },
      "description": "Repository paths used to detect templates (e.g. git ls-files output)."
    },
    "extra_patterns": {
      "type": "array",
      "maxItems": 200,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 300,
        "pattern": "^[^\\r\\n]+$"
      },
      "description": "Additional patterns appended in a custom section."
    },
    "dedupe": {
      "type": "boolean",
      "default": true,
      "description": "Remove patterns that already appeared in an earlier section."
    }
  }
}

Open original schema

Published input example

{
  "templates": [
    "Node",
    "macos"
  ],
  "extra_patterns": [
    ".env.local"
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’