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

@radaid/radreport-template-builder

v2.0.7-beta.15

Published

A template and report builder for radiology reports

Readme

📝 RadReport Template Editor

The RadReport Template Editor is a robust toolkit for creating and managing medical radiology templates using HTML. It supports structured reporting and enables dynamic templates creation, all while aligning with standardized medical reporting practices.


✨ Features

  • ✅ Create or import radiology report templates using HTML.
  • 🧱 Dynamically add, remove, and edit sections and fields.
  • 📥 Import existing standard templates.
  • 💡 Built with flexibility to support standard reporting workflows.

🚀 Getting Started

📦 Build the Package

To build the package for production:

yarn run build

📦 Usage in Other Projects

When importing `@radaid/radreport-template-builder` into another project, make sure to configure React, ReactDOM, and JSX Runtime aliases properly to avoid issues like duplicate React instances or unresolved modules. These issues commonly occur in monorepos, local linking setups (e.g., `pnpm link`), or even in production builds where the package is consumed as a UMD bundle.


🔧 Webpack Configuration

If your project uses Webpack, update your config like this:

resolve: {
  alias: {
    react: path.resolve(__dirname, '../../../node_modules/react'),
    'react-dom': path.resolve(__dirname, '../../../node_modules/react-dom'),
    'react/jsx-runtime': path.resolve(__dirname, '../../../node_modules/react/jsx-runtime'),
    React: path.resolve(__dirname, '../../../node_modules/react'),
    ReactDOM: path.resolve(__dirname, '../../../node_modules/react-dom'),
    ReactJSXRuntime: path.resolve(__dirname, '../../../node_modules/react/jsx-runtime'),
  },
  modules: [
    'node_modules',
    path.resolve(__dirname, 'src'),
  ],
},

🔧 Next.js Configuration

If your project uses Next.js, modify your `next.config.js` as follows:

// next.config.js
webpack: (config) => {
  config.resolve.alias = {
    ...config.resolve.alias,
    React: require.resolve('react'),
    ReactDOM: require.resolve('react-dom'),
    ReactJSXRuntime: require.resolve('react/jsx-runtime'),
  };
  return config;
};

Version Information and Fixes

v2.0.7-beta.11

  • Fixed appconfig passing issue in TemplateService.
  • Now considers values configured dynamically that passing on package initalization time.

ℹ️ Note: This setup is especially important when:

  • Using `@radaid/radreport-template-builder` via local linking (`pnpm link`)
  • Installing the package via registry (e.g., `pnpm add`) and encountering build errors like:
Module not found: Can't resolve 'React'
Module not found: Can't resolve 'ReactDOM'
Module not found: Can't resolve 'ReactJSXRuntime'

These errors usually occur during Next.js production builds (`next build`) or in CI/CD pipelines when UMD builds are consumed.

To resolve this, ensure that the consuming app explicitly resolves these dependencies using aliasing (as shown above) and that the required versions of `react`, `react-dom`, and `react/jsx-runtime` are installed at the root level of your project.