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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gumlet/nodejs-sdk

v1.0.23

Published

Gumlet helps developers deliver online video and images. This API encompasses Gumlet Video, Image and Video Analytics functionality to help you build your products better and faster than ever before.

Downloads

1,762

Readme

Gumlet

This library provides convenient access to the Gumlet REST API from TypeScript or JavaScript.

The full API of this library can be found in api.md.

Contents

Installation

npm install @gumlet/nodejs-sdk

Usage

import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});

const create = await client.videoAssets.create({
  format: 'ABR',
  collection_id: '646df1c9173a4a2fcac180b4',
  input: 'http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8',
  description: 'some description',
  tag: ['ball'],
  profile_id: '646df1c9173a4a2fcac180b7',
  cluster_type: 'prod',
  playlist_id: '6597acd5ed6f26a9c5ca9633',
  metadata: { headermeta: 'metavalue' },
  call_to_actions: [
    {
      start_time: 1,
      end_time: 90,
      text: 'some test',
      url: 'https://some-url.com',
      position_from_top: 11,
      position_from_right: 23,
      border_radius: '11',
      font_color: '#000001',
      background_color: '#ffffff',
    },
  ],
  folder: '697375fbfa2d1037283140e4',
});

console.log(create);

The examples in the following sections assume a client configured as shown above.

See the API reference for every available operation.

Authentication

Pass credentials to the generated client constructor. Environment variables are read automatically when supported by the target runtime.

| Option | Type | Default | Description | | --- | --- | --- | --- | | apiKey | string \| provider | - | Credential for the API_KEY scheme. Defaults to API_KEY. |

Declared schemes:

  • API_KEY bearer token

Errors

Non-success responses throw generated API errors. Error objects expose status, headers, response body, and request metadata where the target runtime supports it.

import { APIError } from '@gumlet/nodejs-sdk';

try {
  const create = await client.videoAssets.create({
    format: 'ABR',
    collection_id: '646df1c9173a4a2fcac180b4',
    input: 'http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8',
    description: 'some description',
    tag: ['ball'],
    profile_id: '646df1c9173a4a2fcac180b7',
    cluster_type: 'prod',
    playlist_id: '6597acd5ed6f26a9c5ca9633',
    metadata: { headermeta: 'metavalue' },
    call_to_actions: [
      {
        start_time: 1,
        end_time: 90,
        text: 'some test',
        url: 'https://some-url.com',
        position_from_top: 11,
        position_from_right: 23,
        border_radius: '11',
        font_color: '#000001',
        background_color: '#ffffff',
      },
    ],
    folder: '697375fbfa2d1037283140e4',
  });
} catch (err) {
  if (err instanceof APIError) {
    console.log(err.status, err.name, err.headers);
  }
  throw err;
}

Documented error statuses: 400, 401, 403, 404, 4XX.

Client Options

Configure the generated client by setting any of these options when you create it.

import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  timeout: 60000,
  maxRetries: 2,
  logLevel: 'debug',
});

| Option | Type | Default | Description | | --- | --- | --- | --- | | apiKey | string \| AuthTokenProvider | process.env["API_KEY"] | Credential for the API_KEY scheme. | | baseURL | string \| null | process.env["GUMLET_BASE_URL"] | Override the default API base URL. Pass null when selecting a configured environment. | | timeout | number | 60000 | Maximum time in milliseconds to wait for a response before aborting a request. | | maxRetries | number | 2 | Number of retries for temporary failures. | | defaultHeaders | HeadersInit | - | Headers sent with every request. | | defaultQuery | Record<string, string \| undefined> | - | Query parameters sent with every request. | | fetchOptions | RequestInit | - | Additional fetch options sent with every request. | | fetch | Fetch | - | Custom fetch implementation. | | logLevel | "off" \| "error" \| "warn" \| "info" \| "debug" \| null | process.env["GUMLET_LOG"] | Controls request and retry debug logging. | | logger | Logger \| null | console | Custom logger implementation. |

Request Options

| Option | Type | Default | Description | | --- | --- | --- | --- | | headers | HeadersInit | - | Per-request headers. | | query | Record<string, unknown> | - | Per-request query parameters. | | body | unknown | - | Override the generated request body. | | timeout | number | - | Per-request timeout in milliseconds. | | maxRetries | number | - | Per-request retry count. | | signal | AbortSignal | - | Abort an in-flight request. | | fetchOptions | RequestInit | - | Per-request fetch options. | | idempotencyKey | string | - | Idempotency key for retry-safe operations. Applies to this request and its retries. |

Retries and Timeouts

Generated clients support request timeouts and retry temporary failures such as network errors, 408, 409, 429, and 5xx responses. Retry delays honor Retry-After headers when present. Tune the retry and timeout client options shown above, or override them per request.

Helpers

  • Use .withResponse() on any request to inspect both parsed data and the raw Response object.
  • Every operation returns an APIPromise, so you can await it directly or chain .withResponse().

Logging

  • Set logLevel: "debug" to log request URLs, options, response status, response headers, and retry attempts.
  • Pass a custom logger to route logs into your own observability pipeline.
  • Set logLevel: null to disable environment-driven logging.

Requirements

  • Node.js 20+, a modern browser, or any runtime with fetch support

Powered by Scalar.