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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ov25-ui-react18

v0.5.59

Published

A UI configurator for OV25 product visualization

Readme

OV25-UI

A modern React UI component library for e-commerce applications, featuring a configurator with 3D product visualization.

Installation

For React 19

npm install ov25-ui

For React 18 (Shopify, WooCommerce, etc.)

npm install ov25-ui-react18

Note: Both packages provide identical functionality. Choose the package that matches your React version to avoid dependency conflicts.

Usage

ES Modules (recommended)

For React 19:

import { injectConfigurator } from 'ov25-ui';

For React 18:

import { injectConfigurator } from 'ov25-ui-react18';

// Inject the configurator into your page injectConfigurator({ apiKey: 'your-api-key', // Required productLink: '/product/123', // Required galleryId: '#product-image-container', // Optional carouselId: '#product-carousel', // Optional priceId: '#price-element', // Optional nameId: '#name-element', // Optional variantsId: '#product-variants', // Optional swatchesId: 'ov25-swatches' // Optional });


### Screenshot Generation

After injecting the configurator, you can generate thumbnails using the `window.ov25GenerateThumbnail()` function:

```javascript
// Generate a screenshot and get the URL
window.ov25GenerateThumbnail()
  .then(screenshotUrl => {
    console.log('Screenshot URL:', screenshotUrl);
    // Use the URL for thumbnails, social sharing, etc.
  })
  .catch(error => {
    console.error('Screenshot generation failed:', error);
  });

// Using async/await
async function captureThumbnail() {
  try {
    const url = await window.ov25GenerateThumbnail();
    return url;
  } catch (error) {
    console.error('Failed to capture thumbnail:', error);
  }
}

The function returns a Promise that resolves with the uploaded screenshot URL from S3. Screenshots are automatically uploaded and the returned URL can be used immediately.

Publishing

This package is published in two versions to support both React 18 and React 19:

  • ov25-ui - For React 19 consumers (default)
  • ov25-ui-react18 - For React 18 consumers (Shopify, WooCommerce, etc.)

Publishing both versions

  1. Update the version number in package.json
  2. Run npm run publish to build and publish both packages

Publishing individual versions (don't do this usually)

  • React 18: npm run publish:react18
  • React 19: npm run publish:react19

Building without publishing

  • React 18: npm run build:react18
  • React 19: npm run build:react19

Managing Dependencies

When adding new dependencies to package.json, they will automatically be used for both React 18 and React 19 builds. The build scripts handle React version differences automatically.

Testing locally

  • There is a minimal react project in dev/react-test which build a simple webpage.
  • It then calls injectConfigurator with some options. (dev/react-test/src/App.jsx)
  • The react-test project will need an initial npm install
  • To run, go to root directory of ov25-ui. run npm run dev. This will build the project and then spin up the react project
  • Go to http://localhost:3000