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 🙏

© 2024 – Pkg Stats / Ryan Hefner

review-master

v0.1.3

Published

A library to visualize business intelligence derived from sentiment analysis on product reviews

Downloads

2

Readme

Review Master

Build Status codecov NPM JavaScript Style Guide MIT License issues Docs

Overview

Review Insights is a powerful library designed to help businesses visualize and understand customer sentiment from product reviews. With the increasing number of reviews left by customers on e-commerce platforms, it becomes a daunting task for sellers to manually read and analyze them all. This library simplifies this process by presenting the insights derived from sentiment analysis in a visually appealing and easily digestible manner.

Imagine a pair of headphones listed on an e-commerce website with thousands of customer reviews. By using sentiment analysis, we can determine what percentage of customers think the product is cheap or expensive and high-quality or low-quality, among other aspects. This library takes these results and presents them in an interactive and engaging way, allowing sellers to make informed decisions based on the overall customer sentiment.

Key features include:

  • Historical View: Track and visualize the changes in customer sentiment over time, enabling you to see how product improvements, price changes, or marketing campaigns have influenced customer perception.

  • Categorical View: Dive deeper into specific aspects of the product, such as price, quality, or durability, and see how customers feel about each of them.

  • Statistical Analysis of Star Ratings: Get a comprehensive statistical analysis of the star ratings customers give to your products. This includes mean, median, standard deviation, and quartiles, helping you to better understand the distribution and trends of customer satisfaction.

Example

Check out the example React application at http://review-master.s3-website-us-east-1.amazonaws.com/

Example1

Example2

Documentation

Explore the docs at https://boraelci.github.io/review-master/

Install

To get started with the review-master, install it as a dependency in your project:

npm install --save review-master

Make sure you have the required peer dependencies installed as well:

npm install react react-dom chart.js react-chartjs-2 bootstrap react-bootstrap

Usage

Below is an example with built-in, sample DataProviders. To display custom values, Create your own DataProvider by implementing that interface, with getData() and getLabels() methods.

import { Chart as ChartJS, registerables } from 'chart.js';
import { Line, Radar } from 'react-chartjs-2';
import {
  AnalysisModel,
  CategoricalViewer,
  HistoricalViewer,
  StarsViewer,
} from 'review-master';
ChartJS.register(...registerables);
import sampleData from './data/analysisResponse.json';

const analysisModel = new AnalysisModel(sampleData);
const historicalViewer = new HistoricalViewer(analysisModel, 'day');
const categoricalViewer = new CategoricalViewer(analysisModel);
const starsViewer = new StarsViewer(analysisModel);

const { options: historicalOptions, data: historicalData } =
  historicalViewer.getOptionsAndData();
const { options: categoricalOptions, data: categoricalData } =
  categoricalViewer.getOptionsAndData();

return <Line options={historicalOptions} data={historicalData} />;
// or <Radar options={categoricalOptions} data={categoricalData} />
// or starsViewer.createTable()

Tests

Unit and integration tests can be found at ./src/tests since this is the directory convention required by create-react-library with jest. The coverage report can be accessed at ./coverage/lcov-report/index.html. The latest report indicates:

Test Suites: 6 passed, 6 total Tests: 27 passed, 27 total Snapshots: 0 total Time: 0.857 s, estimated 1 s

Scripts

This project uses the TypeScript dialect of JavaScript. It has the following commands:

npm install

Install dependencies

npm start

Start in developer mode

npm test

Run the test suite and show coverage information. A report is generated at ./coverage/lcov-report/index.html

npm run lint

Run static analysis with eslint

npm run prettier

Autoformat the code with prettier

npm run build

Build the app for production to the dist folder.

Contributing

See CONTRIBUTING.md