open-index/open-npm huggingface dataset:
npm package: @sunra/server-proxy
Description: The sunra server proxy adapter for JavaScript and TypeScript Web frameworks
Latest version: 0.1.2

# sunra proxy library

![@sunra/server-proxy npm package](https://img.shields.io/npm/v/@sunra/server-proxy?color=%237527D7&label=%40sunra%2Fserver-proxy&style=flat-square)

## Introduction

The `@sunra/server-proxy` library enables you to route client requests through your own server, therefore safeguarding sensitive credentials. With built-in support for popular frameworks like Next.js and Express, setting up the proxy becomes a breeze.

### Install the proxy library:

```
npm install --save @sunra/server-proxy
```

## Next.js page router integration

For Next.js applications using the page router:

1. Create an API route in your Next.js app, as a convention we suggest using `pages/api/sunra/proxy.js` (or `.ts` if you're using TypeScript):
2. Re-export the proxy handler from the library as the default export:
   ```ts
   export { handler as default } from "@sunra/server-proxy/nextjs";
   ```
3. Ensure you've set the `SUNRA_KEY` as an environment variable in your server, containing a valid API Key.

## Next.js app router integration

For Next.js applications using the app router:

1. Create an API route in your Next.js app, as a convention we suggest using `app/api/sunra/proxy/route.js` (or `.ts` if you're using TypeScript):
2. Re-export the proxy handler from the library as the default export:

   ```ts
   import { route } from "@sunra/server-proxy/nextjs";

   export const { GET, POST, PUT } = route;
   ```

3. Ensure you've set the `SUNRA_KEY` as an environment variable in your server, containing a valid API Key.

## Express integration

For Express applications:

1. Make sure your app supports JSON payloads, either by using `express.json()` (recommended) or `body-parser`:
   ```ts
   app.use(express.json());
   ```
2. Add the proxy route and its handler. Note that if your client lives outside of the express app (i.e. the express app is solely used as an external API for other clients), you will need to allow CORS on the proxy route:

   ```ts
   import * as sunraProxy from "@sunra/server-proxy/express";

   app.all(
     sunraProxy.route, // '/api/sunra/proxy' or you can use your own
     cors(), // if external clients will use the proxy
     sunraProxy.handler,
   );
   ```

3. Ensure you've set the `SUNRA_KEY` as an environment variable in your server, containing a valid API Key.

## Client configuration

Once you've set up the proxy, you can configure the client to use it:

```ts
import { sunra } from "@sunra/client";

sunra.config({
  proxyUrl: "/api/sunra/proxy", // or https://my.app.com/api/sunra/proxy
});
```

Now all your client calls will route through your server proxy, so your credentials are protected.

## More information

For a deeper dive into the proxy library and its capabilities, explore the [official documentation](https://sunra.ai/docs).
npm package: @sunreal/f-icon
Description: Feather for Vue.js
Author: fengyuan.sfy@gmail.com
Latest version: 1.0.0

# f-icon

[Home Page](https://sunfy.xyz/f-icon)

## Get started

`npm install @sunreal/f-icon --save`

### Import all icons
```
// In js...
import feather from 'f-icon'
Vue.use(feather)
// In vue...
<f-icon name="align-center" />
```

### Only import icons you need

```
// In js...
import { fAlignCenter } from 'f-icon'
// Each icon is a plugin...
Vue.use(fAlignCenter)
// In vue...
<f-align-center />
```

# License

MIT
npm package: @sunrintoday/cli
Description: Sunrin Today CLI
Author: Jeewon Kwon - jeewon.kwon.0817@gmail.com
Latest version: 1.0.3

# Sunrin Today CLI

선린투데이 CLI입니다.

## Installation

```bash
npm install -g @sunrintoday/cli
yarn global add @sunrintoday/cli
pnpm add -g @sunrintoday/cli
```
npm package: @sunrise-integration/attentive-sms
Description: Attentive Mobile integration for Shogun Frontend.
Latest version: 1.0.4

# Attentive SMS

Attentive Mobile integration for Shogun Frontend.

> Personalized Mobile Messaging for Innovative Businesses

<table>
  <tbody>
    <tr>
      <td>⚠️</td>
      <td>This package runs on Shogun Frontend. </td>
    </tr>
  </tbody>
</table>

[Attentive website →](https://www.attentivemobile.com/)


## Installation

`yarn add @frontend-sdk/attentive-sms`

`npm install @frontend-sdk/attentive-sms`

## Usage

First we need to install the Attentive SMS script - we need to make a call to `useAttentiveSms` passing you `Custom Attentive Domain`

```jsx
import {useAttentiveSms} from '@frontend-sdk/attentive-sms'

const App = () => {
    
    let attentiveDomain = 'EXAMPLE';
    useAttentiveSms(attentiveDomain);

    return <div>...</div>
}
```
npm package: @sunrise-integration/postscript-sms
Description: Postscript SMS integrated for Shogun Frontend.
Latest version: 1.0.0

# Postscript SMS

Postscript SMS integrated for Shogun Frontend.

> SMS marketing for growing Shopify stores

<table>
  <tbody>
    <tr>
      <td>⚠️</td>
      <td>This package runs on Shogun Frontend. </td>
    </tr>
  </tbody>
</table>

[Postscript SMS website →](https://www.postscript.io/)


## Installation

`yarn add @frontend-sdk/postscript-sms`

`npm install @frontend-sdk/postscript-sms`

## Usage

First we need to install the Postscript SMS script - we need to make a call to `usePostscriptSms` with a valid shopId (`00000`) :

```jsx
import { usePostscriptSms } from '@frontend-sdk/postscript-sms'

const App = () => {

    /**
     * shopId: This ID is not your store name, but a numerical number. 
     * You can locate your shop ID in your account settings.
     * Select your Shop Name in the side menu of your Postscript dashboard, then select Settings.
     * @type {string}
     */
    let shopId = '00000';
    usePostscriptSms(shopId);
    
  return <div>...</div>
}
```
npm package: @sunrise-records/zeckoshop-api
Description: API for communicating with ZeckoShop
Author: Nicholas Penree
Latest version: 0.2.0

ZeckoShop API
==============

### Install

> npm i @sunrise/zeckoshop-api

### Usage

```js
const ZeckoShopApi = require('@sunrise-records/zeckoshop-api');

const main = async () => {
    const zeckoShop = new ZeckoShopApi('https://www.example.com/');
    await zeckoShop.admin.login({
        username,
        password,
    });
    const orders = await zeckoShop.admin.reporting.orders();
    console.log(orders);
})

main();
```

### API

#### admin

##### login( { username, password })

#### reporting

##### orders()
npm package: @sunrisecn/axios-encapsulation
Description: ## Installation
Author: yinuo
Latest version: 1.0.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# axios-encapsulation

## Installation

### Using npm/yarn:

```js
 npm install @sunrisecn/axios-encapsulation --save

yarn add @sunrisecn/axios-encapsulation
```

### Usage:

```js
import getApi from '@sunrisecn/axios-encapsulation'

const api = getApi(config)

api.request({
	method: 'get',
	data,
	interceptors: {
		requestInterceptors: config => {
			config.headers.single = 'outer'
			return config
		},
		responseInterceptors: res => {
			// do something
			return res
		}
	}
})
```