Horus Surgical
Patient education for cataract surgery
Horus Surgical is a patient education platform for cataract surgeons, with an AI counselor that turns a patient conversation into a structured Vision Profile. We worked on the product and scoped and carried out its migration from Supabase and Vercel to AWS: the platform now runs on AWS, with the hospital pilot live on it.
- Industry
- Health Tech / Ophthalmology
- Year
- 2026
- Countries
- United States
- Platforms
- Web
- Our role
- Full-stack development & AWS migration

The challenge
Before cataract surgery, the surgeon spends around twenty minutes with every patient explaining the lens options: monofocal, toric, multifocal and the trade-offs of each. It is the same conversation repeated all day, and the patient still has to make a decision that affects how they see for the rest of their life.
The platform had to move that conversation before the appointment without replacing the surgeon, and it had to handle health data from day one. The first version ran on Supabase and Vercel, and keeping the AI covered under a single business associate agreement became the reason to move the whole stack.
What we built
A patient follows a link, watches short education videos and asks questions to an AI counselor. From that conversation the counselor extracts a structured Vision Profile: lifestyle, priorities and lens preference. The surgeon sees the sessions of their practice, reads the transcript and the profile, and records the IOL selection. The IOL options come from the biometry report: the PDF is uploaded and a multimodal model extracts the lens options from it.
The frontend is React with Vite, TypeScript, Tailwind, Radix and TanStack Query. We scoped the move to the cloud by comparing Azure and AWS, and recommended AWS because with Amazon Bedrock the AI counselor's prompts are processed inside AWS, under the same agreement as the rest of the infrastructure. We defined the target with AWS CDK in TypeScript, one stack per concern: network, data on Aurora Serverless v2, authentication with Cognito, compute on ECS Fargate, encrypted S3 storage behind CloudFront, and certificates.
Production and development run in separate AWS regions from the same code, with a cost-controlled dev environment, and GitHub Actions deploys through OIDC roles with no long-lived keys.
Key decisions
- 01
Tenancy enforced by the database
On each request the API sets the user, role and session as transaction-local settings, and row level security policies read them. No handler needs its own filter, so a forgotten line cannot leak another practice's data.
- 02
A data migration, not a database dump
The identity migration from Supabase Auth to Cognito uses an explicit identity map, inside one atomic transaction followed by a verification step that asserts migrated counts and ownership.
- 03
Parallel run instead of a hard cutover
Supabase and Vercel stayed active during the move, and a verification script signed in with real Cognito and MFA, called the deployed API and checked row level security, keeping the cutover window short and observable.
- 04
Separate identity for staff and patients
Staff sign in with MFA and admin-created accounts; patients use passwordless email or SMS codes. An in-clinic kiosk gets a token restricted to a single session.
- 05
Provider-agnostic AI with a structured output
The counselor extracts the Vision Profile through tool calling and can call Anthropic directly or Amazon Bedrock by configuration, authenticating on Bedrock with the task's IAM role and no API keys.
Results
The platform runs on AWS: the frontend on S3 behind CloudFront, the API and the chat service on ECS Fargate, and the AI counselor on Amazon Bedrock. The chat service was the first piece moved and was verified end to end, and the pilot with a major hospital system runs on the AWS environment.
Along the way we hardened the platform: the API enforces TLS verification to Aurora, biometry PDFs live in a KMS-encrypted private bucket, and a scheduled retention job purges data past each organization's retention period using its own database role, so the purge worker cannot read a patient record.
Screens
Stack
- React
- Vite
- TypeScript
- Tailwind CSS
- Radix UI
- TanStack Query
- Deno
- AWS CDK
- Aurora PostgreSQL
- Cognito
- ECS Fargate
- CloudFront
- Amazon Bedrock (Claude)
Have a similar project?
Tell us what you are building. You talk directly with the senior developers who would build it.
Let's talk