npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@alpuks/ml-api-unofficial

v0.1.8

Published

![Shield](https://img.shields.io/npm/v/@alpuks/ml-api-unofficial)

Readme

Unofficial API wrapper for Multilogin

Shield

This is a basic wrapper for accessing the API of Multilogin v5. A promise is returned for each call.

Endpoints supported:

  • createProfile
  • updateProfile
  • listProfiles
  • deleteProfile
  • updateProfileCore
  • migrateProfile
  • startProfile
  • stopProfile

Installing

The application is available via NPM.

npm install @alpuks/ml-api-unofficial

Usage

Setting up

let MlaApi = require("@alpuks/ml-api-unofficial");

// Enter the port on which Multilogin gets launched on
const api = new MlaApi({ port: 35000 });

Getting a list of profiles

api.listProfiles().then((profileList) => console.log(profileList));

Creating a new profile

let profileBody = {
  name: "testProfile",
  browser: "mimic",
  os: "win",
};

api
  .createProfile(profileBody)
  .then((profile_id) => console.log(profile_id))
  .catch((error) => console.log(error));

Updating a profile

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";
let profileBody = {
  name: "Renamed profile",
};

api
  .updateProfile(profileId, profileBody)
  .then((response) => console.log(response))
  .catch((error) => console.log(error));

Starting a profile

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";

// Possible options {profileId=..., loadTabs=True, automation=True, puppeteer=true}
let startOptions = { profileId, automation: true };

api
  .startProfile(startOptions)
  .then((websocket) => {
    // Connect selenium/puppeteer with the websocket for automation
  })
  .catch((error) => {
    console.log(error);
  });

Stopping a profile

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";

api.stopProfile(profileId).then(console.log("Sent stop request"));

Deleting a profile

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";

api.removeProfile(profileId).then((response) => console.log(response));

Migrating a profile from MLA v4 to MLA v5

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";

api.migrateProfile(profileId).then(console.log("Profile migrated"));

Updating the browser profile core to the latest version

let profileId = "10e56b91-6e6c-4ee5-8555-1a886665e6e7";

api.updateProfileCore(profileId).then(console.log("Profile updated"));

Examples

Here's a quick example on how to get a list of browsers that need their cores updated and update them while implementing a sleep function to not get rate limited.

let MlaApi = require("@alpuks/ml-api-unofficial");

const api = new MlaApi({ port: 35000 });

async function sleep(millis) {
  return new Promise((resolve) => setTimeout(resolve, millis));
}

api.listProfiles().then((listOfProfiles) => {
  listOfProfiles.forEach(async (profile) => {
    if (profile.browserNeedsUpdate) {
      api
        .updateProfileCore(profile.uuid)
        .then(() => console.log(`Update profile core of ${profile.name}`))
        .catch(() =>
          console.log(`Failed to update profile core of ${profile.name}`)
        );
    }
    // Timeout so that we would not spam the API
    await sleep(500);
  });
});

Dependencies

The wrapper is built using isomorphic-unfetch for compatibility with node and also most browsers.