open-index/open-npm huggingface dataset:
npm package: @sryden/nebula
Description: Node.js wrapper for the Pterodactyl API
Author: SRYDEN, Inc
Latest version: 1.0.0

# SRYDEN Nebula

Node.js wrapper for the Pterodactyl API.
This isn't fully finished, actions such as edit are not added.

## Installation

Install with npm:

```bash
npm install @sryden/nebula
```

## Usage

```javascript
const nebula = require('@sryden/nebula');

nebula.config({
  panel: 'https://pterodactyl.test',
  apikey: 'ptla_xxxxxxxxxxxxxxxxxxxx',
});
// Note: Use an admin API key, not a client one

// Example: Get server list
nebula.servers.list()
  .then((serverList) => console.log('Server List:', serverList))
  .catch((error) => console.error('Error:', error));

// Example: Get details of a server
nebula.servers.getDetails(1)
  .then((serverDetails) => console.log('Server Details:', serverDetails))
  .catch((error) => console.error('Error:', error));

// Example: Create a new server
const newServer = {
  name: 'Kinetic Nibbler',
  user: 1,
  // Add other server details as per ptero API documentation
  // Not all are necessary, keep that in mind
};

nebula.servers.create(newServer)
  .then((createdServer) => console.log('Created Server:', createdServer))
  .catch((error) => console.error('Error:', error));

// Similar usage for nodes and users, refer to the ptero API documentation for more details
```

## Configuration

Before using Nebula, make sure to configure it with your Pterodactyl panel URL and API key:

```javascript
nebula.config({
  panel: 'https://pterodactyl.test',
  apikey: 'ptla_xxxxxxxxxxxxxxxxxxxx',
});
```

Replace the placeholder config with your actual Pterodactyl panel URL and API key.
npm package: @sryden/radiant
Description: Node.js module for uploading files to SRYDEN CDN
Author: SRYDEN, Inc
Latest version: 1.0.0

# SRYDEN Radiant

This is a Node.js module for automating uploads to the SRYDEN CDN..

## Installation

```bash
npm install @sryden/radiant
```

## Usage

```javascript
const radiant = require('@sryden/radiant');

// Example usage
const filePath = './file.png';

radiant.upload(filePath)
  .then(response => {
    console.log('Upload response:', response); // CDN will return the image name and some other useful info
  })
  .catch(error => {
    console.error('Error:', error.message);
  });
```

## Methods

### `upload(filePath)`

Uploads a file to SRYDEN CDN.

- `filePath`: Path to the file you want to upload.

Returns a Promise that resolves to the upload response.
npm package: @sryden/tenon
Description: Node.js module for interacting with the SRYDEN Tenon API
Author: SRYDEN, Inc
Latest version: 1.0.0

# SRYDEN Tenon

Node.js module for interacting with the SRYDEN Tenon API.

## Installation

```bash
npm install @sryden/tenon
```
## Usage

```javascript
const tenon = require('@sryden/tenon');

// Example for chat
tenon.chat({
  model: 'tenon-5',
  history: ['msg1', 'msg2'],
})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });

// Example for create
tenon.create({
  model: 'tenon-5',
  message: 'Message for the AI model here',
})
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```

## Configuration

Before using the module, you need to configure it with your Tenon API key using the configure function.

```javascript
tenon.configure({
  apiKey: 'tenon_xxxxxxxxxxxxxxxxxxxx',
});
```
npm package: @srzorro/file-json
Description: Read json, do stuff, write json
Author: Fox salva
Latest version: 1.1.0

# file-json

`npm i @srzorro/file-json`

For when you want to store stuff in a json file, but also want to read and write it easily.

## Usage

```typescript
import FileJson from "@srzorro/file-json";

interface IJson {
    name: string;
    version: string;
    isEnabled: boolean;
}

const json = new FileJson<IJson>("config.json");

(async () => {
    // Read
    await json.r();

    // Data container
    console.log(json.d);

    // Edit data
    json.d.isEnabled = true;

    // Write
    await json.w();
})();

```
npm package: @ss-abhishek/inapp-react-native
Description: SurveySensum In-App Surveys SDK for React Native
Latest version: 0.1.1

# SurveySensum In-App React Native SDK

React Native SDK to display SurveySensum in-app surveys in your app.

## Installation

```bash
npm install @surveysensum/inapp-react-native
# or
yarn add @surveysensum/inapp-react-native
```

Peer dependencies (install if not already present):

- react, react-native
- react-native-webview
- @react-native-async-storage/async-storage
- react-native-image-picker
- react-native-toast-message

## Setup

1) Configure base URL subdomain and tokens at app start:

```ts
import { BaseUrlManager, TokenManager } from '@surveysensum/inapp-react-native';

BaseUrlManager.setSubdomain('your-subdomain');
TokenManager.setTokens(['YOUR_TOKEN']);
```

2) Prepare a place to render the WebView screen via callback:

```ts
import Ssinappreactnative, { WebViewLauncherScreen } from '@surveysensum/inapp-react-native';

Ssinappreactnative.setWebViewCallback((surveyData) => {
  // Render WebViewLauncherScreen in your navigation/modal
  // e.g. set state that shows a component:
  // <WebViewLauncherScreen {...surveyData} />
});
```

3) Open the survey:

```ts
await Ssinappreactnative.openWebView('https://example.com', {
  urlMatcher: 'screen://home',
});
```

## API

- BaseUrlManager, ContactManager, MetaDataManager, TokenManager
- Ssinappreactnative.openWebView(fallbackUrl, options)
- WebViewLauncherScreen React component

## Building locally

```bash
npm run build
```

## Publishing

1) Update version in package.json
2) Ensure `npm login`
3) Publish:

```bash
npm publish --access public
```

## Notes

- For React Native environments lacking `URL`, ensure a polyfill if needed.
- Avoid logging sensitive tokens in production.