New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@relewise/client

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relewise/client - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@relewise/client",
"version": "1.0.1",
"version": "1.0.2",
"description": "Relewise is a next generation personalization SaaS-platform, which offers functionality within product- and content recommendations and personalized search. This official SDK helps you interact with our API.",

@@ -5,0 +5,0 @@ "repository": {

# Relewise JS SDK
## Installation
This is the official Relewise TS/JS SDK for integreting with our API.
Install via NPM or you preferred package manager:
```
npm install @relewise/client
```
## Usage examples
Start by bootstrapping the client:
```ts
const tracker = new Tracker(RELEWISE_DATASET_ID, RELEWISE_API_KEY);
```
Replace the `RELEWISE_DATASET_ID` and `RELEWISE_API_KEY` parameters with your dataset & api key found at [My.Relewise](https://my.relewise.com/developer-settings).
After which you have access to various methods depending on the client, in this case the tracker:
Tracking a product view
```ts
await tracker.tractProductView({
productId: 'p-1',
user: UserFactory.anonymous()
});
```
## Contributing
Pull requests are always welcome.
Please fork this repository and make a PR when you are ready with your contribution.
Otherwise you are welcome to open an Issue in our [issue tracker](https://github.com/Relewise/relewise-sdk-javascript/issues).
For usage documentation go to our [GitHub repository](https://github.com/Relewise/relewise-sdk-javascript).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc