Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


:bar_chart: Sample Nodejs Application for the IBM Watson Personality Insights Service

Subscribe to updates I use personality-insights-nodejs

Statistics on personality-insights-nodejs

Number of watchers on Github 377
Number of open issues 3
Average time to close an issue 19 days
Main language JavaScript
Average time to merge a PR 3 days
Open pull requests 6+
Closed pull requests 46+
Last commit over 1 year ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 7.74 MB
Organization / Authorwatson-developer-cloud
Latest Release0.1.11
Page Updated
Do you use personality-insights-nodejs? Leave a review!
View open issues (3)
View personality-insights-nodejs activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating personality-insights-nodejs for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Personality Insights Nodejs Starter Application Build Status

The IBM Watson [Personality Insights][service_url] service uses linguistic analysis to extract cognitive and social characteristics from input text such as email, text messages, tweets, forum posts, and more. By deriving cognitive and social preferences, the service helps users to understand, connect to, and communicate with other people on a more personalized level.

Deploy to Bluemix

Getting started

  1. You need a Bluemix account. If you don't have one, sign up. Experimental Watson Services are free to use.

  2. Download and install the Cloud-foundry CLI tool if you haven't already.

  3. Edit the manifest.yml file and change <application-name> to something unique. The name you use determines the URL of your application. For example, <application-name>

  - services:
    - my-service-instance
    name: <application-name>
    command: npm start
    path: .
    memory: 512M
  1. Connect to Bluemix with the command line tool.
  cf api
  cf login
  1. Create and retrieve service keys to access the [Personality Insights][service_url] service:
  cf create-service personality_insights lite my-pi-service
  cf create-service-key my-pi-service myKey
  cf service-key my-pi-service myKey
  1. Create a .env file in the root directory by copying the sample .env.example file using the following command:
  cp .env.example .env

You will update the .env with the information you retrieved in steps 5.

The .env file will look something like the following:

  1. Install the dependencies you application need:
  npm install
  1. Start the application locally:
  npm start
  1. Point your browser to http://localhost:3000.

  2. Optional: Push the application to Bluemix:

  cf push

After completing the steps above, you are ready to test your application. Start a browser and enter the URL of your application.

        <your application name>

For more details about developing applications that use Watson Developer Cloud services in Bluemix, see Getting started with Watson Developer Cloud and Bluemix.

Setting Up the Twitter Application

  1. Create a Twitter application.

  2. Add your application's callback URL:

    • For Bluemix environment: <application-name>
    • For Local environment: http://localhost:3000/auth/twitter/callback
  3. Update the .env file and add your twitter application credentials:

  1. Restart the app locally or push it again to Bluemix.


  • The main source of troubleshooting and recovery information is the Bluemix log. To view the log, run the following command:
  cf logs <application-name> --recent
  • For more details about the service, see the documentation for the Personality Insights.

Directory structure

 app.js                       // express entry point
 config                       // express configuration
 helpers                      // utility modules
 i18n                         // internationalization
  data                     // sample text and tweets
 router.js                   // express routes
 server.js                   // application entry point
 views                       // ejs views


This sample code is licensed under Apache 2.0.



Open Source @ IBM

Find more open source projects on the IBM Github Page

Privacy Notice

Sample web applications that include this package may be configured to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Node.js package version
  • Node.js repository URL
  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (application_uris)
  • Labels of bound services
  • Number of instances for each bound service and associated plan information

This data is collected from the package.json file in the sample application and the VCAP_APPLICATION and VCAP_SERVICES environment variables in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

personality-insights-nodejs open pull requests (View All Pulls)
  • watson-developer-cloud@1.2.5 untested ⚠️
  • watson-developer-cloud@1.2.4 untested ⚠️
  • watson-developer-cloud@1.2.3 untested ⚠️
  • Wrapped behaviors into a separate component with proper testing
  • Add bluemix analytics
  • use published npm package
personality-insights-nodejs list of languages used
personality-insights-nodejs latest release notes
0.1.11 First Release

First Release

screen shot 2015-12-16 at 5 57 00 pm

Other projects in JavaScript