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

@sonata-innovations/messaging-shared

v1.0.1

Published

Cross-consumer utilities for sonata-messaging surfaces. Sparse deep-merge resolver + supporting types. Fiber-agnostic.

Readme

@sonata-innovations/messaging-shared

Shared, framework-agnostic utilities for the Sonata messaging group. The home for small helpers that more than one messaging surface must run identically — so behaviour can't drift between, say, the portal's authoring preview and the customer SDK's render.

This package deliberately holds only group-shared, domain-neutral utilities. It is not a Fiber package (that's @sonata-innovations/fiber-shared, scoped to the Fiber form schema). Anything Fiber-specific belongs there, not here.

Exports

resolveEmbedded(base, overrides)

Sparse deep-merge of an embedded-overrides object over a base. Built for BRIEF-2026-06-24-002 Phase 3 (Option C): an experience is authored once, plus an optional sparse experience.embedded override block; the resolved experience is resolveEmbedded(base, embedded).

The whole reason this lives in a shared package: the authoring preview (admin-portal-frontend) and the render path (sonata-messaging-websdk) MUST apply the exact same merge, or what an author previews won't match what a customer sees. One impl, two consumers, no drift.

Behaviour:

  • empty/absent overrides → returns base unchanged (zero-copy fast path)
  • override scalar leaf → replaces base leaf
  • override null → explicitly clears the base value to null
  • override nested object → recurses
  • override array → replaces atomically (not element-wise)
  • override missing key → base value passes through

Validation (AJV at persistence), type coercion (TS at compile), and migration are explicitly out of scope.

Consumers

  • sonata-messaging-admin-portal-frontend — authoring preview (EmbeddedOverridesPanel)
  • sonata-messaging-websdk — render path (fbre-app/main.tsx), pending adoption

Provenance / status

Source extracted verbatim from the PM-verified handoff for 24-002 (impl + DeepPartialNullable + 20-assertion contract test). PM (cross-project-messaging) pre-staged this skeleton so publishing is a single step once npm publish access to the @sonata-innovations org is granted.

Open decisions for the owner (Oliver):

  • npm publish access / org membership or automation token
  • where the canonical repo + release CI live
  • publishConfig.access: defaults to public here to match fiber-shared; flip to restricted if the group wants this internal-only (org plan permitting)

Publish (CI-on-tag, matching org norm)

prepublishOnly builds + tests before any publish. Intended flow: tag v1.0.0 → CI runs npm ci && npm run build && npm test && npm publish. See .github/workflows/publish.yml (sketch).