Find Real-World Code Examples
gt_examplesSearch GitHub for real-world code examples of any library or pattern. Get code snippets from popular open-source projects with repository attribution.
Instructions
Search GitHub for real-world usage examples of any library or pattern. Returns code snippets from popular open-source projects with repository attribution.
Requires GT_GITHUB_TOKEN env var for higher rate limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | Yes | Library or package name to find examples for, e.g. 'drizzle-orm', 'tanstack/query', 'fastapi' | |
| pattern | No | Specific usage pattern to search for, e.g. 'middleware', 'useMutation', 'auth guard' | |
| language | No | Programming language filter: 'typescript', 'python', 'rust', 'go' | |
| maxResults | No | Number of code examples to return (default: 5, max: 10) |