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

@constructor-io/constructorio-ui-recommendations

v1.0.0

Published

Constructor.io Recommendations UI library for web applications

Readme

Constructor Recommendations UI

A UI library that provides React components to manage the fetching and rendering logic for Recommendations powered by Constructor.

npm Version license

Recommendations UI Demonstration

Documentation

View the full component documentation and live examples in Storybook:

Explore Storybook Documentation →


Table of Contents


Overview

Constructor Recommendations UI provides React components for rendering personalized product recommendations. It handles state management, data fetching, and rendering logic out of the box.

Key capabilities:

  • 🔌 Plug & Play – Ready-to-use React components for recommendations
  • Automatic Data Fetching – Built-in state management and data fetching
  • 🎨 Customizable Styling – Minimal default styles, easy to extend or replace
  • 🌐 Framework Agnostic – Use with React or as a vanilla JavaScript bundle
  • 🛡 TypeScript Support – Full type safety included out of the box

Explore full documentation →


Installation & Quick Start

Install via npm

npm i @constructor-io/constructorio-ui-recommendations

Basic Usage (React)

import CioRecommendations from '@constructor-io/constructorio-ui-recommendations';
import '@constructor-io/constructorio-ui-recommendations/styles.css';

function App() {
  return <CioRecommendations apiKey='key_M57QS8SMPdLdLx4x' />;
}

View detailed setup guide →


Integration Modes

React Component

import CioRecommendations from '@constructor-io/constructorio-ui-recommendations';

function YourComponent() {
  return <CioRecommendations apiKey='key_M57QS8SMPdLdLx4x' />;
}

Vanilla JavaScript (Bundle)

This is a framework agnostic method that can be used in any JavaScript project. The CioRecommendations function provides a simple interface to inject an entire recommendations UI into the provided selector.

In addition to recommendation component props, this function also accepts selector and includeCSS.

import CioRecommendations from '@constructor-io/constructorio-ui-recommendations/constructorio-ui-recommendations-bundled';

CioRecommendations({
  selector: '#recommendations-container',
  includeCSS: true,
  apiKey: 'key_M57QS8SMPdLdLx4x',
});

Customization

By default, importing React components from this library does not pull any CSS into your project.

If you wish to use starter styles from this library, add an import statement similar to the example import statement below:

import '@constructor-io/constructorio-ui-recommendations/styles.css';
  • The starter styles can be used as a foundation to build on top of, or as a reference to be replaced completely.
  • To opt out of all default styling, simply do not import the styles.css stylesheet.
  • All starter styles in this library are scoped within the .cio-recommendations CSS selector.
  • The starter styles are intended to be extended by layering in your own CSS rules.
  • If the starter styles are imported, CioRecommendations component will take up the full width and height of the parent container.

Troubleshooting

| Issue | Solution | | ------------------- | ---------------------------------------------------------------------------------- | | Module not found | Run npm install @constructor-io/constructorio-ui-recommendations | | Need CommonJS build | Import CommonJS: require('@constructor-io/constructorio-ui-recommendations/cjs') |

Need more help? Open a GitHub issue


Resources


Contributing

  1. Fork the repo & create a new branch.
  2. Run npm install to install dependencies.
  3. After making the desired changes, run npm run test && npm run lint locally.
  4. Submit a PR for review.

License

MIT License

Copyright (c) 2022-present Constructor.io Corporation