Skip to content

Dependency Auto-Detection

Scan your project's dependency files and auto-pin matching docs.

Usage

sh
# Show detected dependencies with matching docs
chub detect

# Auto-pin all detected docs
chub detect --pin

Supported files

FileLanguage
package.jsonJavaScript/TypeScript
Cargo.tomlRust
requirements.txtPython
pyproject.tomlPython
PipfilePython
go.modGo
GemfileRuby
pom.xmlJava (Maven)
build.gradle / build.gradle.ktsJava/Kotlin (Gradle)

Example output

Detected 6 dependencies with available docs:

  openai (python)     → openai/chat [pinnable]
  stripe (python)     → stripe/api [pinnable]
  fastapi (python)    → fastapi/app [pinnable]
  ✗ custom-lib        → no match

Pin all? chub detect --pin