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

nexo-solutions-review-carousel

v1.0.3

Published

A customizable review carousel component for React applications

Readme

Review Carousel Component

A reusable, responsive review carousel component for React applications.

Features

  • Mobile-responsive design with swiper for small screens
  • Automatic scrolling carousel for desktop
  • Review detail modal
  • Customizable colors and translations
  • Fallback avatar generation for missing images
  • TypeScript support

Installation

npm install nexo-solutions-review-carousel

Quick Start

import React from 'react';
import { ReviewCarousel } from 'nexo-solutions-review-carousel';

// IMPORTANT: Import required CSS files
import 'nexo-solutions-review-carousel/dist/index.css';
import 'swiper/css';
import 'swiper/css/pagination';

// Example component
function ReviewsSection() {
  const reviews = [
    {
      name: "John Doe",
      location: { en: "New York", pt: "Nova Iorque" },
      comment: { 
        en: "Great experience! The food was amazing.",
        pt: "Ótima experiência! A comida estava incrível."
      },
      rating: 5,
      image: "/images/john.jpg",
      sourceUrl: "https://maps.google.com/..."
    },
    // Add more reviews...
  ];

  return (
    <div className="reviews-section">
      <h2>Customer Reviews</h2>
      <ReviewCarousel 
        reviews={reviews}
        language="en"
        accentColor="#ff9900"
      />
    </div>
  );
}

Required Setup

  1. Add Font Awesome to your HTML

    <link 
      rel="stylesheet" 
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" 
    />
  2. Install peer dependencies

    Make sure you have the peer dependencies installed:

    npm install swiper

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | reviews | Review[] | Yes | Array of review objects | | language | string | Yes | Current language code (e.g., 'en', 'pt') | | accentColor | string | No | Custom color for stars and pagination bullets (default: '#ffc800') | | sourceIconUrl | string | No | Custom icon URL for review source (default: Google icon) | | onReviewClick | function | No | Custom handler for review click (if not provided, opens modal) | | translations | object | No | Custom text for UI elements |

Review Object Structure

interface Review {
  name: string;              // Reviewer name
  image: string;             // Reviewer avatar URL
  comment: {                 // Review content in different languages
    [key: string]: string;   // e.g., { en: "Great place!", pt: "Ótimo lugar!" }
  };
  location: {                // Reviewer location in different languages
    [key: string]: string;   // e.g., { en: "New York", pt: "Nova Iorque" }
  };
  rating: number;            // Star rating (1-5)
  sourceUrl?: string;        // Link to original review
  isLocalGuide?: boolean;    // Optional flag for local guides
}

Troubleshooting

  • CSS not loading: Make sure you're importing all three required CSS files
  • Icons not showing: Check that Font Awesome is properly loaded in your HTML
  • Missing dependencies: Ensure swiper is installed in your project

Customization

You can customize the component by:

  1. Modifying colors with the accentColor prop
  2. Providing custom translations
  3. Overriding the CSS with more specific selectors in your own stylesheet

License

MIT