TypeScript Example App
A Vite web app that implements the same workflow as the iOS example in the browser. It uses the @modelhealth/modelhealth npm package and runs a local dev server.
Source: examples/ts
Requirements
- Node.js 16.0+
- A modern browser with WebAssembly support (Chrome, Edge, Firefox, or Safari)
- An API key — request access if you don't have one
Configuration
Copy the environment template and add your API key:
cd examples/ts
cp .env.local.template .env.local
Open .env.local and replace the placeholder:
VITE_API_KEY=your_api_key_here
Launch
Install dependencies and start the dev server:
make install
make dev
The app opens at http://localhost:5173. The dev server is also accessible on your local network at your machine's IP address — useful for testing the full workflow from a mobile device running the Model Health Companion app.