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

@lynx-js/react-umd-canary

v0.117.1-canary-20260326-a32bc28f

Published

UMD build for ReactLynx

Readme

@lynx-js/react-umd

This package provides a standalone, Universal Module Definition (UMD) build of the ReactLynx runtime. It is designed to be used as an external bundle, allowing multiple Lynx components or applications to load a single React runtime instance over the network, which improves load time, caches efficiency, and reduces memory usage.

Purpose

When building Lynx applications, the ReactLynx runtime is typically bundled directly into the application instance. However, for advanced use cases like micro-frontends or dynamically loading remote components, it's highly beneficial to expose ReactLynx as an external dependency. react-umd pre-bundles ReactLynx so that it can be loaded on-demand and shared across different parts of your Lynx app.

Building

To build the development and production bundles locally:

pnpm build

The script will automatically execute:

  • pnpm build:development (sets NODE_ENV=development)
  • pnpm build:production (sets NODE_ENV=production)

This generates the following artifacts in the dist/ directory:

  • react-dev.lynx.bundle
  • react-prod.lynx.bundle

Usage as an External Bundle

For a full working example of how to serve and consume this external bundle, see the react-externals example in this repository.

Typically, you will use @lynx-js/external-bundle-rsbuild-plugin to map @lynx-js/react and its internal modules directly to the URL where this UMD bundle is served in your Lynx config file (eg. lynx.config.ts).

1. Consuming in a Custom Component Bundle (rslib.config.ts)

If you are building your own external UI component library that relies on React, you should map the React imports to the global variable exposed by this UMD bundle.

// rslib-comp-lib.config.ts
export default defineExternalBundleRslibConfig({
  output: {
    externals: {
      '@lynx-js/react': ['ReactLynx', 'React'],
      '@lynx-js/react/internal': ['ReactLynx', 'ReactInternal'],
      '@lynx-js/react/jsx-dev-runtime': ['ReactLynx', 'ReactJSXDevRuntime'],
      '@lynx-js/react/jsx-runtime': ['ReactLynx', 'ReactJSXRuntime'],
      '@lynx-js/react/lepus/jsx-dev-runtime': [
        'ReactLynx',
        'ReactJSXLepusDevRuntime',
      ],
      '@lynx-js/react/lepus/jsx-runtime': ['ReactLynx', 'ReactJSXLepusRuntime'],
      '@lynx-js/react/experimental/lazy/import': [
        'ReactLynx',
        'ReactLazyImport',
      ],
      '@lynx-js/react/legacy-react-runtime': [
        'ReactLynx',
        'ReactLegacyRuntime',
      ],
      '@lynx-js/react/runtime-components': ['ReactLynx', 'ReactComponents'],
      '@lynx-js/react/worklet-runtime/bindings': [
        'ReactLynx',
        'ReactWorkletRuntime',
      ],
      '@lynx-js/react/debug': ['ReactLynx', 'ReactDebug'],
      'preact': ['ReactLynx', 'Preact'],
    },
  },
});

2. Resolving the Bundle in a Lynx App (lynx.config.ts)

In the host application, configure the Rsbuild plugin to load the React UMD bundle into the correct engine layers (Background Thread and Main Thread) when the app starts.

// lynx.config.ts
import { pluginExternalBundle } from '@lynx-js/external-bundle-rsbuild-plugin';

export default defineConfig({
  plugins: [
    pluginExternalBundle({
      externals: {
        '@lynx-js/react': {
          libraryName: ['ReactLynx', 'React'],
          url: `http://<your-server>/react.lynx.bundle`,
          background: { sectionPath: 'ReactLynx' },
          mainThread: { sectionPath: 'ReactLynx__main-thread' },
          async: false,
        },
        // ... include similar configurations for other @lynx-js/react/* subpaths
      },
    }),
  ],
});

Note: Ensure you map both the background and mainThread configurations properly so that React successfully attaches across the threaded architecture.