# Launched a new set of tools for web applications - Parallelix

## Introduction

Hi everyone. Today we have launched in beta a new toolkit for cross-platform web application development called Parallelix. This toolkit was born as a separate library, important in modernization of our products, as we daily face the problem of controlling dozens of SDKs for different platforms of our web applications.

**So - meet a unified library for working with your projects.**

[GitHub Repo](https://github.com/Neurosell/parallelix) | [Documentation](https://neurosell.gitbook.io/parallelix) | [Demo](https://parallelix.nsell.tech/) | [Roadmap](https://github.com/orgs/Neurosell/projects/1)

---

### About Parallelix

**Parallelix Toolkit** \- Written in Vanilla JS, a modular library that allows you to forget about the existence of different client SDKs when developing your cross-platform web applications, be it VK Mini Apps, WeChat Mini Apps, Progressive Web App or Apache Cordova based applications.

![](https://neurosell.gitbook.io/~gitbook/image?url=https%3A%2F%2F2201096477-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FNexHc25zkh1RToWdskoj%252Fuploads%252F0T9MautTd2nduOuB4GCQ%252Fparallelix.png%3Falt%3Dmedia%26token%3De218ad38-de28-4575-ad81-1981582f3219&width=768&dpr=4&quality=100&sign=d3191642&sv=2 align="left")

Write the same code for all platforms, changing only the parameters to execute methods according to the platforms' documentation.

**Why Parallelix?**

* Cross-platform operation of your web applications on different platforms (VK Mini Apss, Telegram Mini Apps, Cordova etc.);
    
* Unified API for working with authorization and other functionality of platforms;
    
* Modular connection of various libraries required for platforms' operation (for example: VK Bridge);
    
* Simple to use and easy to learn;
    

---

### **Get Started with Parallelix**

Before you start, download Parallelix libraries from the [release page from our official GitHub](https://github.com/Neurosell/parallelix/releases).

**Or clone repository into your project:**

```javascript
git clone https://github.com/Neurosell/parallelix.git
```

**Now connect the main script to work with Parallelix in body tag:**

```javascript
<script type="text/javascript" src="/libraries/parallelix.js"></script>
```

**And start connecting the client in your JS application:**

```javascript
// Configure Parallelix
const client = new Parallelix({
    baseModulesPath: "/libraries/",            // Where your modules located
    supportedPlatforms: ["vk", "telegram"],    // Modules to initialize
    vk: {},                                    // VK Module Config Example
    telegram: {}                               // Telegram Module Config Example
});

// Add Error and Initialization Handler
client.OnError = (error) => {};
client.OnInitialized = (data) => {
    // Work with Parallelix Here
};

// Initialize Client
client.Initialize();
```

**Done.** We've got the basic connection sorted out. If you want to learn more about configuration options - visit our section in [API Reference](https://neurosell.gitbook.io/parallelix/api-reference/general-client).

---

### **Connect your Modules and Usage**

Modules are connected automatically when you specify their name in the Parallelix object configuration. The module name is also contained in the script (parallelix.MODULE\_NAME.js).

If you don't need a particular module, you can simply remove it from the configuration.

**Once connected and initialized, you are notified that the client is ready for use. This is how you can start using it:**

```javascript
// Your Client Initialization Handler
client.OnInitialized = (data) => {
    // Publish story to social Network
    client.Platform.PublishStory("mediaURL", {
        vk: {
            // Platform Specific Request Parameters from VK Bridge Docs
        },
        telegram: {
            // Platform Specific Request Parameters from Telegram SDK Docs
        }
    }, (data)=> {
        console.log(data);
    }, (error)=> {
        console.error(error.message);
    });
};
```

---

## What’s Next?

We look forward to your comments, feedback and of course - new ideas. All detailed information can be found [in our GitHub](https://github.com/Neurosell/parallelix).
