Melos-managed Dart monorepo for Google Vision API. Symlinked source material at google_vision_workspace/ (points to ../google_vision_workspace).
.
├── google_vision_workspace/ → ../google_vision_workspace (source reference)
├── packages/
│ ├── google_vision/ — Core REST client library
│ ├── google_vision_cli/ — CLI tool (extracted from source)
│ └── google_vision_flutter/ — Flutter widget
├── pubspec.yaml — Root workspace + Melos config
└── AGENTS.md
| Action | Command |
|---|---|
| Get deps | melos run dep |
| Analyze | melos run analyze |
| Format | melos run format |
| Build (codegen) | melos run build |
| Run CLI | dart run vision (from any package dir) or dart run google_vision_cli:vision |
- Entrypoint:
GoogleVisionsingleton (lib/src/google_vision_base.dart) - Auth:
withApiKey(key),withJwt(credentialsJson), orwithGenerator(generator) - API via Retrofit:
ImagesClient(POST /v1/images:annotate),FilesClient(POST /v1/files:annotate),OAuthClient(POST /o/oauth2/token) - Image methods:
googleVision.image.labelDetection(...),faceDetection,textDetection, etc. - File methods:
googleVision.file.labelDetection(...)(usesInputConfiginstead ofJsonImage) - HTTP via
diowith optionalLoggyDioInterceptor - Codegen:
build_runner+json_serializable(models) +retrofit_generator(API clients). Generated.g.dartfiles excluded from analysis. - No tests exist in any package.
- Analysis:
package:lints, excludeslib/**.g.dart - Release:
grinder+publish_toolsviatool/grind.dart
- Entrypoint:
bin/vision.dart(registered asexecutables: vision: vision) - 7 commands: crop_hint, detect, highlight, safe_search, score, version, (helper base class)
- Depends on
google_vision(core) via path dependency - Key deps:
args,dio,image,loggy
- Depends on
google_visionvia path dependency withAsset()loads JWT from Flutter asset bundleflutter_image_converterfor image conversion- Re-exports
package:google_visionminusColor | GoogleVision | JsonImage | InputConfig
retrofit+retrofit_generator— API client interfacesjson_annotation+json_serializable— model serializationdio— HTTP clientjose_plus+crypto_keys_plus— JWT/Google authgrinder+publish_tools— release automationflutter_loggy_dio+loggy— logging