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

synthesis-widget

v0.1.2

Published

Embeddable React widget for displaying a catalog in an iframe modal with chatbot integration

Readme

Synthesis Widget

Overview

This library provides an embeddable React widget that displays a catalog in an iframe modal with chatbot integration.

System Requirements

  • [x] Node version 18 or higher is required.
  • [x] React

Getting Started

NPM

Install the package with either npm or pnpm:

npm install synthesis-widget
pnpm add synthesis-widget

Import the widget component and use it in your React application and import the corresponding CSS:

import { SynthesisWidget, Domain, Marketplace } from "synthesis-widget";
import "synthesis-widget/style.css";

function App() {
  return <SynthesisWidget />;
}

Import the widget component with specific queries:

import { SynthesisWidget, Domain, Marketplace } from "synthesis-widget";
import "synthesis-widget/style.css";

function App() {
  return (
    <SynthesisWidget
      queries={{
        domain: ["media"] as Domain[],
        marketplace: ["visionstrust"] as Marketplace[],
      }}
    />
  );
}

You can use the Domain and Marketplace types for typing your queries.

NPM Package

Visit the NPM package page for installation and usage details:

NPM Package - synthesis-widget


CDN

If you're not using a module bundler or package manager, you can also use this widget via an ESM-compatible CDN such as ESM.sh.

Add the following script at the bottom of your HTML file:

<div id="root"></div>

<script type="module">
  import React from "https://esm.sh/react";
  import * as ReactDOMClient from "https://esm.sh/react-dom/client";
  import { SynthesisWidget } from "https://esm.sh/synthesis-widget";

  const root = ReactDOMClient.createRoot(document.getElementById("root"));
  root.render(
    React.createElement(
      React.StrictMode,
      null,
      React.createElement(SynthesisWidget)
    )
  );
</script>

To include the widget’s CSS, add the following <link> tag in the <head> of your HTML:

<link
  rel="stylesheet"
  href="https://visionsofficial.github.io/synthesis-widget/css/index.css"
/>

Complete HTML Example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="styles/style.css" />
    <link
      rel="stylesheet"
      href="https://visionsofficial.github.io/synthesis-widget/css/index.css"
    />
    <title>Synthesis Widget Demo</title>
  </head>
  <body>
    <div id="root"></div>

    <script type="module">
      import React from "https://esm.sh/react";
      import * as ReactDOMClient from "https://esm.sh/react-dom/client";
      import { SynthesisWidget } from "https://esm.sh/synthesis-widget";

      const root = ReactDOMClient.createRoot(document.getElementById("root"));
      root.render(
        React.createElement(
          React.StrictMode,
          null,
          React.createElement(SynthesisWidget)
        )
      );
    </script>
  </body>
</html>