open-index/open-npm huggingface dataset:
npm package: @indigo-labs/indigo-sdk
Description: Indigo SDK for interacting with Indigo endpoints via lucid-evolution
Author: 3rd Eye Labs
Latest version: 0.2.41

# Indigo SDK

** Not ready for production yet **

`indigo-sdk` is a TypeScript SDK designed to interact with Indigo endpoints for managing CDPs (Collateralized Debt Positions), Staking Positions, and Stability Pool Accounts by integrating the [lucid-evolution](https://github.com/Anastasia-Labs/lucid-evolution) library.

## Installation

```bash
npm install @indigo-labs/indigo-sdk
```

## Development

### Prerequisites

- Node.js (version specified in `.nvmrc`)
- pnpm package manager

### Setup

1. Clone this repository
2. Install dependencies: `pnpm install`
3. Build the project: `pnpm run build`

### Available Scripts

- `pnpm run build` - Build the project using tsup
- `pnpm run lint` - Run ESLint to check code quality
- `pnpm run format` - Format code using Prettier
- `pnpm run format:check` - Check if code is properly formatted
- `pnpm run test` - Run tests using Vitest

### Code Quality

This project uses:

- **ESLint** for code linting and quality checks
- **Prettier** for code formatting
- **TypeScript** for type safety

### Running Tests

There are currently a few unit tests available for datums, hash checks, and interest calculations. Additionally, acceptance tests have been published for CDPs, Staking Positions, and Stability Pool accounts. These tests initialize the Indigo Protocol and positively test that the transaction building is working in an emulated Cardano Blockchain.

Instructions:

1. Clone this repository
2. Run `pnpm install`
3. Run `pnpm run test`

## Endpoints

- **Open CDP**
- **Close CDP**
- **Deposit Collateral to CDP**
- **Withdraw Collateral from CDP**
- **Mint against CDP**
- **Burn against CDP**
- **Pay CDP Interest**
- **Open a Staking Position**
- **Adjust a Staking Position**
- **Close a Staking Position**
- **Open a Stability Pool Account**
- **Adjust a Stability Pool Account**
- **Close a Stability Pool Account**
npm package: @indigo-reemploi/eslint-config-api
Description: Shared eslint config for API
Author: Antoine Torrini
Latest version: 0.2.0

# Config Eslint partagé pour les services Api

Comment utiliser :

```bash
yarn add @indigo-reemploi/eslint-config-api
```

```javascript
// eslint.config.mjs
import { eslint } from "@indigo-reemploi/eslint-config-api";

export default [
  ...eslint
];
```

And for prettier
```javascript
// prettier.config.mjs
import { prettier } from "@indigo-reemploi/eslint-config-api";

export default {
  ...prettier
};
```

## Pour développer la config en local

A chaque changement, aller dans le repo dans lequel on veut tester la config (par exemple circular-api) et lancer la commande :

```bash
# dans circular-api
yarn add ../eslint-config-api
yarn run format
```
npm package: @indigo-reemploi/eslint-config-client
Description: Shared eslint config for Client
Author: Antoine Torrini
Latest version: 1.1.0

# Config Eslint partagé pour les services Client

Comment utiliser :

```bash
yarn add @indigo-reemploi/eslint-config-client
```

```javascript
// eslint.config.mjs
import { eslint } from "@indigo-reemploi/eslint-config-client";

export default [
  ...eslint,
  "settings": {
    "better-tailwindcss": {
      // tailwindcss 4: the path to the entry file of the css based tailwind config (eg: `src/global.css`)
      "entryPoint": "src/core/theme/tailwind.css",
      // tailwindcss 3: the path to the tailwind config file (eg: `tailwind.config.js`)
      "tailwindConfig": "tailwind.config.js"
    }
  }
];
```

And for prettier

```javascript
// prettier.config.mjs
import { prettier } from "@indigo-reemploi/eslint-config-client";

export default {
  ...prettier,
  // tailwindcss 4: the path to the entry file
  tailwindStylesheet: 'src/core/theme/tailwind.css',
};
```

## Pour développer la config en local

A chaque changement, aller dans le repo dans lequel on veut tester la config (par exemple circular-client) et lancer la commande :

```bash
# dans circular-client
yarn add ../eslint-config-client
yarn run lint:fix
```


# Upgrade guide
## From V0 to V1

This upgrade works with Tailwind V3 and V4.

On client:

```javascript
// eslint.config.mjs
import { eslint } from "@indigo-reemploi/eslint-config-client";

export default [
  ...eslint,
  {
    settings: {
      "better-tailwindcss": {
        // Tailwind CSS 4: the path to the entry file of the CSS-based Tailwind config (e.g.: `src/global.css`)
        entryPoint: "src/core/theme/tailwind.css",
        // Tailwind CSS 3: the path to the Tailwind config file (e.g.: `tailwind.config.js`)
        tailwindConfig: "tailwind.config.js"
      }
    }
  }
];
```

And:

```javascript
// prettier.config.mjs
import { prettier } from "@indigo-reemploi/eslint-config-client";

export default {
  ...prettier,
  // Tailwind CSS 4: the path to the entry file
  tailwindStylesheet: 'src/core/theme/tailwind.css',
};
```
npm package: @indigo-ui/components
Description: A react library developed with dumi
Latest version: 0.5.12

<p align="center">
<img src="https://github.com/xiaodye/indigo-ui/blob/0.3.2/public/logo.png" style="width:200px;" />
</p>

<h1 align="center">Indigo UI</h1>

<p align="center">
  一个基于 dumi2 开发的 react 组件库
</p>

<p align="center">
  <img src="https://img.shields.io/npm/v/@indigo-ui/components.svg?style=flat" alt="NPM version">
  <img src="http://img.shields.io/npm/dm/@indigo-ui/components.svg?style=flat" alt="NPM downloads">
  <img src="https://github.com/xiaodye/indigo-ui/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI" style="max-width: 100%;"/>
  <img src="https://img.shields.io/github/license/xiaodye/indigo-ui?color=red"/>
</p>

## 特性

- ⚡️ 使用 React 18、Dumi 2 和 Pnpm，保证快速高效的开发体验。
- 🦾 使用 TypeScript, 提供一流的类型支持。
- 🗂 提供 cli 工具，支持快速创建应用。
- ⚙️ 使用 Jest 和 @testing-library/react 进行单元测试。
- 🌳 Eslint + Prettier + Stylelint + commitlint 保证代码风格和质量。
- 🎨 使用 GithubActions 进行 CI/CD。

## 安装

1. 从 yarn、npm 或者 pnpm 安装并引入 indigo-ui

```bash
pnpm add @indigo-ui/components
```

2. 通过 cli 工具一键创建应用（beta）

```shell
pnpm i -g @indigo-ui/cli
```

```shell
create-indigo-ui-app
```

![Snipaste_2024-02-25_18-39-59.png](https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/c687a82fa60f404a94e96570e5de095a~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=1028&h=402&s=57475&e=png&b=16161d)

## 快速开始

```tsx
import { Button, Space } from '@indigo-ui/components';
import { FC } from 'react';

const App: FC = () => {
  return (
    <Space>
      <h1>indigo-ui</h1>
      <Button>默认按钮</Button>
      <Button type="primary">主要按钮</Button>
    </Space>
  );
};

export default App;
```

## 后续计划

- 逐步改为 Monorepo 项目架构
- 增加更多的组件支持
- 提供 @indigo-ui/cli、@indiog-ui/hooks、@indigo-ui/icons
npm package: @indigo/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 3.0.2

# :warning: WARNING!

This is a custom scripts-version of React-Scripts that provides Monorepo support.

See [React Workspaces Playground](https://github.com/react-workspaces/react-workspaces-playground) for a working demo.

[![React Workspaces Playground Screenshots](https://i.imgur.com/7snWXD0.png)](https://github.com/react-workspaces/react-workspaces-playground)

For more information on why this ways created, please read this for more info: https://github.com/F1LT3R/cra-workspaces-support-1333

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.