Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
review-master
Advanced tools
A library to visualize business intelligence derived from sentiment analysis on product reviews
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.
Check out the example React application at http://review-master.s3-website-us-east-1.amazonaws.com/
Explore the docs at https://boraelci.github.io/review-master/
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
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()
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
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.
See CONTRIBUTING.md
FAQs
A library to visualize business intelligence derived from sentiment analysis on product reviews
The npm package review-master receives a total of 0 weekly downloads. As such, review-master popularity was classified as not popular.
We found that review-master demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.