open-index/open-npm huggingface dataset:
npm package: @polyrpc/client
Description: Type-safe Python API client for TypeScript
Author: PolyRPC Contributors
Latest version: 0.4.0

# @polyrpc/client

Type-safe Python API client for TypeScript.

## Installation

```bash
npm install @polyrpc/client
```

## Usage

```typescript
import { createClient } from '@polyrpc/client';
import type { PolyRPCRoutes } from './polyrpc.d';

const py = createClient<PolyRPCRoutes>({
  baseUrl: 'http://localhost:8000',
});

// Fully typed!
const user = await py.users.get.query({ id: 1 });
```

## Documentation

See [polyrpc.dev](https://polyrpc.dev) for full documentation.

## License

MIT
npm package: @polyrpc/react
Description: React Query integration for PolyRPC
Author: PolyRPC Contributors
Latest version: 0.4.0

# @polyrpc/react

React Query integration for PolyRPC.

## Installation

```bash
npm install @polyrpc/react @tanstack/react-query
```

## Usage

```tsx
import { createPolyRPC } from '@polyrpc/react';
import type { PolyRPCRoutes } from './polyrpc.d';

const { py, PolyRPCProvider } = createPolyRPC<PolyRPCRoutes>({
  baseUrl: 'http://localhost:8000',
});

// In your component
function UserProfile({ userId }) {
  const { data, isLoading } = py.users.get.useQuery({ id: userId });
  
  if (isLoading) return <div>Loading...</div>;
  return <div>{data.name}</div>;
}
```

## Documentation

See [polyrpc.dev](https://polyrpc.dev) for full documentation.

## License

MIT
npm package: @polysafemoon/sdk
Description: 🛠 An SDK for building applications on top of polysafemoon.
Author: wws-dev
Latest version: 0.1.1

# PolysafemoonSwap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/mobiledev-111-118/polysafemoon-sdk.git
```

Move into the polysafemoon-sdk working directory

```sh
cd polysafemoon-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @polysafemoon/uikit
Description: Set of UI components for polysafemoon projects
Author: wws-dev
Latest version: 0.1.9

# Soy UIkit

[![Version](https://img.shields.io/npm/v/@soy-libs/uikit)](https://www.npmjs.com/settings/soyfinance/packages/@soy-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@soy-libs/uikit)](https://www.npmjs.com/settings/soyfinance/packages/@soy-libs/uikit)

Soy UIkit is a set of React components and hooks used to build pages on Soy's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @soy-libs/uikit`

## Setup

### Theme

Before using Soy UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@soy-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@soy-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://soyswap.github.io/soy-uikit/)