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

semantria-node

v3.8.77

Published

Semantria-node is a port of SemantriaJavaScriptSDK for use with Nodejs or the browser

Downloads

8

Readme

Semantria-node

Semantria-node is a port of SemantriaJavaScriptSDK for use with Nodejs or the browser.

Quick Start

npm install semantria-node

Usage

var Semantria = require('semantria-node');
var session = new Semantria.Session(
        consumer_key,
        consumer_secret,
        application_name,
        format,
        use_compression
    );

var documentId = (new Date).getTime();

var result = session.queueDocument({
    id: documentId,
    text: "it works"
});

if (result === 202) {
    var data = SemantriaSession.getDocument(documentId);
    return {
        sentiment_score: data.sentiment_score,
        sentimentText: data.sentiment_polarity
    }
}

| Parameter | Description | | :------------- |:-------------| | consumer_key | Semantria API key | | consumer_secret | Semantria API secret | | application_name | (Optional) Reference name for application | | format | (Optional) Default: "json" | | use_compression | (Optional) |


Semantria is a text analytics and sentiment analysis API. It allows you to gain valuable insights from your unstructured text content. It is based on Lexalytics’ Salience – a text analytics and sentiment analysis engine. The same engine as the one being used by Oracle, Cisco, Thomson Reuters, Saleforce.com - Radian6, Visible, Lithium, and 50+ other leaders in the space.

Semantria offers JavaScript SDK, that is the most convenient way to get started with the Semantria API on JavaScript. SDK implements all the available Semantria features and demonstrate best practices of API usage. A Free trial is available at http://www.semantria.com/trial

Functionality includes:

  • Entity extraction (both model and dictionary based)
  • Theme/keyword extraction
  • Categorization/Classification (Query and Wikipedia ontology-based)
  • Summarization
  • Sentiment Analysis (document, entity, theme/keyword, and category level)
  • Semantic Rollups (birds-eye view on your dataset, combining SPSS-like statistical analysis and full scale NLP approach)
  • Full support of 5 languages (entity extraction, categorization, sentiment analysis, etc): English, French, Portuguese, Spanish, and German.
  • Part of speech markup

Semantria also has a free Excel Add-In that let’s you process content from inside your Excel without any coding, integration work, etc. It is a fully functional API client with an easy to use API configuration GUI is available at http://www.semantria.com/excel An Excel Add-In demo overview, categorization tutorial, custom entities set-up, and sentiment adjustment video are all available at http://www.semantria.com/video