open-index/open-npm huggingface dataset:
npm package: @patsnap-ai/sdk
Description: SDK to develop with Patsnap
Latest version: 0.1.2

# Patsnap SDK

[![npm version](https://img.shields.io/npm/v/@patsnap-ai/sdk)](https://www.npmjs.com/package/@patsnap-ai/sdk)

TypeScript types for building MCP servers on the Patsnap hosted runtime.

Docs: https://open.patsnap.com/docs/build

## Installation

```bash
npm install @patsnap-ai/sdk
```

## Usage

The SDK provides types for the Patsnap runtime context that your MCP server receives when deployed.

```typescript
import type {
  ServerModule,
  ServerContext,
  Session,
} from "@patsnap-ai/sdk"
import { z } from "zod"

// Define your configuration schema
export const configSchema = z.object({
  apiKey: z.string(),
})

// Create your server
export default const createServer = async (context: ServerContext<z.infer<typeof configSchema>>) => {
  const { config, env } = context

  // Access user configuration
  console.log(config.apiKey)

  // Access environment variables
  console.log(env.MY_SECRET)

  // For stateful servers, access session storage
  if ("session" in context) {
    await context.session.set("key", "value")
    const value = await context.session.get("key")
  }

  // Return your MCP server instance
  return new Server({ name: "my-server", version: "1.0.0" }, { capabilities: {} })
}

```

## Types

### `ServerContext<TConfig>`

The context object passed to your server factory function:

- `config: TConfig` - User-provided configuration (validated against your `configSchema`)
- `env: Record<string, string | undefined>` - Environment variables
- `session?: Session` - Session storage (only for stateful servers)

### `Session`

Key-value storage scoped to the user session:

- `get<T>(key: string): Promise<T | undefined>`
- `set(key: string, value: unknown): Promise<void>`
- `delete(key: string): Promise<void>`

### `ServerModule<TConfig>`

The expected exports from your server entry point:

- `default: CreateServerFn<TConfig>` - Factory function that creates your MCP server
- `configSchema?: z.ZodSchema<TConfig>` - Zod schema for configuration validation
- `createSandboxServer?: CreateSandboxServerFn` - Optional function for deployment scanning
- `stateful?: boolean` - Whether the server maintains state between requests (default: `false`)

## Documentation

For complete documentation, see:
- [Quickstart Guide](https://open.patsnap.com/docs/build/quickstart)

## License

MIT
npm package: @patt-rick/react-quickchat
Description: A simple React package to enable customer and client conversations within your app. QuickChat provides a chatbot interface, but all responses are manually handled, making it ideal for businesses that want direct, real-time customer interaction.
Author: minnez
Latest version: 0.4.9

# @patt-rick/react-quickchat

A simple React package to enable customer and client conversations within your app. QuickChat provides a chatbot interface, but all responses are manually handled, making it ideal for businesses that want direct, real-time customer interaction.

## Features

- Easy to integrate into any React app
- Customer and client chat interface
- Manual responses for personalized support
- Lightweight and optimized

## Installation

Install the package via npm:

```sh
npm install @patt-rick/react-quickchat
```

or with yarn:

```sh
yarn add @patt-rick/react-quickchat
```

## Usage

Import and use the QuickChat component in your React app:

```tsx
import React from 'react';
import { Chat } from '@patt-rick/react-quickchat'

function App() {
return (
    <Chat
    primaryColor=// any hex color or rgb (optional)
    clientDetails={{
        clientName: // name of client,
        clientId: // any id relating to client,
        clientOrgName: // name of organisation of client
    }}
    adminDetails={{
        adminOrgName: // name of admin,
        adminOrgId: //admin org id'
    }}
    />
);
}
```

## Props

| Prop Name       | Type                             | Description                     |
| --------------- | -------------------------------- | ------------------------------- |
| `theme`         | `"light" | "dark"`               | Set the chat UI theme           |
| `position`      | `"bottom-right" | "bottom-left"` | Adjust the chat icon position   |
| `onMessageSend` | `(message: string) => void`      | Callback when a message is sent |

## Styling

You can customize the chat interface using CSS or pass styles as props.

## Contributing

Contributions are welcome! Feel free to submit issues and pull requests on GitHub.

## License

This project is licensed under the MIT License.
npm package: @pattayaswap-dev-libs/sdk
Description: 🛠 An SDK for building applications on top of PattayaSwap.
Latest version: 1.0.3

# PantherSwap SDK

## 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/pantherswap/panther-swap-sdk.git
```

Move into the panther-swap-sdk working directory

```sh
cd panther-swap-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: @pattayaswap-dev-libs/uikit
Description: Set of UI components for pattaya projects
Latest version: 0.1.4

# Panther UIkit

Panther UIkit is a set of React components and hooks used to build pages on Panther's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pantherswap-libs/uikit`

## Setup

### Theme

Before using Panther UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pantherswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pantherswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.