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

@datafire/amazonaws_personalize_runtime

v5.0.0

Published

DataFire integration for Amazon Personalize Runtime

Readme

@datafire/amazonaws_personalize_runtime

Client library for Amazon Personalize Runtime

Installation and Usage

npm install --save @datafire/amazonaws_personalize_runtime
let amazonaws_personalize_runtime = require('@datafire/amazonaws_personalize_runtime').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

.then(data => {
  console.log(data);
});

Description

Actions

GetPersonalizedRanking

amazonaws_personalize_runtime.GetPersonalizedRanking({
  "campaignArn": "",
  "inputList": [],
  "userId": ""
}, context)

Input

  • input object
    • campaignArn required string: The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.
    • context object: The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.
    • filterArn string: The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see Filtering Recommendations.
    • filterValues object: The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. For filter expressions that use an INCLUDE element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE element to exclude items, you can omit the filter-values.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations. For more information, see Filtering Recommendations.
    • inputList required array: A list of items (by itemId) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.
    • userId required string: The user for which you want the campaign to provide a personalized ranking.

Output

GetRecommendations

amazonaws_personalize_runtime.GetRecommendations({
  "campaignArn": ""
}, context)

Input

  • input object
    • campaignArn required string: The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.
    • context object: The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.
    • filterArn string: The ARN of the filter to apply to the returned recommendations. For more information, see Filtering Recommendations. When using this parameter, be sure the filter resource is ACTIVE.
    • filterValues object: The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. For filter expressions that use an INCLUDE element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE element to exclude items, you can omit the filter-values.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations. For more information, see Filtering Recommendations.
    • itemId string: The item ID to provide recommendations for. Required for RELATED_ITEMS recipe type.
    • numResults integer: The number of results to return. The default is 25. The maximum is 500.
    • userId string: The user ID to provide recommendations for. Required for USER_PERSONALIZATION recipe type.

Output

Definitions

Arn

  • Arn string

AttributeName

  • AttributeName string

AttributeValue

  • AttributeValue string

Context

  • Context object

FilterAttributeName

  • FilterAttributeName string

FilterAttributeValue

  • FilterAttributeValue string

FilterValues

  • FilterValues object

GetPersonalizedRankingRequest

  • GetPersonalizedRankingRequest object
    • campaignArn required
    • context
    • filterArn
    • filterValues
    • inputList required
    • userId required

GetPersonalizedRankingResponse

  • GetPersonalizedRankingResponse object

GetRecommendationsRequest

  • GetRecommendationsRequest object
    • campaignArn required
    • context
    • filterArn
    • filterValues
    • itemId
    • numResults
    • userId

GetRecommendationsResponse

  • GetRecommendationsResponse object

InputList

InvalidInputException

ItemID

  • ItemID string

ItemList

NumResults

  • NumResults integer

PredictedItem

  • PredictedItem object: An object that identifies an item. The and APIs return a list of PredictedItems.
    • itemId
    • score

RecommendationID

  • RecommendationID string

ResourceNotFoundException

Score

  • Score number

UserID

  • UserID string