HPH Vision is organized as a TypeScript monorepo using pnpm workspaces and Turborepo. The repository contains a React Native mobile application, a shared React Native library, TypeScript core/mobile packages, a FastAPI service, and a shared Python backend library.
packages/
├── mobile/ React Native application (@hiperhealth/hphvision)
├── mobile-lib/ Shared React Native library (@hiperhealth/hphvision-lib)
├── hphvision-core/ Shared TypeScript core package (@hiperhealth/hphvision-core)
├── hphvision-mobile/ TypeScript mobile package (@hiperhealth/hphvision-mobile)
├── restapi/ FastAPI application
└── api-core/ Shared Python backend library
This repository uses:
- pnpm Workspaces
- Turborepo
- TypeScript Project References
- Poetry (Python dependency management)
Install JavaScript dependencies from the repository root:
pnpm installBuild all workspace packages:
pnpm buildRun all tests:
pnpm testRun lint:
pnpm lintRun TypeScript type checking:
pnpm typecheckRun all checks:
pnpm checkRun the development server:
pnpm mobile:devRun mobile lint:
pnpm mobile:lintAndroid Studio project:
packages/mobile/android
Do not open the repository root as the Android project.
If Android Studio requests the SDK location, create the untracked file:
packages/mobile/android/local.properties
Example:
sdk.dir=/home/<user>/Android/SdkInstall Python dependencies:
poetry installRun the API:
pnpm api:devEquivalent command:
poetry run uvicorn hph_vision_api.main:app --app-dir packages/restapi/src --reloadHealth endpoint:
GET /health
Lint:
pnpm api:lintFormat:
pnpm api:formatTests:
pnpm api:testShared TypeScript package used across workspace packages.
Location:
packages/hphvision-core
TypeScript mobile package that depends on @hiperhealth/hphvision-core.
Location:
packages/hphvision-mobile
React Native application.
Location:
packages/mobile
Shared React Native library.
Location:
packages/mobile-lib
Install dependencies:
pnpm installRun all quality checks:
pnpm checkBuild all packages:
pnpm buildJavaScript
- pnpm
Python
- Poetry
The repository CI validates:
- Build
- Lint
- Tests
- Type checking
using pnpm workspaces, Turborepo, Poetry, and Makim.
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.