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

datumbox

v1.0.1

Published

DatumBox API Wrapper in Nodejs

Readme

Simplified HTTP Wrapper for DatumBox API

DatumBox

Use as defined DatumBox Sandbox

This module is designed to make the DatumBox API available in Node.js. Its pretty inspired and ported from PHP Wrapper.

What is the Datumbox API?

The Datumbox is a web service which allows you to use our tools from your website, software or mobile application. The API gives you access to all of the supported functions of our service. In this page you will find all the information that you need in order to use our API, fully implemented code samples and the latest API Documentation.

Our Web Service uses "REST-Like" RPC-style operations over HTTP POST requests with parameters URL encoded into the request and its response is encoded in JSON. It is designed to be easy to use and you can implement it in any model computer language that allows you generating web requests.

How to use the API Client?

All you need to do is download the sample code, edit example.php and place your API Key. To get an API Key sign up to datumbox.com service and visit the API Access panel in your profile.

Getting Started

Initialize the module with your api key.

var datum = require('datumbox').factory("API_KEY_HERE");

Sentiment Analysis

Identifies the Sentiment of the Document

datum.sentimentAnalysis("Can you find my sentiments please?", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Twitter Sentiment Analysis

Identifies the Sentiment of Twitter Messages

datum.twitterSentimentAnalysis("Can you find my #sentiments #please?", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Subjectivity Analysis

Classifies Document as Subjective or Objective

datum.subjectivityAnalysis("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Topic Classification

Identifies the Topic of the Document

datum.topicClassification("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Spam Detection

Classifies the Document as spam or nospam

datum.spamDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Adult Content Detection

Classifies the Document as adult or noadult

datum.adultContentDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Readability Assessment

Evaluates the Readability of the Document

datum.adultContentDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Language Detection

Identifies the Language of the Document

datum.languageDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Commercial Detection

Classifies the Document as commercial or nocommercial

datum.commercialDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Educational Detection

Classifies the Document as educational or noeducational

datum.educationalDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Gender Detection

Gender Detection Service

datum.genderDetection("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Text Extraction

Extracts the clear text from Webpage

datum.textExtraction("TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Keyword Extraction

Extracts the Keywords of the Document

datum.keywordExtraction("TEXT_TO_FIND_HERE", "n", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Document Similarity

Estimates the similarity between 2 Documents

datum.documentSimilarity("DOCUMENT_CONTENT_1", "DOCUMENT_CONTENT_2",, function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Magic Caller

Get the sentiments of DatumService via magic by defining service on the fly.

datum.magic("SentimentAnalysis", "TEXT_TO_FIND_HERE", function(err, data) {
    if ( err )
        return console.log(err);

    console.log(data);  // Remarks here.
});

Contributors

Right now, the project is only getting developed by: