JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 69
  • Score
    100M100P100Q87477F
  • License ISC

justwords node sdk for use in server side environments

Package Exports

  • justwords-node
  • justwords-node/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (justwords-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

About

justwords-node sdk selects the best copy string at run time from a given pool of copy strings. It uses contextual bandits parameters computated offline based on pre-selected success criteria.

The SDK periodically fetches the new configuration from a justwords api, every 30 minutes, with bandits distribution parametes (alpha & beta) computed for each of the selected arms. At runtime these parameters are used to select the arm most likely to produce a favorable outcome.

Example: For optimizing open rates (over sends) on a push notification campaign, we can compute the bandits parameters using sends and opens data and publish them to a JSON config file on the justwords api. The SDK can fetch the updated paramters periodically and at runtime update it's copy selection logic.

Installation

npm install --save justwords-node

Usage

import JustWords from 'justwords-node'
await JustWords.initialize('YOUR_SDK_KEY');

const copyString = JustWords.getString("notification_title", "This is the default string");

Dependencies

  • jstat
  • node-fetch
  • zod