Gitignore Generator
Generate a .gitignore for your languages, frameworks and editors, from TypeScript, Python, Go and Rust to Next.js, Django, VS Code and IntelliJ.
Pay by wallet (x402)
gitignore-generate Example
Example answer
{
"sources": [
"common",
"typescript",
"javascript",
"react"
],
"gitignore": "# Environment & OS\n.env\n.env.local\n.env.*.local\n.DS_Store\nThumbs.db\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n.cache/\ncoverage/\n*.pem\n\n# typescript\n*.js\n*.d.ts\n*.js.map\ndist/\nbuild/\nnode_modules/\n*.tsbuildinfo\n\n# javascript\nnode_modules/\ndist/\nbuild/\n*.min.js\n*.min.css\n\n# react\n.next/\nout/\n.cache/\n",
"total_rules": 23,
"unrecognized": [
"node"
]
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
ides | array | No | — |
languages | array | No | — |
frameworks | array | No | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
sources | array | Always (present in every successful answer) |
gitignore | string | Always (present in every successful answer) |
total_rules | integer | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "gitignore-generate",
"inputs": {
"languages": [
"typescript",
"javascript"
],
"frameworks": [
"react",
"node"
]
},
"max_price_cents": 3
}' {
"tool": "strale_execute",
"arguments": {
"slug": "gitignore-generate",
"inputs": {
"languages": [
"typescript",
"javascript"
],
"frameworks": [
"react",
"node"
]
},
"max_price_cents": 3
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "gitignore-generate",
inputs: {
"languages": [
"typescript",
"javascript"
],
"frameworks": [
"react",
"node"
]
},
max_price_cents: 3,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="gitignore-generate",
inputs={
"languages": [
"typescript",
"javascript",
],
"frameworks": [
"react",
"node",
],
},
max_price_cents=3,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i -X POST https://api.strale.io/x402/v2/gitignore-generate \
-H 'Content-Type: application/json' \
-d '{
"languages": [
"typescript",
"javascript"
],
"frameworks": [
"react",
"node"
]
}' Limitations
Project-specific build files may need extra patterns
Generates patterns for common tools and frameworks — project-specific build artefacts or custom tooling may need manual additions
What to do instead: Review the generated .gitignore against your actual build output directory and add project-specific patterns
Related tools
- Agent Trace Analysis €0.20
- API Docs Generator €0.20
- API Mock Responses €0.05
- Changelog Generator €0.03
- Code Converter €0.05
- Commit Message Generator €0.05