# Overview

## StickyHealth SDK and API documentation

These pages explain how to add StickyHealth coaching and tracking to your own React Native app.

### Building blocks

1. **React Native SDK** (`@miri-ai/miri-react-native`): ready-made screens and components that talk to the StickyHealth API directly from the app.
1. **Server-side integration**: the pieces that run on your servers rather than in the app. Today that is custom sign-in (your server validates your own tokens) and webhooks (we send notifications to your server).

The SDK and custom sign-in identify your app with the API key we issue to your organization. Webhooks are signed with a separate secret.

React Native is the only supported client today.

### Contents

#### Start here

- **What the SDK gives you**: features and architecture
- **Setup & installation**: getting an API key, installing the package and its peer dependencies, permissions
- **Basic usage**: wrapping your app in `MiriAppProvider`, signing users in, and reading SDK state with `useMiriApp`

#### UI components

- **Chat & coach UI**: the conversational screens (onboarding, meal logging, recipes, cravings, restaurants, check-ins)
- **Goals & tracking**: meal list and detail, daily progress, streaks, and the log and "Figure it out" pickers
- **Measurements**: weight progress
- **Settings**: the member's goals, profile and preferences

#### Server-side

- **Webhooks**: how we deliver notifications to your server, signing and retries
- **Authorization requests**: letting a signed-in user view other members' data
- **Custom token validation**: the endpoint you host when you use your own sign-in
