open-index/open-npm huggingface dataset:
npm package: @opentj/solid
Description: ```bash pnpm install @opentj/solid ```
Author: 邱张华
Latest version: 0.0.5

# Solid Component for OpenTJ

## Usage
```bash
pnpm install @opentj/solid
```

## Install
```bash
pnpm install
```

## Build

```bash
pnpm build
```

## Dev 
```bash
pnpm dev
```


## Components
1. [ ] Button
2. [ ] Icon


## Reference
1. https://jivancic.com/posts/build-a-component-library.html

2. https://www.jianshu.com/p/84053189d826
npm package: @opentool-ts/sdk
Description: TypeScript SDK for the OpenTool MCP server — manage tools, auth, and API keys programmatically.
Latest version: 0.1.1

# @opentool-ts/sdk

TypeScript SDK for the OpenTool MCP server. Manage tools, auth, and API keys programmatically.

## Install

```bash
npm install @opentool-ts/sdk
```

## Quick Start

```ts
import { OpenTool } from '@opentool-ts/sdk'

const client = new OpenTool({
  baseUrl: 'http://localhost:3001',
  apiKey: 'ot_your_key_here',
})

// Check server health
const health = await client.health()

// List all available tools
const tools = await client.tools.list()

// List your connected tools
const connected = await client.tools.connected()

// Execute a tool
const result = await client.tools.execute('github.create_issue', {
  owner: 'user',
  repo: 'my-repo',
  title: 'Created via SDK',
  body: 'This issue was created programmatically.',
})
```

## Auth

```ts
// Sign up (auto-sets API key on this client)
const { user, apiKey } = await client.auth.signup({
  email: 'dev@example.com',
  password: 'my-password',
  name: 'Dev',
})

// Login
const { user, apiKey } = await client.auth.login({
  email: 'dev@example.com',
  password: 'my-password',
})

// Get OAuth URL for a provider
const url = await client.auth.getConnectUrl('github')
// → User visits this URL to authorize

// Disconnect a provider
await client.auth.disconnect('github')
```

## API Keys

```ts
// List active keys
const keys = await client.keys.list()

// Create a new key (raw key returned once)
const { key, prefix, name } = await client.keys.create({ name: 'CI pipeline' })

// Revoke a key
await client.keys.revoke(keyId)
```

## User Profile

```ts
// Get your profile
const me = await client.users.me()

// Update profile
await client.users.updateMe({ name: 'New Name' })
```

## Tools

```ts
// All tools in the registry
const all = await client.tools.list()

// Tools you've connected
const mine = await client.tools.connected()

// Tools for a specific provider
const githubTools = await client.tools.byProvider('github')

// Execute a tool via MCP
const result = await client.tools.execute('slack.send_message', {
  channel: '#general',
  text: 'Hello from the SDK',
})
```

## Error Handling

```ts
import { OpenTool, OpenToolError, AuthenticationError } from '@opentool-ts/sdk'

try {
  await client.tools.connected()
} catch (err) {
  if (err instanceof AuthenticationError) {
    // API key is invalid or expired
  } else if (err instanceof OpenToolError) {
    console.error(err.status, err.body)
  }
}
```

## Configuration

```ts
const client = new OpenTool({
  baseUrl: 'http://localhost:3001',  // Required
  apiKey: 'ot_xxx',                  // Optional — set later with client.setApiKey()
  timeout: 30000,                    // Request timeout in ms (default: 30s)
  fetch: customFetch,                // Custom fetch implementation
})
```

## License

MIT
npm package: @opentoys/gitchart
Description: 'git statistics by commit show echarts'
Author: alonelucky
Latest version: 1.0.4

# gitchart

![gitchart show by github](images/charts.png)

# How to use

```bash
gitchart help info:
  gitchart alias gitstat.
 
  run as: gitchart command
 
    -h,--help      ouput help info.
    --start        The earliest time to start the analysis.(default first git commit date)
    --end          Deadline for analysis.(default today)
    --exclude      Deadline for analysis.(default null)
    --include      Deadline for analysis.(default null)
    --cache        Analyze the cache of the file, not when the file exists.(default gitdate.json)
```

# example

```bash
$> gitchart
{}
Statistics...
service staring...
server is running at port: http://127.0.0.1:64975?start=&end=&hidden=
```

Run as options

```bash
$> gitchart -start=2023-01-01 --end=2023-10-31 exclude json       
{ start: '2023-01-01', end: '2023-10-31', exclude: 'json' }
service staring...
server is running at port: http://127.0.0.1:65496?start=&end=&hidden=
```

Save as file.
```bash
$> gitchart -start=2023-01-01 --end=2023-10-31 exclude json --output index.html  
{
  start: '2023-01-01',
  end: '2023-10-31',
  exclude: 'json',
  output: 'index.html'
}
file writen success. at $pwd/index.html
```
npm package: @opentranslate/baidu
Description: Baidu translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/baidu

[![npm-version](https://img.shields.io/npm/v/@opentranslate/baidu.svg)](https://www.npmjs.com/package/@opentranslate/baidu)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Baidu translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/baidu
```

NPM

```
npm i @opentranslate/baidu
```

## Usage

```
import Baidu from '@opentranslate/baidu'

//Please refer to http://api.fanyi.baidu.com/api/trans/product/prodinfo
const baidu = new Baidu({
    config: {
        appid: "",
        key: ""
    }
})

baidu.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/baidu-domain
Description: Baidu domain translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/baidu-domain

[![npm-version](https://img.shields.io/npm/v/@opentranslate/baidu-domain.svg)](https://www.npmjs.com/package/@opentranslate/baidu-domain)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Baidu-domain translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/baidu-domain
```

NPM

```
npm i @opentranslate/baidu-domain
```

## Usage

```
import BaiduDomain from '@opentranslate/baidu-domain'

//please refer to https://api.fanyi.baidu.com/doc/22 for more details
const baiduDomain = new BaiduDomain({
    config: {
      domain: "medicine", // select from ["medicine", "electronics", "mechanics"]
      key: process.env.KEY as string,
      appid: process.env.APPID as string
    }
  });

baiduDomain.translate("肌萎缩侧索硬化症","zh-CN","en").then(console.log)

```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/caiyun
Description: Caiyun translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/caiyun

[![npm-version](https://img.shields.io/npm/v/@opentranslate/caiyun.svg)](https://www.npmjs.com/package/@opentranslate/caiyun)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

caiyun translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/caiyun
```

NPM

```
npm i @opentranslate/caiyun
```

## Usage

```
import Caiyun from '@opentranslate/caiyun'

const caiyun = new Caiyun({
    config: {
      //please refer to https://fanyi.caiyunapp.com/#/api
      token: ""
    }
  });

caiyun.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/deepl
Description: DeepL translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/deepl

[![npm-version](https://img.shields.io/npm/v/@opentranslate/deepl.svg)](https://www.npmjs.com/package/@opentranslate/deepl)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Deepl translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/deepl
```

NPM

```
npm i @opentranslate/deepl
```

## Usage

```
import Deepl from '@opentranslate/deepl'

const deepl = new Deepl({
    config: {
      //please refer to https://www.deepl.com/pro.html
      auth_key: ""
    }
  })

deepl.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/google
Description: Google translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/google

[![npm-version](https://img.shields.io/npm/v/@opentranslate/google.svg)](https://www.npmjs.com/package/@opentranslate/google)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Google translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/google
```

NPM

```
npm i @opentranslate/google
```

## Usage

```
import Google from '@opentranslate/google'

const google = new Google({
  order: ['com', 'cn'],
  // search all at the same time
  concurrent: true,
  // googleapi as fallback
  apiAsFallback: true
})

google.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/languages
Description: Shared language identifiers and locales for OpenTranslate projects.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/languages

[![npm-version](https://img.shields.io/npm/v/@opentranslate/languages.svg)](https://www.npmjs.com/package/@opentranslate/languages)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Shared language identifiers and locales for [OpenTranslate](https://github.com/OpenTranslate) projects.

## Usage

### Install

Yarn

```
yarn add @opentranslate/languages
```

NPM

```
npm i @opentranslate/languages
```

### Import

CommonJS

```js
const { languages } = require("@opentranslate/languages");
const en = require("@opentranslate/languages/locales/en");
const zhCN = require("@opentranslate/languages/locales/zh-CN");
const zhTW = require("@opentranslate/languages/locales/zh-TW");
```

TypeScript (with `resolveJsonModule` enabled)

```ts
import { languages } from "@opentranslate/languages";
import en from "@opentranslate/languages/locales/en.json";
import zhCN from "@opentranslate/languages/locales/zh-CN.json";
import zhTW from "@opentranslate/languages/locales/zh-TW.json";
```

### API

```ts
const langCode = languages[0];
console.log(langCode); //af
console.log(zhCN[langCode]); //南非荷兰语
console.log(en["en"]); //English
```
npm package: @opentranslate/sogou
Description: Sogou translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/sogou

[![npm-version](https://img.shields.io/npm/v/@opentranslate/sogou.svg)](https://www.npmjs.com/package/@opentranslate/sogou)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Sogou translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/sogou
```

NPM

```
npm i @opentranslate/sogou
```

## Usage

```
import Sogou from '@opentranslate/sogou'
//please refer to https://deepi.sogou.com/?from=translatepc
const sogou = new Sogou(
    config: {
      pid: "your pid",
      key: "your key"
    }
)

sogou.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/tencent
Description: Tencent translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/tencent

[![npm-version](https://img.shields.io/npm/v/@opentranslate/tencent.svg)](https://www.npmjs.com/package/@opentranslate/tencent)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Tencent translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/tencent
```

NPM

```
npm i @opentranslate/tencent
```

## Usage

```
import Tencent from '@opentranslate/tencent'

const tencent = new Tencent({
  config: {
    //please refer to https://cloud.tencent.com/document/api/213/30654
    secretId: "",
    secretKey: ""
  }
})

tencent.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate/translator
Description: Common APIs of translator in OpenTranslate Standard.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/translator

[![npm-version](https://img.shields.io/npm/v/@opentranslate/translator.svg)](https://www.npmjs.com/package/@opentranslate/translator)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-v1-brightgreen)](https://github.com/OpenTranslate)

Common APIs of translator in [OpenTranslate](https://github.com/OpenTranslate) Standard.

## Usage

### Install

```
npm i @opentranslate/translator
```
npm package: @opentranslate/youdao
Description: Youdao translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.2

# @opentranslate/youdao

[![npm-version](https://img.shields.io/npm/v/@opentranslate/youdao.svg)](https://www.npmjs.com/package/@opentranslate/youdao)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Youdao translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/youdao
```

NPM

```
npm i @opentranslate/youdao
```

## Usage

```
import Youdao from '@opentranslate/youdao'
//please visit http://ai.youdao.com/gw.s for more information.
const youdao = new Youdao(config: {
    appKey: "your appKey",
    key: "your Key"
})

youdao.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/aliyun
Description: Aliyun translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/aliyun

[![npm-version](https://img.shields.io/npm/v/@opentranslate/aliyun.svg)](https://www.npmjs.com/package/@opentranslate/aliyun)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Aliyun translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/aliyun
```

NPM

```
npm i @opentranslate/aliyun
```

## Usage

```
import Aliyun from '@opentranslate/aliyun'

//Please refer to https://help.aliyun.com/zh/machine-translation/developer-reference/api-reference-machine-translation-universal-version-call-guide?spm=5176.15007269.console-base_help.dexternal.1afe5d78DUvEPh
const aliyun = new Aliyun({
    config: {
        appid: "",
        key: ""
    }
})

aliyun.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/azure
Description: Azure translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/caiyun

[![npm-version](https://img.shields.io/npm/v/@opentranslate/caiyun.svg)](https://www.npmjs.com/package/@opentranslate/caiyun)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

caiyun translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/caiyun
```

NPM

```
npm i @opentranslate/caiyun
```

## Usage

```
import Caiyun from '@opentranslate/caiyun'

const caiyun = new Caiyun({
    config: {
      //please refer to https://fanyi.caiyunapp.com/#/api
      token: ""
    }
  });

caiyun.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/baidu
Description: Baidu translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/baidu

[![npm-version](https://img.shields.io/npm/v/@opentranslate/baidu.svg)](https://www.npmjs.com/package/@opentranslate/baidu)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Baidu translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/baidu
```

NPM

```
npm i @opentranslate/baidu
```

## Usage

```
import Baidu from '@opentranslate/baidu'

//Please refer to http://api.fanyi.baidu.com/api/trans/product/prodinfo
const baidu = new Baidu({
    config: {
        appid: "",
        key: ""
    }
})

baidu.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/baidu-domain
Description: Baidu domain translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.8

# @opentranslate/baidu-domain

[![npm-version](https://img.shields.io/npm/v/@opentranslate/baidu-domain.svg)](https://www.npmjs.com/package/@opentranslate/baidu-domain)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Baidu-domain translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/baidu-domain
```

NPM

```
npm i @opentranslate/baidu-domain
```

## Usage

```
import BaiduDomain from '@opentranslate/baidu-domain'

//please refer to https://api.fanyi.baidu.com/doc/22 for more details
const baiduDomain = new BaiduDomain({
    config: {
      domain: "medicine", // select from ["medicine", "electronics", "mechanics"]
      key: process.env.KEY as string,
      appid: process.env.APPID as string
    }
  });

baiduDomain.translate("肌萎缩侧索硬化症","zh-CN","en").then(console.log)

```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/caiyun
Description: Caiyun translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/caiyun

[![npm-version](https://img.shields.io/npm/v/@opentranslate/caiyun.svg)](https://www.npmjs.com/package/@opentranslate/caiyun)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

caiyun translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/caiyun
```

NPM

```
npm i @opentranslate/caiyun
```

## Usage

```
import Caiyun from '@opentranslate/caiyun'

const caiyun = new Caiyun({
    config: {
      //please refer to https://fanyi.caiyunapp.com/#/api
      token: ""
    }
  });

caiyun.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/deepl
Description: DeepL translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.43

# @opentranslate/deepl

[![npm-version](https://img.shields.io/npm/v/@opentranslate/deepl.svg)](https://www.npmjs.com/package/@opentranslate/deepl)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Deepl translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/deepl
```

NPM

```
npm i @opentranslate/deepl
```

## Usage

```
import Deepl from '@opentranslate/deepl'

const deepl = new Deepl({
    config: {
      //please refer to https://www.deepl.com/pro.html
      auth_key: ""
    }
  })

deepl.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/google
Description: Google translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.47

# @opentranslate/google

[![npm-version](https://img.shields.io/npm/v/@opentranslate/google.svg)](https://www.npmjs.com/package/@opentranslate/google)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Google translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/google
```

NPM

```
npm i @opentranslate/google
```

## Usage

```
import Google from '@opentranslate/google'

const google = new Google({
  order: ['com', 'cn'],
  // search all at the same time
  concurrent: true,
  // googleapi as fallback
  apiAsFallback: true
})

google.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/languages
Description: Shared language identifiers and locales for OpenTranslate projects.
Author: OpenTranslate
Latest version: 1.4.3

# @opentranslate2/languages

[![npm-version](https://img.shields.io/npm/v/@opentranslate2/languages.svg)](https://www.npmjs.com/package/@opentranslate2/languages)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Shared language identifiers and locales for [OpenTranslate](https://github.com/OpenTranslate) projects.

## Usage

### Install

Yarn

```
yarn add @opentranslate2/languages
```

NPM

```
npm i @opentranslate2/languages
```

### Import

CommonJS

```js
const { languages } = require("@opentranslate2/languages");
const en = require("@opentranslate2/languages/locales/en");
const zhCN = require("@opentranslate2/languages/locales/zh-CN");
const zhTW = require("@opentranslate2/languages/locales/zh-TW");
```

TypeScript (with `resolveJsonModule` enabled)

```ts
import { languages } from "@opentranslate2/languages";
import en from "@opentranslate2/languages/locales/en.json";
import zhCN from "@opentranslate2/languages/locales/zh-CN.json";
import zhTW from "@opentranslate2/languages/locales/zh-TW.json";
```

### API

```ts
const langCode = languages[0];
console.log(langCode); //af
console.log(zhCN[langCode]); //南非荷兰语
console.log(en["en"]); //English
```
npm package: @opentranslate2/niu
Description: Niu translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/niu

[![npm-version](https://img.shields.io/npm/v/@opentranslate/niu.svg)](https://www.npmjs.com/package/@opentranslate/niu)

Niu translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

### Yarn

```
yarn add @opentranslate/niu
```

### NPM

```
npm i @opentranslate/niu
```

## Usage

```typescript
import Niu from '@opentranslate/niu'

const niu = new Niu({
  token: 'YOUR_TOKEN'
  //please refer to https://fanyi.niuapp.com/#/api
})

niu.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/sogou
Description: Sogou translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/sogou

[![npm-version](https://img.shields.io/npm/v/@opentranslate/sogou.svg)](https://www.npmjs.com/package/@opentranslate/sogou)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Sogou translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/sogou
```

NPM

```
npm i @opentranslate/sogou
```

## Usage

```
import Sogou from '@opentranslate/sogou'
//please refer to https://deepi.sogou.com/?from=translatepc
const sogou = new Sogou(
    config: {
      pid: "your pid",
      key: "your key"
    }
)

sogou.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/tencent
Description: Tencent translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/tencent

[![npm-version](https://img.shields.io/npm/v/@opentranslate/tencent.svg)](https://www.npmjs.com/package/@opentranslate/tencent)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Tencent translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/tencent
```

NPM

```
npm i @opentranslate/tencent
```

## Usage

```
import Tencent from '@opentranslate/tencent'

const tencent = new Tencent({
  config: {
    //please refer to https://cloud.tencent.com/document/api/213/30654
    secretId: "",
    secretKey: ""
  }
})

tencent.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/tencent-smart
Description: Tencent smart translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/tencent

[![npm-version](https://img.shields.io/npm/v/@opentranslate/tencent.svg)](https://www.npmjs.com/package/@opentranslate/tencent)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Tencent translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/tencent
```

NPM

```
npm i @opentranslate/tencent
```

## Usage

```
import Tencent from '@opentranslate/tencent'

const tencent = new Tencent({
  config: {
    //please refer to https://cloud.tencent.com/document/api/213/30654
    secretId: "",
    secretKey: ""
  }
})

tencent.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/translator
Description: Common APIs of translator in OpenTranslate Standard.
Author: OpenTranslate
Latest version: 1.4.13

# @opentranslate2/translator

[![npm-version](https://img.shields.io/npm/v/@opentranslate2/translator.svg)](https://www.npmjs.com/package/@opentranslate2/translator)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-v1-brightgreen)](https://github.com/OpenTranslate)

Common APIs of translator in [OpenTranslate](https://github.com/OpenTranslate) Standard.

## Usage

### Install

```
npm i @opentranslate2/translator
```
npm package: @opentranslate2/volc
Description: Volc translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/aliyun

[![npm-version](https://img.shields.io/npm/v/@opentranslate/aliyun.svg)](https://www.npmjs.com/package/@opentranslate/aliyun)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Aliyun translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/aliyun
```

NPM

```
npm i @opentranslate/aliyun
```

## Usage

```
import Aliyun from '@opentranslate/aliyun'

//Please refer to https://help.aliyun.com/zh/machine-translation/developer-reference/api-reference-machine-translation-universal-version-call-guide?spm=5176.15007269.console-base_help.dexternal.1afe5d78DUvEPh
const aliyun = new Aliyun({
    config: {
        appid: "",
        key: ""
    }
})

aliyun.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/yandex
Description: Yandex translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/baidu

[![npm-version](https://img.shields.io/npm/v/@opentranslate/baidu.svg)](https://www.npmjs.com/package/@opentranslate/baidu)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Baidu translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/baidu
```

NPM

```
npm i @opentranslate/baidu
```

## Usage

```
import Baidu from '@opentranslate/baidu'

//Please refer to http://api.fanyi.baidu.com/api/trans/product/prodinfo
const baidu = new Baidu({
    config: {
        appid: "",
        key: ""
    }
})

baidu.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentranslate2/youdao
Description: Youdao translator with OpenTranslate API.
Author: OpenTranslate
Latest version: 1.4.42

# @opentranslate/youdao

[![npm-version](https://img.shields.io/npm/v/@opentranslate/youdao.svg)](https://www.npmjs.com/package/@opentranslate/youdao)
[![OpenTranslate](https://img.shields.io/badge/OpenTranslate-Compatible-brightgreen)](https://github.com/OpenTranslate)

Youdao translator with [OpenTranslate](https://github.com/OpenTranslate) API.

## Installation

Yarn

```
yarn add @opentranslate/youdao
```

NPM

```
npm i @opentranslate/youdao
```

## Usage

```
import Youdao from '@opentranslate/youdao'
//please visit http://ai.youdao.com/gw.s for more information.
const youdao = new Youdao(config: {
    appKey: "your appKey",
    key: "your Key"
})

youdao.translate('text').then(console.log)
```

## API

See [translator](https://github.com/OpenTranslate/OpenTranslate/blob/master/packages/translator/README.md) for more details.

## Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.
npm package: @opentridentlayer/mcp-server
Description: MCP server for OpenTrident game - AI agent coordination on Base
Author: OpenTrident
Latest version: 1.0.0

# OpenTrident MCP Server

Model Context Protocol server for interacting with the OpenTrident game on Base.

## Installation

```bash
cd mcp-server
npm install
npm run build
```

## Configuration

Set the following environment variables:

```bash
export PRIVATE_KEY="0x..."  # Your wallet private key
export RPC_URL="https://mainnet.base.org"  # Optional, defaults to Base mainnet
```

## Usage with Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "opentrident": {
      "command": "node",
      "args": ["/path/to/mcp-server/dist/index.js"],
      "env": {
        "PRIVATE_KEY": "0x..."
      }
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `register` | Register as an agent in the game |
| `claimFaucet` | Claim 1 free TRIDENT (one-time) |
| `deposit` | Stake TRIDENT tokens as anchor |
| `withdraw` | Withdraw anchor (resets depth!) |
| `commit` | Solve puzzle and commit to DIVE or SURFACE |
| `reveal` | Reveal your committed decision |
| `purchasePing` | Buy sonar intel (levels 1-3) |
| `settle` | Trigger epoch settlement |
| `claimDiveCharge` | Claim depth increase from diving |
| `solvePuzzle` | Solve PoW puzzle only |

## Available Resources

| URI | Description |
|-----|-------------|
| `trident://status` | Current game state |
| `trident://agent/{address}` | Agent info |
| `trident://epoch/{number}` | Epoch details |
| `trident://docs` | Full game documentation |

## Development

```bash
# Watch mode
npm run dev

# Run tests
npm test

# Integration tests (requires Anvil fork)
anvil --fork-url https://mainnet.base.org --port 8545
npm run test:integration
```
npm package: @opentripplanner/core-utils
Description: Core functionality that is shared among numerous UI components
Author: Evan Siroky
Latest version: 16.0.2

Includes various utility functions to assist with common operations dealing with OpenTripPlanner data.

This package depends on [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat), which is not supported by older browsers or node versions. [As can be seen here](https://caniuse.com/?search=Intl.DateTimeFormat), support is fairly significant across major browsers. Should older browsers need to be targeted, a polyfill can be added. Such a polyfill is available [here](https://formatjs.io/docs/polyfills/intl-datetimeformat/).

This package depends on the [date-fns library](https://date-fns.org), which relies on Node version 13 and above. Should this library be used for **server side rendering**, Node version 13 or above must be used.

## Usage

```

TBD
```
npm package: @opentripplanner/transit-vehicle-overlay
Description: Realtime Transit Vehicles Component
Author: Frank Purcell
Latest version: 7.1.0

## WHAT:

Presentational React Components based on react-map-gl and maplibre-gl used to build an interactive vehicle map .
This component uses functional components and hooks (no more class components).

### CURRENTLY:

This package is being re-built from the ground-up to instead generate and render geojson from realtime transit data. Some features (and most components) have initially been removed, but they will be restored in future.

## HOW:

There is a type format for RT vehicle data in OTP-UI:
https://github.com/opentripplanner/otp-ui/blob/master/packages/core-utils/src/types.js#L54

This format was derived in this project to accord with a companion web service that delivers
realtime vehicle information information, based on GTFS-Realtime data
(https://github.com/OpenTransitTools/gtfsdb_realtime/blob/master/ott/gtfsdb_realtime/model/response/vehicle_list.py).

Other realtime vehicle data may be used with this layer. For example, there is demo code within the component that
shows converting another service response format (https://developer.trimet.org/ws_docs/vehicle_locations_ws.shtml)
to work with this layer.

### CURRENTLY:

Only input in the form of https://github.com/opentripplanner/otp-ui/blob/master/packages/types/src/index.ts#L90 is supported.

## NOTES:

- The use of hooks was a good thing, but there's a bit of resulting redirection (HL functions, etc...)
  in the component lib (and interface) which obfuscates things a bit ... apologies in advance.
- 2 very useful utilities for converting .svg to React svg .js files:
  - https://jakearchibald.github.io/svgomg -- .svg optimizer
  - https://react-svgr.com/playground -- good .svg => .npx converter

## TODO:

1.  more / better unit tests
npm package: @opentripplanner/vehicle-rental-overlay
Description: A map overlay to show vehicle rentals from a specific company
Author: Evan Siroky
Latest version: 6.0.1

# Vehicle Rental Overlay

## Upgrade to OTP2 types

Version 5.0.1 is the final version to support OTP1 types for the `stations` prop of `VehicleRentalOverlay`. Starting with version 6.0.0, the `stations` prop will be replaced with `entities`, with a type of `VehicleRentalStation[]`. This updated type can be found in the `@opentripplanner/types/otp2` package.
npm package: @opentripplanner/zoom-based-markers
Description: A component that renders objects differently based on a zoom level.
Author: Binh Dam
Latest version: 4.0.2

## Usage

Place a `ZoomBasedMarkers` component inside a react-leaflet `FeatureGroup`, `Map` or an OTP-UI's `BaseMap`
to render `entities` with different `symbols` depending on the `zoom` level.
Example using a `FeatureGroup`:

```jsx
import { CircleMarker } from "react-leaflet";

const entities = [
  { id: 1, lat: 23.45, lon: 67.89 },
  { id: 2, lat: 23.46, lon: 67.88 }
];

const MySymbol = ({ entity }) => (
  <CircleMarker
    center={[entity.lat, entity.lon]}
    fillColor="#00FF00"
    radius={30}
  />
);

const symbols = [{
  minZoom: 10,
  symbol: MySymbol
}];

...

<FeatureGroup>
  <ZoomBasedMarkers
    entities={entities}
    symbols={symbols}
    zoom={zoom} // obtain zoom from the map's zoom.
  />
</FeatureGroup>
```

For other examples, including rendering symbols for different types of entities (e.g. bus vs. trains),
or more advanced handling of symbols, please refer to the examples in the component Storybook.