open-index/open-npm huggingface dataset:
npm package: @sentiment/api
Description: Sentiment-api is an api wrapper for the Sentiment client API
Latest version: 1.0.0

# @sentiment/api - API Wrapper for Sentiment

## Installation

```bash
npm install @sentiment/api
```

## Usage

<details>
<summary>Create API Client</summary>

```ts
import { SentimentAPI, EnvironmentId } from "@sentiment/api";

const api = new SentimentAPI({
  apiHost: "http://localhost:3000",
  environmentId: "clgwh8maj0005n2f66pwzev3r" as EnvironmentId,
});
```

</details>

> **Note**
> All of the following methods return a `Result` from the `@sentiment/errors` package.

<details>
<summary>Create a new response</summary>

```ts
const response = await api.createResponse({
  surveyId: "......" as SurveyId,
  personId: "......" as PersonId,
  data: {
    questionId: "response",
  },
});
```

</details>

<details>
<summary>Update an existing response</summary>

```ts
const response = await api.updateResponse({
  responseId: "......" as ResponseId, // If you pass response.value.id from createResponse, you dont need 'as ResponseId'
  data: {
    questionId: "response",
  },
});
```

</details>
npm package: @sentiment/js
Description: Sentiment-js allows you to connect your app to Sentiment, display surveys and trigger events.
Author: Sentiment
Latest version: 0.1.1

# Sentiment Browser JS Library

[![npm package](https://img.shields.io/npm/v/@sentiment/js?style=flat-square)](https://www.npmjs.com/package/@sentiment/js)
[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)

Please see [Sentiment Docs](https://sentiment.com/docs).
Specifically, [Quickstart/Implementation details](https://sentiment.com/docs/getting-started/quickstart-in-app-survey).

## What is Sentiment

Sentiment is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out [sentiment.com](https://sentiment.com).

## How to use this library

1. Install the Sentiment package inside your project using npm:

```bash
npm install -s @sentiment/js
```

2. Import Sentiment and initialize the widget in your main component (e.g., App.tsx or App.js):

```javascript
import sentiment from "@sentiment/js";

if (typeof window !== "undefined") {
  sentiment.init({
    environmentId: "your-environment-id",
  });
}
```

Replace your-environment-id with your actual environment ID. You can find your environment ID in the **Setup Checklist** in the Sentiment settings.

For more detailed guides for different frameworks, check out our [Framework Guides](https://sentiment.com/docs/getting-started/framework-guides).
npm package: @sentiment/n8n-nodes-sentiment
Description: A n8n node to connect Sentiment and send survey data to hundreds of other apps.
Author: PratikAwaik
Latest version: 0.1.0

# n8n-nodes-sentiment

This is an n8n community node. It lets you use Sentiment in your n8n workflows.

Sentiment is an open-source experience management solution that lets you understand what customers think & feel about your product by running highly targeted surveys inside your product.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

[Installation](#installation)  
[Operations](#operations)  
[Credentials](#credentials) <!-- delete if no auth needed -->  
[Compatibility](#compatibility)  
[Usage](#usage) <!-- delete if not using this section -->  
[Resources](#resources)

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Operations

Run workflows on new responses you receive for your surveys.

## Credentials

You can use this integration in Sentiment Cloud as well as self-hosted instances of Sentiment. You only need a Sentiment API Key for this. Please check out the [Sentiment Docs]() for more information.

## Compatibility

This package was developed & tested with n8n > 1.4.0.

## Usage

Please check out the [Sentiment Docs](https://sentiment.com/docs/api/api-key-setup) for more information on how to use the integration.

## Resources

- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
- [Sentiment Docs](https://sentiment.com/docs/integrations/n8n)
npm package: @sentimental/hooks
Description: A sentimental react hooks library.
Latest version: 0.1.5


<p align="center">
  <a href="https://github.com/lazycomedian/sentimental.git">
    <img width="100" src="./public/octocat.svg">
  </a>
</p>
<div align="center">

[![npm](https://badgen.net/npm/v/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Coverage Status](https://badgen.net/npm/dy/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Install Size](https://badgen.net/packagephobia/install/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![commit](https://badgen.net/github/commits/lazycomedian/sentimental/main)](https://github.com/lazycomedian/sentimental)
[![GitHub](https://badgen.net/github/license/lazycomedian/sentimental)](https://github.com/lazycomedian/sentimental)

A javascript common toolkit for personal development.

</div>

## 📚 Documentation

- [None](https://github.com/lazycomedian/sentimental.git)

## ✨ Features

- Easy to learn and use
- Supports Customization
- Contains advanced javascript tool methods that are refined from business scenarios
- Contains a series of basic judgment data methods
- Written in TypeScript with predictable static types

## 📦 Install

```bash
$ npm install --save @sentimental/toolkit
# or
$ yarn add @sentimental/toolkit
# or
$ pnpm add @sentimental/toolkit
```

## 🔨 Usage

```ts
import { Logger, Storage } from "@sentimental/toolkit";
```
npm package: @sentimental/request
Description: A sentimental javascript request tool.
Latest version: 0.1.3


<p align="center">
  <a href="https://github.com/lazycomedian/sentimental.git">
    <img width="100" src="./public/octocat.svg">
  </a>
</p>
<div align="center">

[![npm](https://badgen.net/npm/v/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Coverage Status](https://badgen.net/npm/dy/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Install Size](https://badgen.net/packagephobia/install/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![commit](https://badgen.net/github/commits/lazycomedian/sentimental/main)](https://github.com/lazycomedian/sentimental)
[![GitHub](https://badgen.net/github/license/lazycomedian/sentimental)](https://github.com/lazycomedian/sentimental)

A javascript common toolkit for personal development.

</div>

## 📚 Documentation

- [None](https://github.com/lazycomedian/sentimental.git)

## ✨ Features

- Easy to learn and use
- Supports Customization
- Contains advanced javascript tool methods that are refined from business scenarios
- Contains a series of basic judgment data methods
- Written in TypeScript with predictable static types

## 📦 Install

```bash
$ npm install --save @sentimental/toolkit
# or
$ yarn add @sentimental/toolkit
# or
$ pnpm add @sentimental/toolkit
```

## 🔨 Usage

```ts
import { Logger, Storage } from "@sentimental/toolkit";
```
npm package: @sentimental/toolkit
Description: A sentimental javascript toolkit.
Latest version: 0.1.5


<p align="center">
  <a href="https://github.com/lazycomedian/sentimental.git">
    <img width="100" src="./public/octocat.svg">
  </a>
</p>
<div align="center">

[![npm](https://badgen.net/npm/v/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Coverage Status](https://badgen.net/npm/dy/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![Install Size](https://badgen.net/packagephobia/install/@sentimental/toolkit)](https://www.npmjs.com/package/@sentimental/toolkit)
[![commit](https://badgen.net/github/commits/lazycomedian/sentimental/main)](https://github.com/lazycomedian/sentimental)
[![GitHub](https://badgen.net/github/license/lazycomedian/sentimental)](https://github.com/lazycomedian/sentimental)

A javascript common toolkit for personal development.

</div>

## 📚 Documentation

- [None](https://github.com/lazycomedian/sentimental.git)

## ✨ Features

- Easy to learn and use
- Supports Customization
- Contains advanced javascript tool methods that are refined from business scenarios
- Contains a series of basic judgment data methods
- Written in TypeScript with predictable static types

## 📦 Install

```bash
$ npm install --save @sentimental/toolkit
# or
$ yarn add @sentimental/toolkit
# or
$ pnpm add @sentimental/toolkit
```

## 🔨 Usage

```ts
import { Logger, Storage } from "@sentimental/toolkit";
```