Grep package source
Usage
Grep package source
Regex search over public package source code (npm, PyPI, crates.io, Go modules).
POST
Grep package source
Documentation Index
Fetch the complete documentation index at: https://docs.trynia.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key must be provided in the Authorization header
Body
application/json
Request model for package grep search
Registry: crates_io, golang_proxy, npm, py_pi, or ruby_gems
Package name
Regex pattern to search
Package version
Language filter
File SHA256 filter
Lines after match
Lines before match
Lines before and after match
Limit results
Output mode: content, files_with_matches, or count
Response
Successful Response

