open-index/open-npm huggingface dataset:
npm package: @sochetra-nov/vite-plugin-js-obfuscator
Description: A Vite plugin to obfuscate JavaScript output using javascript-obfuscator.
Author: Sochetra NOV
Latest version: 1.0.1

# vite-plugin-js-obfuscator

A simple Vite plugin that obfuscates final JS bundles using [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator)

## Installation

```bash
npm install @sochetra-nov/vite-plugin-js-obfuscator --save-dev
```

## Usage

```js
// vite.config.js
import viteJsObfuscator from "@sochetra-nov/vite-plugin-js-obfuscator";

export default {
  plugins: [
    viteJsObfuscator({
      compact: true,
      controlFlowFlattening: true,
      debugProtection: true,
      debugProtectionInterval: 1000,
      selfDefending: true,
    }),
  ],
};
```

### Preset Config

```js
// vite.config.js
import viteJsObfuscator, {
  highObfuscationLowPerformance,
  mediumObfuscationOptimalPerformance,
  lowObfuscationHighPerformanceConfig,
} from "@sochetra-nov/vite-plugin-js-obfuscator";

export default {
  plugins: [viteJsObfuscator(lowObfuscationHighPerformanceConfig)],
};
```
npm package: @social-colyseus/server
Description: Social Colyseus - A Library of social actions & user persistence library for Colyseus
Author: Orkun ÇAKILKAYA
Latest version: 0.4.3

# SocialColyseus - Server

SocialColyseus - Server is an extension for Colyseus. This package adds Authentication, Friendship, Invitation System
and more features to Colyseus servers. SocialColyseus uses MongoDB for database. It also provides Rest API.

## How to use?

### Env File

First copy .env.template to .env file and fill the necessary fields.

```typescript
import * as dotenv from 'dotenv';

dotenv.config();
```

### Initialize Express

```typescript
import express from 'express';
import cors from 'cors';

const app = express();
app.use(express.json());
app.use(cors());
```

### Create Game Server

```typescript
import {createServer} from 'http';
import {Server} from 'colyseus';
import {WebSocketTransport} from '@colyseus/ws-transport';

const server = createServer(app);

const gameServer = new Server({
    transport: new WebSocketTransport({
        server,
    }),
});
```

### Import SocialColyseus App

```typescript
import {SocialColyseusApp} from '../index';

const socialApp = new SocialColyseusApp(gameServer, {
    database: {
        host: process.env.DB_HOST,
        name: process.env.DB_NAME,
        pass: process.env.DB_PASS,
        port: process.env.DB_PORT,
        user: process.env.DB_USER,
    },
});
app.use(socialApp.httpHandler());
```

### Define your room via SocialColyseus

Otherwise authentication and other features won't work

```typescript
socialApp.defineRoom('privateRoom', PrivateRoom);
```

### SocialColyseus Rooms

Now add SocialColyseus App to your rooms for authentication and other features

```typescript
export class PrivateRoom extends Room {
    protected app: SocialColyseusApp;

    onCreate(options: any): void | Promise<any> {
        if (!options.app) {
            return Promise.reject();
        }
        this.app = options.app; // Initializes SocialColyseus to your room
        this.setPrivate(true).finally();
    }

    onAuth(client: Client, options: any): any {
        return authenticate(this.app, {token: options?.token}); // Authenticates your user via token
    }
}
```

### Run your server

```typescript
gameServer.listen(5567, '0.0.0.0').finally();
```

## Example Repository

### [Click here for example repository](https://github.com/social-colyseus/server-example)

## Roadmap

- [ ] Room Invitation
  - [X] Create invitation
  - [X] Accept invitation
  - [X] Reject invitation
  - [ ] Only host invites
  - [ ] No re-invite friends
  - [ ] Remove player from invitation list if user is in target room
- [ ] Leaderboard
- [ ] Clans
- [ ] Parties

## Note

This package is not version 1.0.0, it may or may not get breaking changes. Use it at your own risk on production
environment.
npm package: @social-connector/social-connector
Description: Simple TypeScript integration with Instagram Basic Display API
Author: Nir Yasoor
Latest version: 0.1.2

# social-connector

> A Simple TypeScript / JavaScript integration with _Instagram Basic Display API_

Use to integrate your app's with _Instagram Basic Display API_
or as a hands-on guide on how to develop the integration on your own.

## Installing / Getting started

Check out the [full documentation](https://niryas.github.io/social-connector) for instructions.

## Developing

To further develop this package, fork it and checkout to your local machine.

### Follow the [Getting Started](https://niryas.github.io/social-connector/guide/getting-started) guide regarding:

-   Setting up an App in Meta's Developer Platform.
-   Setting up HTTPS and adding the redirect URI to Meta's Developer Platform.
-   Adding a Token Exchange Backend for development.

### Then:

1. Install dependencies
   Run `npm install` in the local folder of the package.
2. Create an `.env.local` file
   To easily pass the Instagram App ID and Redirect URI:

```shell
VITE_IG_APP_ID=00000  # your app id
VITE_IG_REDIRECT_URI="https://..."  # your full redirect uri
```

3. Edit `/demo/App.vue` instance options:

```ts
let ig = InstagramClient.getInstance({
	// ...
	tokenBackendUri: "http://localhost:8000/ig_token/",
	// ...
});
```

In case your Token Exchange Backend is exposed in a different address.

4. Run the development server using:
   `npm run dev`

### Running tests

Run tests using `npm run test`

### Documentation

The documentation development server can be run with `npm run docs:dev`.
All documentation site files are inside the `docs` folder.

## Contributing

Contributions are greatly appreciated!
Check out the [Contributing Guide](https://niryas.github.io/social-connector/CONTRIBUTING) for more details.

## Links

-   Documentation Site: https://niryas.github.io/social-connector/
-   Repository: https://github.com/niryas/social-connector
-   Getting Started Guide: https://niryas.github.io/social-connector/guide/getting-started
-   Contributing Guide: https://niryas.github.io/social-connector/CONTRIBUTING
-   `django-social-connector` (Token Exchange Backend): https://github.com/niryas/django-social-connector

## Licensing

The code in this project is licensed under the _MIT License_.