Node.js SDK

The MeetLogin Node.js SDK (in development) wraps the REST API.

Installation

Not yet published. The SDK is not on the public package registry yet, so the install command below will not work until it is released. Until then, use the REST API directly with your API key in the X-API-Key header.

npm install meetlogin  # available once released

Initialization

import MeetLogin from 'meetlogin'

const client = new MeetLogin({
  token: 'YOUR_API_KEY',
  // Optional: override base URL for self-hosted
  baseUrl: 'https://api.meetlogin.com/api/v1',
})

List Profiles

const profiles = await client.profiles.list({
  workspaceId: 'YOUR_WORKSPACE_ID',
})
console.log(profiles) // Array of profile objects

Create a Profile

const profile = await client.profiles.create({
  name: 'New Account',
  os: 'win',
  browserVersion: '137',
  workspaceId: 'YOUR_WORKSPACE_ID',
  tags: ['amazon', 'us'],
})
console.log(profile.id)

Launch a Profile

// Start the profile and get the CDP WebSocket URL
const { wsUrl } = await client.profiles.start(profile.id)

// Connect Puppeteer to the running profile
const puppeteer = require('puppeteer-core')
const browser = await puppeteer.connect({ browserWSEndpoint: wsUrl })
const page = await browser.newPage()
await page.goto('https://amazon.com')
console.log(await page.title())

Stop a Profile

await client.profiles.stop(profile.id)