GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Documentation
  • API Reference
  • Getting started
  • FAQ
  • Socket Firewall
  • Prerequisites
  • Stand Up Socket Firewall For The First Time
  • Flat block
  • Cooldown
  • Policy config
  • Redis cache
  • Metadata filtering
  • Deployments
  • DNS override

This view

  • Original page
  • New address

GeezerVison is showing docs.socket.dev — Socket JavaScript SDK

The Socket JavaScript SDK provides typed access to the Socket API from Node.js.

Install

The SDK requires Node.js 24 or newer.
Use a .mjs file or configure TypeScript for ESM.

pnpm add @socketsecurity/sdk

Authenticate and check quota

Create an API token and provide it through the SOCKET_API_TOKEN environment variable.

import { SocketSdk } from '@socketsecurity/sdk'

const token = process.env.SOCKET_API_TOKEN
if (!token) {
  throw new Error('Set SOCKET_API_TOKEN before running this script.')
}

const sdk = new SocketSdk(token)
const quota = await sdk.getQuota()
if (!quota.success) {
  throw new Error(`Socket API ${quota.status}: ${quota.error}`)
}

console.log(`Available quota: ${quota.data.quota}`)

API documentation

Use the SDK repository for method signatures, client options, and detailed examples:

  • API reference
  • API client guide
  • OpenAPI contracts

Repository documentation follows the latest source and can include APIs that are not yet in the published package.
Use the release history to check availability for your installed version.

The Socket REST API reference describes endpoint behavior, request fields, and permissions.

Updated 2 months ago


Did this page help you?
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.