open-index/open-npm huggingface dataset:
npm package: @fatesigner/cz-customizable
Description: A customizable commitizen adapter.
Author: Jeremy Tang
Latest version: 6.3.0

# cz-customizable

[![npm][npm-image]][npm-url]
 
[npm-image]: https://img.shields.io/npm/v/@fatesigner/cz-customizable.svg?color=blue&logo=npm
[npm-url]: https://npmjs.org/package/@fatesigner/cz-customizable

一个可定制的commitizen适配器，为choices添加了前置的序号，当提交的消息类型数量较多时候，上下切换选择的时候可以显得更清晰。

![screenshot](screenshot.png)

## Install

```bash
$ npm i -D @fatesigner/cz-customizable
```

## Usage
添加以下代码至 package.json

```bash
...
"config": {
  "commitizen": {
    "path": "node_modules/@fatesigner/cz-customizable"
  }
}
```

## Configuration
配置可参考 [leonardoanalista/cz-customizable](https://github.com/leonardoanalista/cz-customizable)
npm package: @fatesigner/eslint-config
Description: ESLint Config for JavaScript Style with.
Author: Jeremy Tang
Latest version: 3.2.0

# eslint-config

[![npm][npm-image]][npm-url]
[![download][download-image]][download-url]
[![commitizen][commitizen-image]][commitizen-url]
[![prettier][prettier-image]][prettier-url]
[![semantic][semantic-image]][semantic-url]

[npm-image]: https://img.shields.io/npm/v/@fatesigner/eslint-config.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.com/package/@fatesigner/eslint-config
[download-image]: https://img.shields.io/npm/dw/@fatesigner/eslint-config.svg?style=for-the-badge
[download-url]: https://npmjs.com/package/@fatesigner/eslint-config
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-green.svg?style=for-the-badge
[commitizen-url]: http://commitizen.github.io/cz-cli/
[prettier-image]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?logo=prettier&style=for-the-badge
[prettier-url]: https://github.com/prettier/prettier
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=9cf
[semantic-url]: https://opensource.org/licenses/MIT

eslint插件配置，包含js、ts、vue通用规则

**基于 [eslint-config-standard](https://github.com/standard/eslint-config-standard).**

## Install
```bash
npm i @fatesigner/eslint-config -D

// install peerDependencies
npm i eslint prettier -D
npm i @babel/core @babel/eslint-parser @babel/preset-env @babel/preset-react -D
npm i @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
npm i eslint-config-prettier eslint-config-standard eslint-plugin-html eslint-plugin-import eslint-plugin-import eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-vue vue-eslint-parser -D
```

## 使用
添加以下代码到 `.eslintrc.js`
```javascript
const eslint = require('@fatesigner/eslint-config');

module.exports = {
  root: true,
  overrides: [eslint]
}
```

## 添加对 ts 和 vue 类型文件的规则支持
添加以下代码到 `.eslintrc.js`
```javascript
// javascript
const eslint = require('@fatesigner/eslint-config');

// typescript
const tslint = require('@fatesigner/eslint-config/ts');

// vue
const vuelint = require('@fatesigner/eslint-config/vue');

module.exports = {
  root: true,
  overrides: [eslint, tslint, vuelint]
};
```

## 或者可以在您的项目中使用此插件针对 [prettier](https://github.com/prettier/prettier) 的部分配置
添加以下代码到 `package.json`
```javascript
{ 
  ...
  "prettier": "@fatesigner/eslint-config/.prettierrc"
}
```
npm package: @fatesigner/img-compressor
Description: Web img compressor.
Author: Jeremy Tang
Latest version: 2.0.0

# img-compressor

[![download][download-image]][download-url]
[![npm][npm-image]][npm-url]

[npm-image]: https://img.shields.io/npm/v/@fatesigner/img-compressor.svg?color=green
[npm-url]: https://npmjs.com/package/@fatesigner/img-compressor
[download-image]: https://img.shields.io/npm/dw/@fatesigner/img-compressor.svg?style=flat-square
[download-url]: https://npmjs.com/package/@fatesigner/img-compressor

> Web img compressor.

## 说明

- 该插件基于 [localResizeIMG](https://github.com/think2011/localResizeIMG/) ，添加了类型注释，增强了 API 的易用性。
- 由 typescript 编写，并编译为 [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) 和 [CommonJs](https://requirejs.org/docs/commonjs.html/) 、 [UMD](https://github.com/umdjs/umd) 的代码。
所以如果引入到您的项目中使用，需搭建好 [typescript](https://www.typescriptlang.org/) 或 [babel](https://babeljs.io/docs/en/) 编译环境。
- 借助于 Webpack 的 [dynamic import](https://webpack.docschina.org/guides/code-splitting/) 可以有效减少首屏加载时间。

## 安装

```bash
npm i -S @fatesigner/img-compressor
```

## 使用
```ts
import { compressImg } from '@fatesigner/img-compressor';

let $input = document.getElementById('input');

// use async
let newFile: ICompressImgResponse = await compressImg($input.files[0]);

// use promise
compressImg($input.files[0]).then((newFile) => {
  console.log(newFile);
});
```

### UMD
```html
// 在 html 中依次导入
<script type="text/javascript" src="../dist/img-compressor.umd.js"></script>
<script type="text/javascript" src="../dist/img-compressor.chunk.umd.js"></script>

<input type="file" id="input" />

<script>
  let $input = document.getElementById('input');
  $input.onchange = function () {
    window.ImgCompressor.compressImg($input.files[0]).then((newFile) => {
      console.log(newFile);
    });
  };
</script>
```

## API
### compressImg(file, options) => [ICompressImgResponse](#ICompressImgResponse)
> 压缩指定图片.

| Param | Description |
| --- | --- |
| file | 图片, File 对象 |
| options | [ICompressImgOptions](#ICompressImgOptions) |

### ICompressImgOptions
| Param | default | Description |
| --- | --- | --- |
| quality  | 0.7 | 图片压缩质量，取值 0 - 1 |
| width | null | 图片最大不超过的宽度，默认为原图宽度，高度不设时会适应宽度  |
| height | null | 图片最大不超过的高度，默认为原图高度，宽度不设时会适应高度  |

### ICompressImgResponse
| Param | type | Description |
| --- | --- | --- |
| formData | any | 后端可处理的数据  |
| file | File | 压缩后的 file对象（默认已经丢在 rst.formData有一份了），需要注意的是如果压缩率太低的话，这个会是原始的 file对象  |
| fileLen | number | 生成后的图片的大小，后端可以通过此值来校验是否传输完整  |
| base64 | string | 生成后的图片 base64，后端可以处理此字符串为图片，也直接用于 img.src = base64  |
| base64Len | number | 生成后的 base64 的大小，后端可以通过此值来校验是否传输完整 (如果采用base64上传方式)  |
| origin | File | 原始的 file 对象，里面存了一些原始文件的信息，例如大小，日期等  |
npm package: @fatesigner/stylelint-config
Description: The recommended shareable config for stylelint.
Author: Jeremy Tang
Latest version: 1.3.0

# stylelint-config

[![build][build-image]][build-url]
[![commitizen][commitizen-image]][commitizen-url]
[![download][download-image]][download-url]
[![npm][npm-image]][npm-url]
[![semantic][semantic-image]][semantic-url]

[build-image]: https://travis-ci.com/fatesigner/stylelint-config.svg?color=green&token=i21P7stb8bZPNjZakvsi&branch=master
[build-url]: https://travis-ci.com/fatesigner/stylelint-config
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-green.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
[download-image]: https://img.shields.io/npm/dw/@fatesigner/stylelint-config.svg?color=yellowgreen
[download-url]: https://npmjs.com/package/@fatesigner/stylelint-config
[npm-image]: https://img.shields.io/npm/v/@fatesigner/stylelint-config.svg?color=blue&logo=npm
[npm-url]: https://npmjs.com/package/@fatesigner/stylelint-config
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square
[semantic-url]: https://opensource.org/licenses/MIT

stylelint通用规则

**基于 [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard).**

## Install
```bash
npm i @fatesigner/stylelint-config -D

// install peerDependencies
npm i stylelint stylelint-config-css-modules stylelint-config-recess-order stylelint-config-standard stylelint-order -D
```

## 使用
添加以下代码到 `stylelint.config.js`
```javascript
module.exports = {
  extends: '@fatesigner/stylelint-config'
}
```
npm package: @fatesigner/typed
Description: Some typescript common types.
Author: Jeremy Tang
Latest version: 1.0.1

# Utils

[![npm][npm-image]][npm-url]
[![build][travis-image]][travis-url]
[![download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/@fatesigner/typed.svg?color=red
[npm-url]: https://npmjs.com/package/@fatesigner/typed
[travis-image]: https://travis-ci.com/fatesigner/typed.svg?color=success&branch=master
[travis-url]: https://travis-ci.com/fatesigner/typed
[download-image]: https://img.shields.io/npm/dw/@fatesigner/typed.svg?color=green
[download-url]: https://npmjs.com/package/@fatesigner/typed

Some typescript common types.

## install
```bash
npm i -S @fatesigner/typed
```

## use
```js
import { FunctionType } from '@fatesigner/typed';

export function Add(fn: FunctionType, num: number, num2: number) {
  return fn(num, num2);
}
```
npm package: @fatesigner/utils
Description: JavaScript工具库.
Author: Jeremy Tang
Latest version: 2.11.2

# Utils

[![build][travis-image]][travis-url]
[![commitizen][commitizen-image]][commitizen-url]
[![codecov][codecov-image]][codecov-url]
[![prettier][prettier-image]][prettier-url]
[![download][download-image]][download-url]
[![npm][npm-image]][npm-url]
[![semantic][semantic-image]][semantic-url]

[npm-image]: https://img.shields.io/npm/v/@fatesigner/utils.svg?color=green
[npm-url]: https://npmjs.com/package/@fatesigner/utils
[travis-image]: https://travis-ci.com/fatesigner/utils.svg?token=i21P7stb8bZPNjZakvsi&color=success&branch=master
[travis-url]: https://travis-ci.com/fatesigner/utils
[codecov-image]: https://codecov.io/gh/fatesigner/utils/branch/master/graph/badge.svg?token=i5Q9N7m8v5
[codecov-url]: https://codecov.io/gh/fatesigner/utils
[david-image]: https://david-dm.org/fatesigner/utils.svg
[david-url]: https://david-dm.org/fatesigner/utils
[prettier-image]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?logo=prettier
[prettier-url]: https://github.com/prettier/prettier
[download-image]: https://img.shields.io/npm/dw/@fatesigner/utils.svg?style=flat-square
[download-url]: https://npmjs.com/package/@fatesigner/utils
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-green.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square
[semantic-url]: https://opensource.org/licenses/MIT

JavaScript工具库.

## 说明

- 此工具库是自己从事前端开发以来整理和完善的，里面有些函数可以用 [Underscore](https://underscorejs.org/) 和 [lodash](https://lodash.com/docs) 代替。
- 由 typescript 编写，并编译为一份 ESnext 和 [CommonJs](https://requirejs.org/docs/commonjs.html) 的代码。
所以如果引入到您的项目中使用，需搭建好 [babel](https://babeljs.io/docs/en/) 编译环境。
- 借助于 [tree shaking](https://webpack.docschina.org/guides/tree-shaking/) 可以不用担心导入多余的代码。

## 安装

```bash
npm i -S @fatesigner/utils
```

## 具体用法可查看 [文档](https://fatesigner.github.io/utils/)
```js
import { toDecimal } from '@fatesigner/utils';

let num = 120;
console.log(toDecimal(num, 2));
// 120.00

// 绑定事件：delegate
import { on } from '@fatesigner/utils/event';

on(document.body, 'scroll', null, (event) => {
  console.log(event.target);
});
```
npm package: @fatesigner/vue-lib
Description: vue组件库.
Author: Jeremy Tang
Latest version: 2.0.0

# vue-lib

[![npm][npm-image]][npm-url]
[![download][download-image]][download-url]
[![commitizen][commitizen-image]][commitizen-url]
[![prettier][prettier-image]][prettier-url]
[![semantic][semantic-image]][semantic-url]

[npm-image]: https://img.shields.io/npm/v/@fatesigner/vue-lib.svg?style=flat-square&logo=npm
[npm-url]: https://npmjs.com/package/@fatesigner/vue-lib
[prettier-image]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square&logo=prettier
[prettier-url]: https://github.com/prettier/prettier
[download-image]: https://img.shields.io/npm/dw/@fatesigner/vue-lib.svg?style=flat-square
[download-url]: https://npmjs.com/package/@fatesigner/vue-lib
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-green.svg?style=flat-square
[commitizen-url]: http://commitizen.github.io/cz-cli/
[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square&color=9cf
[semantic-url]: https://opensource.org/licenses/MIT

Vue组件库.

## 安装

```bash
# 预先安装 vue
npm i -S vue vue-property-decorator
npm i -S @fatesigner/vue-lib
```

## 使用
### 用于动态组件的自定义事件分发
```html
<component :is="comp" v-dynamic-events="{ events: events, listener: listener }" />
```

```ts
import Vue from 'vue';
import { DynamicEvents } from '@fatesigner/vue-lib/directives';

Vue.use(DynamicEvents);

export default {
  data() {
    return {
      comp: import('./component/Comp.vue'),
      // 监听指定事件
      events: ['changed', 'done']
    }
  },
  methods: {
    // 监听动态组件发出的事件
    listener(eventName: string, ...args: any[]) {
      console.log(`${eventName} was triggered.`, args);
    }
  }
};
```
npm package: @fatex-dao/sdk-extra
Description: 🛠 A specific SDK/toolkit for building applications on top of FATExDAO.
Latest version: 2.3.0

# FATEXDAO SDK Extra

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/FATEx-DAO/default-token-list/workflows/CI/badge.svg)](https://github.com/FATEx-DAO/default-token-list)
[![npm version](https://img.shields.io/npm/v/@fatex-dao/sdk-extra/latest.svg)](https://www.npmjs.com/package/@fatex-dao/sdk-extra/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@fatex-dao/sdk-extra/latest.svg)](https://bundlephobia.com/result?p=@fatex-dao/sdk-extra@latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/FATEx-DAO/default-token-list.git
```

Move into the fatex-dao-sdk-extra working directory

```sh
cd fatex-dao-sdk-extra/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```
npm package: @fatgy/eslint-config-ibk
Description: ESLint shareable config for private
Author: Shatmongkol Amaraveja
Latest version: 1.1.0

# eslint-config-ibk

> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for private projects

## Install

```sh
npm install --save-dev @fatgy/eslint-config-ibk
```

## Standalone Usage

Add some ESLint config to your package.json (or `.eslintrc`):

```json
{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": [
			"@fatgy/eslint-config-ibk"
		]
	}
}
```
npm package: @fatgy/is-error-code-equal
Description: Check error code from axios error response
Author: Shatmongkol Amaraveja
Latest version: 2.0.4

# is-error-code-equal

> Check error code from api.

## Install

```sh
npm install @fatgy/is-error-code-equal
```

## Usage

ex. api response
```json
{
	"status": {
		"code": 401,
		"message": "Can not process entity"
	},
	"error": {
		"code": 10000,
		"message": "Can not process entity",
		"errors": []
	}
}
```

```js
import {isErrorCodeEqual} from '@fatgy/is-error-code-equal';

isErrorCodeEqual(error, 10000);
//=> true

isErrorCodeEqual(error, 10001);
//=> false
```

## API

### isErrorCodeEqual(error, code)

#### error

Type: `AxiosError`

#### code

Type: `number`
npm package: @fatgy/use-navigation-lock
Description: Navigation lock for next.js
Author: Shatmongkol Amaraveja
Latest version: 2.0.0

# useNavigationLock

> Navigation lock hook for next.js

## Install

```sh
npm install @fatgy/use-navigation-lock
```

## Usage

```js
import {useNavigationLock} from '@fatgy/use-navigation-lock';

useNavigationLock(true);
//=> Show confirm dialog

useNavigationLock(false);
//=> Not show confirm dialog
```

## API

### useNavigationLock(isEnabled, warningText, onConfirm)

#### isEnabled

Type: `boolean` | `undefined`

Default: `false`

#### warningText

Type: `string` | `undefined`

Default: `Are you sure you want to leave this page? You have unsaved changes. Do you want to leave?`

#### onConfirm

Type: `function` | `undefined`
npm package: @fatherbrennan/api
Description: API by yours truly.
Author: fatherbrennan
Latest version: 1.1.1

# API

API by yours truly :tada:.

## APIs

- ### [IMDb](./src/imdb/README.md)

## Usage

**IMDb API example**

```typescript
import { Api } from '@fatherbrennan/api/dist/api';
import { TvData } from '@fatherbrennan/api/dist/imdb';

// Create a request to an API endpoint.
const request = Api.get().imdb().tv().search();

// URL request string. Can be used to pass to custom HTTP handler.
request.url;

// Send the request and save the response.
const response = await request.fetch();

// Handling the response.
const { data, isSuccess } = response;

if (isSuccess && data !== null) {
  // Handle expected response.
  // Print the first search item title.
  console.log(data[0][TvData.primaryTitle]);
}
```

## Development

### Directory structure

- `/` Global configuration and license files.
  - `.github/workflows` GitHub Actions workflows.
  - `.vscode/` Visual Studio Code workspace settings and configuration files.
  - `src/` Source files.
  - `src/` Source files.
    - `api/` Shared TypeScript, Bun and Node code.
      - `common/` Files to be included in NPM package.
    - `*/` Source files for each individual API.
  - `dist/` Build files for NPM.
  - `tmp/` Build files from scripts.

## License

Code and documentation found in the `master` branch is subject to an MIT license.

Data files found in the `get` branch are subject to their own license, which can be found in their respective directory in the `master` branch.
npm package: @fathippo/context-engine
Description: FatHippo context engine for OpenClaw - encrypted agent memory
Author: FatHippo
Latest version: 0.1.1

# @fathippo/context-engine

FatHippo Context Engine for OpenClaw — encrypted agent memory with semantic search, Dream Cycle synthesis, and tiered intelligence.

## Installation

```bash
openclaw plugins install @fathippo/context-engine
```

## Configuration

```yaml
# ~/.openclaw/config.yaml
plugins:
  slots:
    contextEngine: "fathippo-context-engine"
  entries:
    fathippo-context-engine:
      enabled: true
      config:
        apiKey: "${FATHIPPO_API_KEY}"
        # Optional settings
        injectCritical: true        # Auto-inject critical memories (default: true)
        injectLimit: 20             # Max memories per turn (default: 20)
        captureUserOnly: true       # Only capture user messages (default: true)
        dreamCycleOnCompact: true   # Run Dream Cycle on /compact (default: true)
```

## What It Does

Instead of bolting memory onto OpenClaw, this makes FatHippo the **entire context layer**:

| Hook | What Happens |
|------|-------------|
| **bootstrap** | Loads critical memories + recent context on session start |
| **ingest** | Captures user messages, filters noise, stores to FatHippo |
| **assemble** | Queries FatHippo, injects relevant memories per turn |
| **compact** | Runs Dream Cycle (synthesis, decay) instead of lossy compaction |
| **afterTurn** | Invalidates caches, triggers async processing |
| **prepareSubagentSpawn** | Scopes memories for spawned agents |
| **onSubagentEnded** | Absorbs learnings from completed subagents |

## Features

- **Encrypted at rest** — AES-256-GCM, per-user keys
- **Semantic search** — Vector + BM25 hybrid search
- **Tiered intelligence** — Critical/high/normal/low importance
- **Dream Cycle** — Automatic synthesis, decay, and cleanup
- **Cross-device** — Cloud-native, works across all your agents

## API Key

Get your API key at [fathippo.com](https://www.fathippo.com)

## Links

- [FatHippo Docs](https://www.fathippo.com/docs)
- [OpenClaw Plugins](https://docs.openclaw.ai/tools/plugin)
- [GitHub](https://github.com/jscianna/fathippo)
npm package: @fathippo/fathippo-context-engine
Description: FatHippo context engine for OpenClaw - encrypted agent memory
Author: FatHippo
Latest version: 0.1.9

# @fathippo/fathippo-context-engine

FatHippo Context Engine for OpenClaw.

## Install

Hosted:

```bash
npx @fathippo/connect openclaw
```

Local:

```bash
npx @fathippo/connect openclaw --local
```

The one-command installer installs the plugin, configures OpenClaw, and uses a browser-link login flow for hosted mode.

## Manual fallback

```bash
openclaw plugins install @fathippo/fathippo-context-engine
openclaw config set plugins.slots.contextEngine fathippo-context-engine
openclaw config set plugins.entries.fathippo-context-engine.config.mode hosted
openclaw config set plugins.entries.fathippo-context-engine.config.apiKey mem_xxx
openclaw config set plugins.entries.fathippo-context-engine.config.baseUrl https://fathippo.ai/api
openclaw gateway restart
```

## Configuration

```yaml
plugins:
  slots:
    contextEngine: "fathippo-context-engine"
  entries:
    fathippo-context-engine:
      enabled: true
      config:
        mode: hosted
        apiKey: "${FATHIPPO_API_KEY}"
        baseUrl: "https://fathippo.ai/api"
        namespace: "my-project"
        installationId: "oc_machine_01"
        injectCritical: true
        injectLimit: 20
        dreamCycleOnCompact: true
```

`captureUserOnly: true` is still supported as a legacy escape hatch, but full-turn capture is now the default.

## Runtime behavior

| Hook | Behavior |
| --- | --- |
| `bootstrap` | Starts a hosted FatHippo session or initializes local workspace memory |
| `assemble` | Builds memory context before every non-trivial reply |
| `afterTurn` | Records the completed exchange, stores durable memories, and captures learning signals |
| `compact` | Runs Dream Cycle in hosted mode when enabled |
| `prepareSubagentSpawn` | Reuses the same memory scope for spawned agents |
| `onSubagentEnded` | Best-effort closes hosted child sessions |

Hosted mode uses the runtime session APIs (`startSession`, `buildContext`, `recordTurn`, `endSession`) instead of direct one-off memory calls.

## Features

- Hosted mode with account-backed retrieval, cognition, and dashboard receipts
- Local mode with on-device memory and lightweight local workflow learning
- Per-turn context recall before replies
- Full-turn capture after replies
- Dream Cycle compaction in hosted mode

If you previously installed `@fathippo/context-engine`, reinstall from `@fathippo/fathippo-context-engine` so OpenClaw discovers the matching package name and plugin id cleanly.