open-index/open-npm huggingface dataset:
npm package: @seer-pm/sdk
Description: SDK for the Seer prediction market protocol: create markets, resolve, split/merge/redeem, and trade
Author: Seer
Latest version: 0.0.11

# @seer-pm/sdk

SDK for the [Seer](https://seer.pm) prediction market protocol. Use it to create markets, resolve, split/merge/redeem positions, and trade outcome tokens from your app.

## Install

```bash
npm install @seer-pm/sdk
# or
yarn add @seer-pm/sdk
# or
pnpm add @seer-pm/sdk
```

### Peer dependencies

This package expects the following peer dependencies in your project. Install them if they are not already present:

| Package           | Version        |
| ----------------- | -------------- |
| `@wagmi/core`     | `>=2.0.0`      |
| `graphql-request` | `>=5.0.0`      |
| `graphql-tag`     | `>=2.0.0`      |
| `viem`            | `>=2.0.0`      |
| `wagmi`           | `^2.0.0` or `^3.0.0` |

Example with npm:

```bash
npm install @seer-pm/sdk @wagmi/core graphql-request graphql-tag viem wagmi
```

## Usage

```ts
import type { Market } from "@seer-pm/sdk";
```

See the [integration docs](https://github.com/seer-pm/demo/tree/main/integration-docs) for full flows (create market, resolve, trading, API).

## Publishing (maintainers)

From the monorepo root:

```bash
yarn workspace @seer-pm/sdk build
npm publish -w @seer-pm/sdk
```

Only the `packages/seer-sdk` package is published to npm; the rest of the repository is not included in the published tarball.

## License

MIT
npm package: @seerapi/client
Description: SeerAPI TypeScript SDK, generated with @hey-api/openapi-ts
Author: Nattsu39
Latest version: 103.2.3

# SeerAPI TypeScript SDK

这是 SeerAPI 的官方 TypeScript SDK，由 `@hey-api/openapi-ts` 自动生成。它提供了与 SeerAPI 交互的类型安全客户端，并集成了 Drizzle ORM 以支持本地 SQLite 数据库操作。

## 特性

- **全自动生成**: 无论是 API 客户端还是数据库 Schema，均通过自动化工具生成，确保与服务端定义高度一致。
- **类型安全**: 完全基于 OpenAPI 规范生成的 TypeScript 类型定义。
- **多种客户端支持**: 内置对 Axios 的支持。
- **本地数据库集成**: 使用 Drizzle ORM 和 LibSQL (SQLite) 管理本地数据，Schema 自动同步。
- **自动转换**: 支持日期等复杂类型的自动转换。

## 安装

```bash
npm install @seerapi/client
# 或者
yarn add @seerapi/client
# 或者
pnpm add @seerapi/client
```

## 快速开始

### API 客户端使用

```typescript
import { createClient } from '@seerapi/client';

const client = createClient({
  baseURL: 'https://api.seerapi.com', // 替换为实际 API 地址
});

// 使用生成的 SDK 方法
async function fetchData() {
  try {
    const response = await client.getSomeEndpoint();
    console.log(response.data);
  } catch (error) {
    console.error('Error fetching data:', error);
  }
}
```

### 数据库操作 (Drizzle ORM)

项目内置了自动生成的 SQLite 数据库 Schema：

```typescript
import { db } from '@seerapi/client/db';
import { pet, skill } from '@seerapi/client/db/schema';

async function queryDb() {
  // 所有的表定义均根据 SeerAPI 的 SQLite 数据库自动生成
  const allPets = await db.select().from(pet).limit(10).all();
  console.log(allPets);
}
```

## 许可证

[MIT](LICENSE)

## 相关链接

- [GitHub 仓库](https://github.com/SeerAPI/seerapi-ts)
npm package: @seermedical/danger-plugin-jest
Description: Danger plugin for Jest
Author: Robert Kerr
Latest version: 0.0.1

# danger-plugin-jest

[![Build Status](https://travis-ci.org/macklinu/danger-plugin-jest.svg?branch=master)](https://travis-ci.org/macklinu/danger-plugin-jest)
[![npm version](https://badge.fury.io/js/danger-plugin-jest.svg)](https://badge.fury.io/js/danger-plugin-jest)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

> [Danger](https://github.com/danger/danger-js) plugin for Jest

## Usage

### Setup Jest

This Danger plugin relies on modifying your Jest configuration slightly on CI to also output a JSON file of the results.

You need to make the `yarn jest` command include: `--outputFile test-results.json --json`. This will run your tests
like normal, but will also create a file with the full test results after.

> You may also want to add the JSON output file to your `.gitignore`, since it doesn't need to be checked into source control.

### Setup Danger

Install this Danger plugin:

```sh
yarn add danger-plugin-jest --dev
```

By default, this package will assume you've set the filename as `test-results.json`, but you can use any path.

```js
// dangerfile.js
import path from "path";
import jest from "danger-plugin-jest";

// Default
jest();
// Custom path
jest({ testResultsJsonPath: path.resolve(__dirname, "tests/results.json") });
```

See [`src/index.ts`](https://github.com/macklinu/danger-plugin-jest/blob/master/src/index.ts) for more details.

## Changelog

See the GitHub [release history](https://github.com/macklinu/danger-plugin-jest/releases).

## Development

Install [Yarn](https://yarnpkg.com/en/), and install the dependencies - `yarn install`.

Run the [Jest](https://facebook.github.io/jest/) test suite with `yarn test`.

This project uses [semantic-release](https://github.com/semantic-release/semantic-release) for automated NPM package publishing.

The main caveat: instead of running `git commit`, run `yarn commit` and follow the prompts to input a conventional changelog message via [commitizen](https://github.com/commitizen/cz-cli).

:heart: