open-index/open-npm huggingface dataset:
npm package: @frebliklo/mood-tokens
Description: Design tokens for the Moodagent Design System
Author: Frederik Klovborg
Latest version: 0.0.10

# Moodagent design tokens

Run the following:

```bash
npm install
npm run build
```

The tokens are built using [Style Dictionary](https://amzn.github.io/style-dictionary/)

Built-in [transforms](https://amzn.github.io/style-dictionary/#/transforms?id=pre-defined-transforms) and [formats](https://amzn.github.io/style-dictionary/#/formats?id=pre-defined-formats).
npm package: @frecency/core
Description: core package
Author: James Phillips
Latest version: 0.1.1

<p align="center">
  <img src="./frecency.svg" />
</p>

## Overview

## Installation

```bash
npm i --save @frecency/core
npm i --save @frecency/indexeddb-datasource # if you need persistence
```

## Usage

```typescript
import createVisit from "@frecency/core";

const halflife = 7 * 24 * 60 * 60 * 1000; // 7 days
const visit = createVisit(halflife);

const visita = visit();
const visitb = visit(visita);
// ...
```

```typescript
//
// Very often you are not going to want keep the scores in memory, you may want
// to persist them so that they can be recalled later between pages, app
// launches, etc.
//
// For those working in the browser, we provide a datasource that can persist
// and recall scores from IndexedDB.
//

import { initDB } from "@frecency/indexeddb-datasource";

const datasource = initDB("unique-identitier-used-as-name-of-database");

await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "acme");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "acme");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");

// Results are returned ordered by their score
const list = await datasource.list("namespace.selector");
console.table({ list });
```
npm package: @frecency/indexeddb-datasource
Description: indexeddb-datasource package
Author: James Phillips
Latest version: 0.1.1

<p align="center">
  <img src="./frecency.svg" />
</p>

## Overview

## Installation

```bash
npm i --save @frecency/core
npm i --save @frecency/indexeddb-datasource # if you need persistence
```

## Usage

```typescript
import createVisit from "@frecency/core";

const halflife = 7 * 24 * 60 * 60 * 1000; // 7 days
const visit = createVisit(halflife);

const visita = visit();
const visitb = visit(visita);
// ...
```

```typescript
//
// Very often you are not going to want keep the scores in memory, you may want
// to persist them so that they can be recalled later between pages, app
// launches, etc.
//
// For those working in the browser, we provide a datasource that can persist
// and recall scores from IndexedDB.
//

import { initDB } from "@frecency/indexeddb-datasource";

const datasource = initDB("unique-identitier-used-as-name-of-database");

await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "acme");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "acme");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");
await datasource.visit("namespace.selector", "contoso");

// Results are returned ordered by their score
const list = await datasource.list("namespace.selector");
console.table({ list });
```
npm package: @freckle/ajax
Description: Freckle ajax helpers
Author: Freckle
Latest version: 3.0.0

# @freckle/ajax

## Install

```sh
yarn add @freckle/ajax
```

## Versioning and release process

See [RELEASE.md](./RELEASE.md).

## Ajax helpers

See [ajax.ts](./src/ajax.ts).

## Link header

See [link-header.ts](./src/link-header.ts).

---

[LICENSE](./LICENSE)
npm package: @freckle/cancelable-promise
Description: Cancelable promise utilities
Author: Freckle
Latest version: 1.0.0

# @freckle/cancelabe-promise

Utilities to create a promise that can be canceled.

## Install

```sh
yarn add @freckle/cancelable-promise
```

## Versioning and release process

See [RELEASE.md](./RELEASE.md).

## Usage

```ts
const expensiveOperation = () => fetchData().then(parse).then(transform)

const Component = () => {
  const [result, setResult] = setState(null)
  useEffect(() => {
    const promise = makeCancelable(expensiveOperation).then(res => {
      setResult(res)
    })
    return () => {
      // Cancel on cleanup
      promise.cancel()
    }
  })

  return result
}
```

---

[LICENSE](./LICENSE)