New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@vizlook/sdk

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vizlook/sdk

Vizlook JavaScript SDK

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@vizlook/sdk

Official Vizlook Javscript SDK.

https://www.npmjs.com/package/@vizlook/sdk

Install

npm install @vizlook/sdk

Usage

import Vizlook from "@vizlook/sdk";

const vizlook = new Vizlook({
  apiKey: process.env.VIZLOOK_API_KEY,
});

Performs a video search on the Vizlook system.

const response = await vizlook.search("how to be productive", {
  maxResults: 5,
  startPublishedDate: "2025-08-19T15:01:36.000Z",
  endPublishedDate: Date.now(),
  includeTranscription: true,
  includeSummary: true,
});

Generates an answer to a query.

const response = await vizlook.answer("how to be productive", {
  includeTranscription: true,
});

Streams an answer to a query.

const streamResponse = vizlook.streamAnswer("how to be productive");
let answer = "";

for await (const chunk of streamResponse) {
  switch (chunk.type) {
    case "answer-chunk":
      answer += chunk.data;
      console.log("Answer chunk:", chunk.data);
      break;
    case "data-citations":
      console.log("Citations:", chunk.data.citations);
      break;
    case "data-cost":
      console.log("Cost:", chunk.data.dollarCost);
      break;
    case "error":
      console.log("Error:", chunk.data.errorText);
      break;
  }
}
console.log("Final answer:", answer);

Retrieves contents of videos based on specified URLs.

const response = await vizlook.getVideoContents(
  "https://www.youtube.com/watch?v=QdBokRd2ahw",
  {
    crawlMode: "Always",
    includeTranscription: true,
    includeSummary: true,
  }
);

Documentation

https://docs.vizlook.com

API

https://docs.vizlook.com/documentation/api-reference/search

Contributing

Feel free to submit pull requests. For larger-scale changes, though, it's best to open an issue first so we can deliberate on your plans.

Keywords

vizlook

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts