open-index/open-npm huggingface dataset:
npm package: @rfy-strategy-vaults/vaults-sdk
Description: TypeScript SDK for the RFY Strategy Vaults API
Latest version: 0.1.0

# @rfy-strategy-vaults/vaults-sdk

TypeScript SDK for the RFY Strategy Vaults API. Zero dependencies — uses native `fetch`.

## Install

```bash
npm install @rfy-strategy-vaults/vaults-sdk
# or
pnpm add @rfy-strategy-vaults/vaults-sdk
```

## Quick Start

```ts
import { VaultsClient } from "@rfy-strategy-vaults/vaults-sdk";

const client = new VaultsClient({
	baseUrl: "https://your-vaults-api.example.com",
	chainId: 42161, // optional default chain (Arbitrum)
});

// Get all vaults
const { vaults } = await client.getVaultsSummary();
console.log(vaults.map((v) => `${v.name}: TVL $${v.tvlUsd}`));

// Get vault detail
const detail = await client.getVaultDetail(
	"0x5cbe2cde999d80f9699000bebc07f1d04f2b1dc0",
	1776 // override chain per-call
);
console.log(detail.epochMetrics);

// Get user positions (omit chainId to query all chains)
const positions = await client.getUserPositions("0xUserWalletAddress");
console.log(`Total PnL: $${positions.totalPnlUsd}`);
```

## API

### `new VaultsClient(config)`

| Option    | Type                    | Required | Description                                          |
| --------- | ----------------------- | -------- | ---------------------------------------------------- |
| `baseUrl` | `string`                | yes      | Vaults API base URL                                  |
| `chainId` | `1776 \| 3637 \| 42161` | no       | Default chain ID for calls that require one          |
| `fetch`   | `typeof fetch`          | no       | Custom fetch implementation (e.g. for SSR/Node < 18) |

### Methods

| Method                                    | Returns                 | Description                           |
| ----------------------------------------- | ----------------------- | ------------------------------------- |
| `getVaultsSummary()`                      | `VaultsSummaryResponse` | All vaults with display-ready metrics |
| `getVaultDetail(address, chainId?)`       | `VaultDetailResponse`   | Full vault detail with epoch metrics  |
| `getUserPositions(userAddress, chainId?)` | `UserPositionsResponse` | User positions with PnL and points    |

### Error Handling

```ts
import { VaultsSDKError } from "@rfy-strategy-vaults/vaults-sdk";

try {
	const detail = await client.getVaultDetail("0x...", 42161);
} catch (err) {
	if (err instanceof VaultsSDKError) {
		console.error(err.status, err.body);
	}
}
```

## Types

All API response types are exported for use in your application:

```ts
import type {
	VaultSummaryItem,
	VaultDetailResponse,
	UserPositionItem,
	ChartDataPoint,
	EpochPerformanceData,
	EpochStatus,
} from "@rfy-strategy-vaults/vaults-sdk";
```

## Supported Chains

| Chain ID | Network   |
| -------- | --------- |
| `1776`   | Injective |
| `3637`   | Botanix   |
| `42161`  | Arbitrum  |

## Build

```bash
cd sdk
pnpm install
pnpm build
```

## Publish

```bash
cd sdk
pnpm publish --access public
```
npm package: @rg-3/rstl.js
Description: rstl.js is a **R**eally **S**imple **T**emplate **L**anguage implemented as a simple function.
Author: rg
Latest version: 2.4.0

# rstl.js

**Table of contents**

1. <a href='#introduction'>Introduction</a>
2. <a href='#examples'>Examples</a>
3. <a href='#install'>Install</a>
4. <a href='#license'>License </a>

## <a id='#introduction'>Introduction</a>

rstl.js is a **R**eally **S**imple **T**emplate **L**anguage implemented 
as a simple function.

## <a id='examples'>Examples</a>

**#1**

This example replaces `Hello, {{planet}}` with `Hello, Earth` by 
substituting the variable name with the `Earth` value.

```javascript
import rstl from 'rstl.js';
rstl('Hello, {{planet}}', {planet: 'Earth'}); // => "Hello, Earth"
```

**#2**

It's possible for a function to be passed as a variable's value. It will 
be called by rstl and its return value inserted in place of the variable 
name:

```javascript
import rstl from 'rstl.js';
rstl('Hello, {{planet}}', {planet: () => 'Earth'}); // => "Hello, Earth"
```

**#3**

By default rstl will escape HTML entities from a variable's value, but it can 
be disabled by providing the `escapeHTML` option: 

```javascript
import rstl from 'rstl.js';
rstl('Hello, {{planet}}', {planet: '<b>Earth</b>'}, {escapeHTML: false}); // => "Hello, <b>Earth</b>"
```

## Limitations

A variable name can use the characters a-z, A-Z, and 0-9. If other characters are 
used an error will be thrown.

## <a id='install'>Install</a>

__NPM__

If you're in an NPM environment there's an NPM package to use.  
The package should be required or imported as `@rg-3/rstl.js`.

    # npm users
    $ npm i --save @rg-3/rstl.js

    # yarn users
    $ yarn add @rg-3/rstl.js

__Old school method__

If you're in a browser environment that's not using NPM, save
[dist/rstl.min.js](https://github.com/rg-3/rstl.js/blob/master/dist/rstl.min.js)
to your project and link to it from a `<script>` tag. It has been trans-piled
to ES5, and adds `window.rstl`.


## <a id='license'>License</a>

MIT license. See [./LICENSE.txt](./LICENSE.txt).
npm package: @rg0720/babel-import-console
Description: a babel plugin to avoid add label for console function
Author: xhh
Latest version: 0.0.2

# babel-plugin-console

实现自动添加日志标识

```js
console.log(a);  => console.log('a', a);
console.log(b);  => console.log('a', 'b', a , b);
```

## 使用

```shell
yarn add -D @rg0720/babel-import-console
```

或

```shell
npm install @rg0720/babel-import-console --dev
```

在 babel 的配置文件的 plugins 节点中添加如下内容

```js
"module:@rg0720/babel-import-console";
```
npm package: @rg0720/cli
Description: a cli tools for rg group
Author: xhh
Latest version: 0.0.1

# rgm-cli

## 常用库

inquirer、enquirer、prompts：可以处理复杂的用户输入，完成命令行输入交互。

chalk、kleur：使终端可以输出彩色信息文案。

ora：可以让命令行出现好看的 Spinners。

boxen：可以在命令行中画出 Boxes 区块。

listr：可以在命令行中画出进度列表。

meow、arg：可以进行基础的命令行参数解析。

commander、yargs：可以进行更加复杂的命令行参数解析。

## 命令支持：

在解析处理命令行输入之前，我们需要设计命令行支持的几个选项，如下。

[template]：支持默认的几种模板类型，用户可以通过 select 进行选择。

--git：等同于 git init 去创建一个新的 Git 项目。

--install：支持自动下载项目依赖。

--yes：跳过命令行交互，直接使用默认配置。
npm package: @rg0720/rgm
Description: a monitor sdk for rg
Author: Marvin
Latest version: 0.0.8

# rgm

监控 sdk

```shell
npm install @rg0720/rgm
// 或
yarn add @rg0720/rgm
```

使用方式

```js
import Monitor from "@rg0720/rgm";

const monitor = new Monitor("http://localhost:5555", "amdProject");
monitor.startListeners();
```