npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@symbionix/curaport

v0.2.0

Published

Embeddable React components and design system for the Symbionix Patient Portal (FHIR R4).

Downloads

445

Readme

@symbionix/curaport

Embeddable React components and a design system for FHIR-aware healthcare apps. Powers the Symbionix Patient Portal and is published for any third-party EMR or portal to embed.

Install

pnpm add @symbionix/curaport @tanstack/react-query react react-dom
# or
npm install @symbionix/curaport @tanstack/react-query react react-dom

Then bring the stylesheet in once at your app root:

import "@symbionix/curaport/styles.css";

Quick start

import {
  PortalProvider,
  PortalClient,
  PatientPortal,
} from "@symbionix/curaport";
import "@symbionix/curaport/styles.css";

const client = new PortalClient({
  apiUrl: process.env.NEXT_PUBLIC_PORTAL_API!,
  getAccessToken: async () =>
    fetch("/api/portal-token").then((r) => r.text()),
});

export default function App() {
  return (
    <PortalProvider client={client}>
      <PatientPortal
        resourceId="123"
        fhirServerUrl="https://hapi.example.com/fhir"
      />
    </PortalProvider>
  );
}

Subpath exports

The package ships several entry points so consumers only pull in what they need:

| Import | Contents | |---|---| | @symbionix/curaport | Top-level: PatientPortal, PatientSummary, PatientTimeline, PortalProvider, PortalClient, and every clinical section (AllergiesList, ProblemList, MedicationsList, VitalSigns, VitalSignsChart, ProcedureHistory, ImmunizationHistory, EncounterList, DiagnosticReportsList, CareTeam, PatientProfile, LabResults, LabResultGraph, HealthDashboard, NotificationsPanel, MessagingInbox, AppointmentList, ResourceDetailModal, StatsCards, PatientSelector) plus FHIR type aliases and helpers. | | @symbionix/curaport/ui | Design-system primitives: Button, Card, Badge, Input, Label, Dialog, Select, Tabs, Tooltip, Skeleton, Avatar, Separator, Table, EmptyState, ThemeProvider, cn. | | @symbionix/curaport/app-shell | Layout primitives: AppShell, Sidebar, Topbar, Breadcrumb, PageHeader. | | @symbionix/curaport/dashboard | Dashboard widgets: StatCard, ActivityFeed, QuickActions, AppointmentCard, RosterTable, MetricRing, ChartCard. | | @symbionix/curaport/fixtures | Canonical FHIR sample data for demos, stories, and tests. | | @symbionix/curaport/tailwind-preset | Tailwind config preset — extend your tailwind.config to share tokens. | | @symbionix/curaport/styles.css | Compiled stylesheet for non-Tailwind consumers. |

Theming

All colours, spacing, and radii are driven by CSS variables prefixed --pp-*. Override any of them on a root element to rebrand without rebuilding:

:root {
  --pp-primary: 200 80% 45%;          /* HSL triplet, no hsl() wrapper */
  --pp-radius: 0.5rem;
}

The library ships a clinical-teal default with semantic colours for success / warning / destructive / info, plus a dark mode (toggle by setting data-theme="dark" on a root element, or via the ThemeProvider component).

Tailwind apps

If your app already uses Tailwind, extend the preset to share tokens automatically:

// tailwind.config.ts
import preset from "@symbionix/curaport/tailwind-preset";

export default {
  presets: [preset],
  content: [
    "./src/**/*.{ts,tsx}",
    "./node_modules/@symbionix/curaport/dist/**/*.{js,cjs}",
  ],
};

The library's compiled stylesheet is still required for the base layer + CSS variables — import it once at app root.

What ships

  • 22+ clinical components covering allergies, problems, medications, vitals (with trend chart), procedures, immunizations, encounters, diagnostic reports, care team, profile, and unified timeline + summary + top-level portal.
  • Patient experience widgets: appointments, lab results browser + trend graph, notifications feed, messaging inbox, health dashboard composite.
  • Design system: 15 primitives wrapping Radix UI + a CSS-variable-driven theme.
  • App shell: sidebar nav, topbar, breadcrumb, page header — a complete chrome for any role-based app.
  • Dashboard widgets: stat cards, activity feed, chart card, metric ring, roster table, appointment card.

All exports are TypeScript-first with declaration files, support tree-shaking, and ship sourcemaps.

Peer dependencies

| Peer | Required | |---|---| | react | ≥ 18 | | react-dom | ≥ 18 | | @tanstack/react-query | ≥ 5 |

Internally we use Radix UI primitives, Framer Motion, Recharts, lucide-react, sonner, class-variance-authority, clsx, tailwind-merge, and date-fns — these are bundled deps, not peers.

SSR

Every component is SSR-safe (no window access at module load). Server components can render top-level views, though interactive components (filters, dialogs) are marked "use client".

Versioning

Semver. The package is currently in 1.0.0-alpha.* — breaking changes possible between alphas. Will graduate to 1.0.0 once the demo EMR has consumed the published artifact end-to-end.

License

UNLICENSED — internal Symbionix package. Contact the Symbionix team for licensing terms before redistribution.

Contributing / development

The library lives in the patient-portal-revamp monorepo. To work on it locally:

git clone https://github.com/symbionix/patient-portal-revamp.git
cd patient-portal-revamp/components
pnpm install
pnpm storybook       # http://localhost:6006
pnpm test
pnpm build           # ESM + CJS + .d.ts + styles.css

See CHANGELOG.md for the release history.