Working in React
The React runtime lets you bring your own frontend to Health Universe. Instead of using a generated Streamlit or Navigator UI, you build a fully custom single-page application (or server-rendered app) in React, Next.js, or any Node-based framework, and deploy it on Health Universe alongside everything else.
To talk to the platform, your app uses the @health-universe/react SDK — a typed set of React Query hooks and a ready-wired API client for the clinical surface of the Health Universe API: routines, documents, patients, sources/bundles, chat threads, and clinical tools/connectors. You write your UI; the SDK handles auth and data fetching.
This is the preferred path for building real, production clinical products where you need full control over the user experience.
What the SDK is for
@health-universe/react gives clinical customers typed React Query hooks and a ready-wired client for the Health Universe API, so you can build your own UI instead of using the platform's. When your app runs on Health Universe, it works with the signed-in user's Health Universe account automatically — the SDK handles authentication for you, so there are no separate logins or tokens to manage.
The client is deliberately scoped — only the clinical domains below are generated. The rest of the platform API (admin, deployments, billing, internal tooling) does not exist in this package and cannot be called through it.
Routines
Routines, routine runs, triggers, connector bindings
Documents
Search (structured / semantic / text), status, chunks, export, bundles
Clinical data
Patients, providers, rosters, appointments
Sources
Document bundles + detail (input docs, patient, runs)
Chat
Navigator threads (where context documents live)
Tools & connectors
Clinical tools, connectors
Supported frameworks
All three are supported and auto-detected at deploy time from your package.json:
React (e.g. Vite) — built as a static SPA. Health Universe runs your build step and serves the static assets.
Next.js — runs as a Node server via
npm start.Node — any other Node-based server app that exposes a
startscript, also run vianpm start.
When to use React
Use the React runtime when you want a standalone app with a full custom UI — a product, not a single calculator or a Navigator tool. You get the complete clinical data surface through typed hooks, client-side routing, your own design system, and the ability to compose routines, documents, and patient data into purpose-built workflows.
If you only need a quick Python tool or prototype, Streamlit is faster to stand up; if you need a deterministic Python calculator that surfaces inside Navigator, use FastAPI; if you're building a reusable clinical agent or workflow, use A2A. See Streamlit vs FastAPI vs A2A vs React for the full comparison.
Next steps
Your First Health Universe App — install the SDK, wire up the provider, and render a patient list.
Typical Project Setup — repo layout, build & run, and how the runtime is auto-detected.
SDK Reference — the hooks by domain, plus the
useApiQuery/useApiMutationescape hatch.
🔗 Resources
@health-universe/reacton npm:npm install @health-universe/react @tanstack/react-query reactreact-starter— a complete example app (provider wiring, dev proxy, a tabbed app with a run-review reader).
Last updated
Was this helpful?