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

@exeq/sdk

v1.0.0

Published

Javascript and Typescript SDK for Exeq

Downloads

6

Readme

Exeq TypeScript SDK

Official TypeScript/JavaScript SDK for the Exeq browser automation platform. Create and manage remote browser sessions with a simple, clean API.

Installation

npm install @exeq/sdk

Quick Start

import { ExeqClient } from '@exeq/sdk';

const client = new ExeqClient({
  apiKey: 'your-api-key'
});

// Create a browser session
const session = await client.createSession({
  sessionRecordingEnabled: true
});

console.log('Session created:', session.id);
console.log('Connect via CDP:', session.cdpUrl);
console.log('Connect via VNC:', session.vncUrl);

// Stop the session when done
await client.stopSession(session.id);

Authentication

Get your API key from the Exeq Dashboard and initialize the client:

const client = new ExeqClient({
  apiKey: 'exeq_your_api_key_here',
  baseUrl: 'https://api.exeq.dev' // optional, this is the default
});

Session Management

Create Session

Create a new browser session with optional configuration:

const session = await client.createSession({
  duration: '1h',                    // Session duration (e.g., '30m', '2h')
  sessionRecordingEnabled: true,     // Record the session for playback
  profileId: 'profile-123',          // Use a specific browser profile
  residentialProxyEnabled: true,     // Use residential proxy
  residentialProxyCountry: 'US',     // Proxy country code
  residentialProxyState: 'CA',       // Proxy state (US only)
  residentialProxyCity: 'Los Angeles' // Proxy city
});

Get Session

Retrieve details about an existing session:

const session = await client.getSession('session-id');
console.log('Status:', session.status);
console.log('CDP URL:', session.cdpUrl);

List Sessions

Get all your sessions with optional pagination:

const sessions = await client.listSessions({
  limit: 10,    // Number of sessions to return
  offset: 0     // Offset for pagination
});

Stop Session

Stop and delete a session:

await client.stopSession('session-id');

Extend Session

Extend the duration of an active session:

const updatedSession = await client.extendSession('session-id', '30m');

Profile Management

List Profiles

Get all available browser profiles:

const profiles = await client.listProfiles();
profiles.forEach(profile => {
  console.log(`${profile.name} (${profile.id})`);
});

Get Profile

Get details about a specific profile:

const profile = await client.getProfile('profile-id');

Connecting to Sessions

Once you create a session, you can connect to it using:

Chrome DevTools Protocol (CDP)

import { chromium } from 'playwright';

const session = await client.createSession();
const browser = await chromium.connectOverCDP(session.cdpUrl);

const page = await browser.newPage();
await page.goto('https://example.com');

VNC (Visual Access)

// Use any VNC client with the provided credentials
console.log('VNC URL:', session.vncUrl);
console.log('VNC Password:', session.vncPassword);

TypeScript Types

The SDK includes full TypeScript support with these main types:

interface Session {
  id: string;
  status: 'creating' | 'queued' | 'active' | 'stopping' | 'stopped' | 'failed';
  cdpUrl: string;
  vncUrl: string;
  vncPassword: string;
  expiresAt: string | null;
  createdAt: string;
  sessionRecordingEnabled?: boolean;
  sessionRecordingUrl?: string | null;
  residentialProxyEnabled?: boolean;
}

interface CreateSessionOptions {
  duration?: string;
  sessionRecordingEnabled?: boolean;
  profileId?: string;
  residentialProxyEnabled?: boolean;
  residentialProxyCountry?: string;
  residentialProxyState?: string;
  residentialProxyCity?: string;
}

interface Profile {
  id: string;
  name: string;
  createdAt: string;
}

Error Handling

The SDK throws standard JavaScript errors. Wrap calls in try-catch blocks:

try {
  const session = await client.createSession();
  // Use session...
} catch (error) {
  console.error('Failed to create session:', error.message);
}

Examples

Session Recording

import * as fs from 'fs';
import * as https from 'https';

const session = await client.createSession({
  sessionRecordingEnabled: true,
  duration: '10m'
});

// After your automation...
const updatedSession = await client.getSession(session.id);
if (updatedSession.sessionRecordingUrl) {
  console.log('Recording available:', updatedSession.sessionRecordingUrl);
  
  // Download the recording
  const file = fs.createWriteStream('session-recording.json');
  https.get(updatedSession.sessionRecordingUrl, (response) => {
    response.pipe(file);
    file.on('finish', () => {
      file.close();
      console.log('Recording downloaded to session-recording.json');
    });
  });
}

Support

License

MIT