Alive is a dual-sided platform that digitizes paper medical records with on-device AI and gives patients a unified health app with smart tracking, diet analysis, and rehab guidance building a modern, connected health ecosystem for Africa.
# Alive
A web-first healthcare solution that empowers patients and increases healthcare practice accountability through intelligent paper form digitization.
## Overview
Alive is a proof-of-concept application that enables browser-based optical character recognition (OCR) for paper form digitization. The project features a React frontend with Google GenAI for client-side text extraction and a minimal Express backend, delivering a seamless experience that puts healthcare data directly in patients' hands.
## Tech Stack
### Frontend
- **React** 19.2.2 + **React DOM** 19.2.2
- **Vite** 7.2.7 (build tool)
- **TypeScript**
- **React Router DOM** 7.10.1
- **@google/genai** (client-side OCR)
- **Lucide React** (icons)
- **React Markdown**
### Backend
- **Node.js** + **Express** 4.19.2
- **CORS**, **body-parser**, **dotenv**
- **Nodemon** (development)
### Deployment
- **Vercel** (frontend hosting)
## Repository Structure
```
/ # Root frontend (Vite + React + TypeScript)
├── App.tsx
├── index.tsx
├── index.html
├── vite.config.ts
├── tsconfig.json
├── types.ts
├── package.json
├── components/
├── contexts/
└── services/
/Alive-3--main # Legacy frontend snapshot
/backend # Express backend
├── server.js
└── package.json
```
## Getting Started
### Prerequisites
- Node.js (v16+ recommended)
- npm or yarn
### Frontend Setup
```bash
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
```
### Backend Setup
```bash
# Navigate to backend directory
cd backend
# Install dependencies
npm install
# Create .env file with required variables
cat > .env B[Short Term]
A --> C[Medium Term]
A --> D[Long Term]
B --> B1[Persistent Storage PostgreSQL/MongoDB]
B --> B2[Object Storage S3 Integration]
B --> B3[Enhanced Form Templates]
C --> C1[Production Auth JWT/OAuth2]
C --> C2[Complete RBAC Implementation]
C --> C3[Au …