open-index/open-npm huggingface dataset:
npm package: @linhvovan/my-rn-draftjs-devlinh
Description: React Native render for draft.js and react-draft-wysiwyg but has some bugs, I fixed for my personal project
Author: aihehuo-devlinh
Latest version: 1.0.0
Deprecated: false

# React Native Draft.js Render

A React Native render for [Draft.js](http://draftjs.org/) model and works great with [react-draft-wysiwyg](https://github.com/jpuri/react-draft-wysiwyg).

## Getting Started
Install **React Native Draft.js Render** on your React Native project, using NPM or Yarn:

```sh
npm i -S react-native-draftjs-renderer
# or...
yarn add react-native-draftjs-renderer
```

### Using
Just import and insert your Draft.js model on RNDraftJSRender:

```js
import React from 'react';
import {
  AppRegistry,
} from 'react-native';

import RNDraftJSRender from 'react-native-draftjs-renderer';
import contentState from 'DraftJs/contentState';

const MyApp = () => (
  <RNDraftJSRender
    contentState={contentState}
  />
);

AppRegistry.registerComponent('MyApp', () => MyApp);
```

TODO:
* [Android] Justify text content support.

UPDATE:
## 1.1.1
* Minor style change.
## 1.1.0
* Remove dynamic Image height support, which will cause image blink.
## 1.0.1
* Fix the image auto height crop problem.
* Fix fontSize can not be over 14 bug.
* Increase the Text padding size to 2.
* Add dynamic Image height support.
npm package: @linhx/ckeditor5-emoji2
Description: Inserting an image as emoji to CKEditor 5.
Author: linhx
Latest version: 0.0.1

# @linhx/ckeditor5-emoji2

Inserting images as emoji.

![img](./ckeditor5-emoji.png)

## Usage

```shell
npm i @linhx/ckeditor5-emoji2
```

Read [Installing plugins](https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/installing-plugins.html)

Import css

```javascript
import '@linhx/ckeditor5-emoji2/theme/emoji2.css';
```

Add to toolbar

```javascript
    toolbar: {
        items: [
            ...
            'emoji2',
            ...
        ]
    },
```

Config plugin

```javascript
{
    emoji2: {
        class: string, // your css class of emoji, default is "em"
        defaultGroup: string, // the default group name, for selecting the default group tab when showing the grid
        groups: Map<string, Array<{key: string; name?: string; imgUrl: string}>>, // Map of groups of emojis, e.g. { people: [{ key: 'grinning', name: 'Grinning', imgUrl: '/url' }] }
    }
}
```

### Use my default emojis (the messenger emojis)

1. Import emoji groups:

    ```javascript
    import { emojiGroups } from '@linhx/ckeditor5-emoji2/src/emojisList'

    ```

    ```javascript
    {
        emoji2: {
            defaultGroup: 'p', // people
            groups: emojiGroups
        }
    }
    ```

2. Download `https://github.com/linhx/ckeditor5-emoji2/tree/master/sample/assets/emojis` and copy to your public assets folder, make sure emoji images can be accessed through `yourdomain.com/assets/emojis/<name>.png`

And this is the result
npm package: @linhx/nest-repo-mongodb
Description: Achieve abstraction in repository pattern (NestJs)
Author: linhx
Latest version: 1.0.0-beta.6

# nest-repo-mongodb

Achieve abstraction in repository pattern (NestJs)

## Install

```shell
npm i @nestjs/mongoose mongoose
npm i @linhx/nest-repo @linhx/nest-repo-mongodb
```

## Example

1. Import module

```typescript
import RepositoryMongodbModule from '@linhx/nest-repo-mongodb';
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { ProductModule } from './product/product.module';

@Module({
  imports: [
    MongooseModule.forRoot(process.env.MONGO_DB_URL, {
      dbName: process.env.MONGO_DB_NAME,
      replicaSet: process.env.MONGO_DB_REPLICA,
    }),
    RepositoryMongodbModule.forRoot(),
    ProductModule,
  ],
})
export class AppModule {}

```

2. Interface

```typescript
// product.repository.ts

import { Transaction, Repository } from '@linhx/nest-repo';
import { ObjectId } from 'mongoose';
import { Product } from './entities/product.entity';

export interface ProductRepository extends Repository<Product, ObjectId> {
  findByStore(trx: Transaction, storeId: string): Promise<Product[]>;
}

export const ProductRepositoryProviderName = 'ProductRepository';


```

3. Implementation

```typescript
// product.repository.impl.ts

import {
  ProductRepository,
  ProductRepositoryProviderName,
} from './product.repository';
import { Product, ProductDocument } from './entities/product.entity';
import { ClassProvider, Inject, Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import {
  MongoTransaction,
  DbMongo,
  RepositoryImpl,
} from '@linhx/nest-repo-mongodb';
import { DB_PROVIDER } from '@linhx/nest-repo';

@Injectable()
export class ProductRepositoryImpl
  extends RepositoryImpl<Product>
  implements ProductRepository
{
  constructor(
    @Inject(DB_PROVIDER) private readonly db: DbMongo,
    @InjectModel(Product.name) private productModel: Model<ProductDocument>,
  ) {
    super(db, productModel);
  }

  findByStore(trx: MongoTransaction, storeId: string): Promise<Product[]> {
    return this.findAll(trx, {
      storeId,
    });
  }
}

export const ProductRepositoryProvider: ClassProvider = {
  provide: ProductRepositoryProviderName,
  useClass: ProductRepositoryImpl,
};
```
npm package: @linjhon/v-charts
Description: Vue Echarts Components
Author: xiguaxigua
Latest version: 1.19.1

<p align="center">
<img src="./examples/favicon.ico" alt="mark text" width="100" height="100">
</p>

<h3 align="center">v-charts</h3>

<p align="center">
  <a href="https://travis-ci.org/ElemeFE/v-charts">
    <img src="https://travis-ci.org/ElemeFE/v-charts.svg?branch=master" alt="Build Status">
  </a>
  <a href="https://npmjs.org/package/v-charts">
    <img src="http://img.shields.io/npm/dm/v-charts.svg" alt="NPM downloads">
  </a>
  <a href="https://www.npmjs.org/package/v-charts">
    <img src="https://img.shields.io/npm/v/v-charts.svg" alt="Npm package">
  </a>
  <a>
    <img src="https://img.shields.io/badge/language-javascript-yellow.svg" alt="Language">
  </a>
  <a>
    <img src="https://img.shields.io/badge/license-MIT-000000.svg" alt="License">
  </a>
  <a href="https://gitter.im/ElemeFE/v-charts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">
    <img src="https://badges.gitter.im/ElemeFE/v-charts.svg" alt="Join the chat">
  </a>
</p>

<p align="center">
  <a href="https://v-charts.js.org/#/en/">
    Document
  </a>
  <span> | </span>
  <a href="https://codesandbox.io/s/z69myovqzx">
    Sample Project
  </a>
  <span> | </span>
  <a>
    English
  </a>
  <span> | </span>
  <a href="./README_CN.md">
    中文
  </a>
</p>

> Chart components based on Vue2.x and Echarts

Support Echarts 5.0

## Features
- **Uniform data format:** Use an uniform data format that both convient for frontend and backend, and also easy to create and edit.
- **Simplified configuration:** With simplified configuration items, complex requirements can be easily implemented.
- **Simple customization:** Provide a variety of custom Echarts way, you can easily set the chart options.

## Support

Modern browsers and Internet Explorer 10+, include pc and mobile browser.

## Install

```
npm i @linjhon/v-charts echarts -S
```

## Start

```html
<template>
  <div>
    <ve-line :data="chartData"></ve-line>
  </div>
</template>

<script>
import VeLine from 'v-charts/lib/line.common'
export default {
  components: { VeLine },
  data () {
    return {
      chartData: {
        columns: ['date', 'PV'],
        rows: [
          { 'date': '01-01', 'PV': 1231 },
          { 'date': '01-02', 'PV': 1223 },
          { 'date': '01-03', 'PV': 2123 },
          { 'date': '01-04', 'PV': 4123 },
          { 'date': '01-05', 'PV': 3123 },
          { 'date': '01-06', 'PV': 7123 }
        ]
      }
    }
  }
}
</script>
```

## Changelog

Detailed changes for each release are documented in the [release notes](https://github.com/ElemeFE/v-charts/releases) or [ChangeLog](./CHANGELOG.md).

## Contribution

Please make sure to read the [Contributing Guide](./CONTRIBUTING.md) before making a pull request.

## License

[MIT](http://opensource.org/licenses/MIT)
npm package: @linjiajian999/esbuild-plugin-import
Description: Modularly import plugin for esbuild.
Latest version: 1.0.2

# esbuild-plugin-import

Modularly import plugin for esbuild.

inspired by [ant-design/babel-plugin-import](https://github.com/ant-design/babel-plugin-import)

## Example

```ts
import { Button } from 'antd';

// 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 👇🏻 //

import 'antd/lib/button/style/css';
import Button from 'antd/lib/button';
```

## Usage

```shell
npm install @linjiajian999/esbuild-plugin-import
```

### config

### options

```ts
export interface EsbuildPluginImportOption {
  libraryName: string;
  /**
   * @default 'lib'
   */
  libraryDirectory?: string;
  style?:
    | 'css'
    | boolean
    | ((importName: string, importPath: string) => string);
  styleLibraryDirectory?: string;
  customStyleName?: string;
  /**
   * @default true
   */
  camel2DashComponentName?: boolean;
  camel2UnderlineComponentName?: boolean;
  /**
   * @default true
   */
  transformToDefaultImport?: boolean;
  ignoreImports?: (RegExp | string)[];
}
```

#### libraryName

todo

## Contributors

This project exists thanks to all the people who contribute.

<a href="https://github.com/linjiajian999/esbuild-plugin-import/graphs/contributors">contributors</a>
npm package: @linjian612/yq-api-doc-mcp
Description: MCP server for querying API documentation
Latest version: 1.2.6

# yq-api-doc-mcp 祐全接口文档 MCP 服务

一个用于查询 Swagger/OpenAPI 接口文档的 MCP (Model Context Protocol) 服务。

## 功能特性

### 核心功能

- **批量查询**：支持一次查询多个接口的文档信息
- **自动匹配**：自动匹配接口所属的接口域和服务
- **Markdown 格式**：返回格式化的 Markdown 文档

### 数据管理

- **文件缓存**：接口域缓存 + 服务文档缓存，持久化存储
- **缓存兜底**：请求失败时自动从缓存读取，保证服务可用性
- **缓存提示**：标注数据来源和缓存时间
- **并发控制**：支持配置最大并发请求数

### 高级功能

- **字段过滤**：支持 Knife4j 扩展字段 `x-includeParameters`/`x-ignoreParameters`
  - 白名单模式：只显示指定的字段
  - 黑名单模式：排除指定的字段
- **批量优化**：超过 5 个接口时自动简化输出

## 快速开始

### 配置

**添加服务配置：**

```json
{
  "mcpServers": {
    "yq-api-doc": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@linjian612/yq-api-doc-mcp@latest"
      ],
      "env": {
        "API_REGION_URL": "https://api.example.com/api/regions",
        "SWAGGER_AUTH_TOKEN": "Basic your_base64_encoded_token"
      }
    }
  }
}
```

**可选配置项：**

| 变量名 | 说明 | 默认值 |
|--------|------|--------|
| `HTTP_TIMEOUT` | HTTP 请求超时时间（毫秒） | `30000` |
| `MAX_CONCURRENT_REQUESTS` | 最大并发请求数 | `5` |

### 使用方法

在对话中直接使用，例如：

```text
请获取以下接口的文档：
https://api.example.com/v1/users
```

### 工具说明

**名称**：`get-api-doc`

**描述**：获取 Swagger/OpenAPI 接口文档。

**参数：**
- `apiUrls` (string[]): 一个或多个完整接口地址

**输出：**
- `success` (boolean): 整体查询是否成功
- `results` (array): 每个接口的详细结果
  - `apiUrl`: 接口地址
  - `success`: 单个接口是否成功
  - `markdown`: Markdown 格式的文档
  - `error`: 错误信息
  - `fromCache`: 是否来自缓存
  - `cachedTime`: 缓存时间
- `summary` (object): 汇总信息
  - `total`: 接口总数
  - `success`: 成功数量
  - `failed`: 失败数量
  - `fromCache`: 来自缓存的数量
- `markdown` (string): Markdown 格式的完整文档

**特性：**
- 只读操作
- 幂等操作（多次调用结果一致）

## 缓存说明

### 缓存提示

当接口请求失败但缓存有数据时，会显示：

```markdown
> 📦 请求最新文档数据失败，已从缓存读取历史数据
> 缓存时间：2025-03-06 14:30:00
```

### 缓存策略

- **接口域数据**：成功时更新缓存，失败时从缓存读取
- **业务接口**：总是请求最新数据，失败时从缓存读取并标注为兜底缓存
- **缓存无 TTL**：文件存在即有效

## 常见问题

### 如何生成 Basic Auth Token？

Token 格式为 `Basic <base64_encoded_token>`，可以使用以下方式生成：

```bash
echo -n "username:password" | base64
```

### 为什么显示"使用缓存的数据"？

这表示请求最新文档失败，系统从历史缓存中读取了数据。请检查：

- 网络连接是否正常
- 接口服务是否正常运行
- 鉴权 Token 是否有效

### 如何升级到最新版本？

重启 MCP 服务后 npx 会自动获取并使用最新版本，注意：MCP 配置时记得使用 `@latest` 标签。

### 批量查询超过 5 个接口时为什么输出简化了？

为了减少返回内容的长度，超过 5 个接口时会自动省略以下内容：

- 文档地址
- 请求/响应示例
- 响应状态
npm package: @linjie1999/apple-color-emoji-mac-10155
Description: Replace emoji in your strings with images from the Apple Color Emoji c
Author: Devon Govett
Latest version: 1.0.3

# apple-color-emoji

Extracts emoji images from the Apple Color Emoji font using [fontkit](http://github.com/devongovett/fontkit), 
and generates a regular expression that can be used to replace emoji in strings with `<img>` tags if 
the current browser or platform does not have native support.

## Installation

    npm install apple-color-emoji

## Example

```javascript
var emoji = require('apple-color-emoji');

// configure
emoji.imageDir // the directory where the images are located (on the server)
emoji.basePath // the base path or URL where images are located

// check for native support
if (emoji.nativeSupport) { /* ... */ }

// replace an emoji in a string with an <img>
// (only if there is no native support in the browser)
emoji.replace('this is an 🍎') //=> 'this is an <img class="emoji" src="/path/to/d83c-df4e.png" alt="🍎">'

// you can also get an image URL for a particular emoji character
emoji.getImage('😀') //=> "/path/to/d83d-de00.png"

// if you don't like <img> tags, you can use the regex directly
myString.replace(emoji.regex, function(char) {
  return '<span style="background-image: url(' + emoji.getImage(char) + ')"></span>';
});
```

## License

MIT