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

@heudia/referral-action-center

v0.1.0

Published

Referral Management Action Center (RMAC) — focused MFA package for the AMC Insights referral table view with i18n (English + Spanish) and the broader auth role taxonomy.

Readme

@heudia/referral-action-center

Referral Management Action Center (RMAC) — a focused MFA package for AMC Insights' referral table view. Handles received + issued referrals with State / Status filters, search, lock revocation, i18n (English + Spanish), and the broader auth role taxonomy used in Insights.

Distinct from @heudia/referral-management, which combines dashboards and analytics. This package leverages widgets and services from there but ships as a stand-alone bundle so Insights can integrate just the RMAC surface.

Scope

Single primary element: <heudia-rmac>. Mounted by the Insights host inside Care Plan; takes service injection for auth, referrals, and locks.

| Feature | Source | | --- | --- | | Welcome banner | content/{en,es}.json#rmac.welcome | | Search + Revoke toolbar | <heudia-rmac> top section | | Received view with State filter (Received | Active | Completed | Closed | Expired | All) | <heudia-rmac> | | Issued view → Referral History | <heudia-rmac> (tab) | | Table columns: Action, Print, Doc REF ID, State, Status, Date Received, Q-Days, Client Name, Email, Phone, Zipcode, Referral POC, Referred From, Progress R/Y/G | <heudia-rmac> |

State / Status model

The RMAC vocabulary differs from the underlying ReferralStatus (which is granular). models/state.ts exposes the mapping:

| ReferralStatus | RmacState | RmacStatus (within Active) | | --- | --- | --- | | initial | Received | – | | review | Active | Review | | contact | pending-client | pending-org | scheduled | Active | Contact | | closed-with-contact | Completed | Complete | | closed-without-contact | Closed | Close | | expired | Expired | – |

Progress thresholds (default)

models/progress.ts#DEFAULT_PROGRESS_THRESHOLDS:

| Q-Days | Progress | | --- | --- | | ≤ 3 | green | | 4 – 7 | yellow | | > 7 | red |

Override per-mount via an attribute / property on the host element.

Auth roles

Broader than @heudia/referral-management's network-admin \| org-admin \| org-user:

AMC_SUPER_ADMIN
ORG_ADMIN
ORG_REF_ADMIN
ORG_CARE_PROFESSIONAL
COMMUNITY_USER
GUEST_USER
INVITATION_USER → COMMUNITY_USER | REFERRED_USER | CAMPAIGN_USER

IRmacAuthService provides the role-rich claim shape, plus invitation flows.

i18n

i18next + JSON resource files at content/en.json and content/es.json. Auto-detects device locale via i18next-browser-languagedetector; defaults to English when the detected locale isn't Spanish.

import { initI18n } from '@heudia/referral-action-center/i18n';

await initI18n();  // call once at host-app startup

Components subscribe via the I18nController Lit reactive controller and re-render automatically on language change.

Reference

  • docs/referral/management/insights-referral-integration.md — primary spec for the RMAC + Insights integration
  • docs/referral/management/manage-referrals.md — table/column reference
  • docs/referral/referral-management-adjustments.md — auth role taxonomy + stand-alone package notes