open-index/open-npm huggingface dataset:
npm package: @partpay/sdk
Description: SDK for Partpay Protocol
Author: Emmanuel Uzoezie
Latest version: 1.0.6

# Partpay SDK

This is the SDK for the Partpay Protocol. It provides easy-to-use interfaces for integrating with the Partpay services on the Solana blockchain.

## Installation
For npm
```bash
npm install @partpay/sdk
```

For Yarn
```bash
yarn add @partpay/sdk
```

Usage
```
import { PartpayProvider } from '@partpay/sdk';

// Wrap your application with the provider
<PartpayProvider apiKey="your-api-key">
  <App />
</PartpayProvider>
```

for more info visit https://partpay.io
npm package: @partrocks/common-api
Description: Common Utilities and Middleware for APIs on the PartRocks Platform.
Author: Paul Rooney
Latest version: 0.1.22

# @partrocks/common-api

@partrocks/common-api

## Installation

Use the package manager [npm](https://www.npmjs.com) to install to node_modules.

```bash
npm install @partrocks/common-api
```

## Usage

_it's complicated!_

### Contributing

Get in touch <info@happycoder.co.uk>

### License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @partrocks/data
Description: Simple Data connector and Schema for Database PartRocks connection
Author: Paul Rooney
Latest version: 0.4.0

# @partrocks/data

@partrocks/data is a npm package PartRocks that allows a configured environment to access the platform data sources.

## Installation

Use the package manager [npm](https://www.npmjs.com) to install to node_modules.

```bash
npm install @partrocks/data
```

## Usage (nodejs)

```javascript
const { connectDatasources } = require("@partrocks/data")

connectDatasources(() => {
    console.log("PartRocks datasources are now ready!")
})
```

...or with import syntax 

```javascript
import { connectDatasources } from "@partrocks/data"

connectDatasources(() => {
    console.log("PartRocks datasources are now ready!")
})
```
## Model Usage
for now the only datasource available is via *mongoDB* and this is essentially a wrapper for *mongoose* models

```javascript
import { User } from "@partrocks/data"

// Its a mongoose model - so this works
const rick = new User({
    email: "rick@sanchez.com"
})
await rick.save()

```

## Note

*The API for the models is subject to change prior to  version *1.0.x* I hope to keep it vaguely in line with the existing style but obv is subject to change.*

### Contributing

Get in touch <info@happycoder.co.uk>

### License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @partrocks/env
Description: Environment Config Extraction for PartRocks services
Author: Paul Rooney
Latest version: 0.1.1

# @partrocks/env

@partrocks/env is a npm package for PartRocks that allows a configured environment to manage and access those environment configs.

## Installation

Use the package manager [npm](https://www.npmjs.com) to install to node_modules.

```bash
npm install @partrocks/env
```

## Usage (nodejs)

```javascript
import prEnv from "@partrocks/env"

// Retrive settings for Data Services
prEnv.getDataServiceConfigs()

```

```json
{
  "mongodb": {
    "host": "----MONGO_HOST----",
    "port": "----MONGO_PORT----",
    "username": "----MONGO_USER----",
    "password": "----MONGO_PASSWORD----",
    "dbname": "----MONGO_DB----",
  },
  "mysql": {
    "host": "----MYSQL_HOST----",
    "port": "----MYSQL_PORT----",
    "username": "----MYSQL_USER----",
    "password": "----MYSQL_PASSWORD----",
    "dbnaPme": "----MYSQL_DATABASE----",
  }
}
```

## Contributing

Get in touch <info@happycoder.co.uk> - We love help.

## License
Whats a licence anyway!
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @partrocks/events
Description: Event / Listener Register and Message Queue Management for PartRocks Platform.
Author: Paul Rooney
Latest version: 0.0.8

# @partrocks/events

@partrocks/events

## Installation

Use the package manager [npm](https://www.npmjs.com) to install to node_modules.

```bash
npm install @partrocks/events
```

## Usage (nodejs)

```javascript
const {
    connectMessageQueue,
    dispatch,
    addListener,
    RockEvent,
    RockEventTypes,
} = require("@partrocks/events")
```

...or with import syntax

```typescript
import {
    connectMessageQueue,
    dispatch,
    addListener,
    RockEvent,
    RockEventTypes,
} from "@partrocks/events"
```

## Usage

to dispatch an event (example)

```typescript
await connectMessageQueue(async () => {
    const link = "https://www.link.com"
    await dispatch(
        new RockEvent(RockEventTypes.EMAIL, {
            template: "OrderComplete",
            from: "Part Rocks <comms@part.rocks>",
            to: "customer@email.com",
            subject: "You Order has been recieved",
            text: `Its on its way `,
            html: `<body><h1>Recieved/h1><p>Click this link to track your order<a href='${link}'>${link}</a></p></body>`,
        })
    )
})
```

or on the other end (example an SMTP service)

```typescript
await connectMessageQueue(async () => {
    addListener(RockEventTypes.EMAIL, (message: any) => {
        // relay email from message to SMTP
        console.log(message.subject) // >> "You Order has been recieved"
    })
})
```

### Contributing

Get in touch <info@happycoder.co.uk>

### License

[MIT](https://choosealicense.com/licenses/mit/)

```

```
npm package: @partrocks/react-client
Description: A set of React tools for the PartRocks service platform.
Author: Paul Rooney
Latest version: 0.3.35

# React-Client

This is the react-client library for React apps working with PartRocks Tools.

## Installation

Use the package manager [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/) to install foobar.

```bash
npm i @partrocks/react-client
```

or

```bash
yarn add @partrocks/react-client
```

## Usage

```javascript
import PartRocks from "@partrocks/react-client"
```

### Contributing

Get in touch <info@happycoder.co.uk>

### License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @parts-js/p-test
Description: test repository
Latest version: 0.2.0

# test

From small to very large React components. Build an application in no time.

## Installation

```ssh
// with yarn
yarn add @partsjs/test

//with npm
npm install @partsjs/test
```

If you don't already have peer dependencies installed, also run:

```ssh
// with yarn
yarn add react react-dom

// with npm
npm install react react-dom
```

## Usage

Use or create your own design system or use the default one with Tailwind.

**_Example with a default theme_**

First, install the default theme, based on the CSS classes from Tailwind.

```
// with yarn
yarn add @partsjs/test/tailwind-theme

// with npm
npm install @partsjs/test/tailwind-theme
```

Then use it in the app:

```jsx
import React from 'react';
import PartsTypography from 'partjs/test/PartsTypography';
import { typographyCN } from 'partsjs/test/theme';

const Text = () => {
  // some logic

  return (
    <div className="text">
      <PartsTypography {...{ element: h2, className: typographyCN.h1 }} />
    </div>
  );
};
```

Example with your own configuration (you can use Tailwind but don't have to):

```jsx
// theme/typography.js
const typographyCN = {
  h1: 'h1',
  h2: 'h2',
};

export default typographyCN;

// theme/index.js
export { typographyCN, buttonsCN } from '.';
```

```jsx
import React from 'react';
import PartsTypography from 'partjs/test/PartsTypography';
import { typographyCN } from 'core/theme'; // import from your app

const Text = () => {
  // some logic

  return (
    <div className="text">
      <PartsTypography
        {...{ element: h2, size: h1, className: typographyCN.h1 }}
      />
    </div>
  );
};
```

Do you want to style each component yourself according to classes describing each component? You can use the default CSS classes or specify their names yourself.

```jsx
import React from 'react';
import Typography from 'partjs/test/Typography';
import theme from '

const typography
const Text = () => {
    // some logic

    return (
        <div className="text">
            <Typography {...{ element: h2, size: h1, hasDefaultClasses: true  }} />
        </div>
    );
};
```