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

vidnavigator

v0.1.6

Published

Official JavaScript SDK for the VidNavigator Developer API

Readme

VidNavigator JavaScript SDK

The official JavaScript SDK for the VidNavigator Developer API.

This SDK provides a convenient, fully-typed wrapper around the VidNavigator REST API, making it easy to integrate video transcription, analysis, and search into your Node.js applications.

Features

  • Modern TypeScript: Fully written in TypeScript for a great developer experience with autocompletion and type-safety.
  • Rich Object Models: API responses are automatically converted into intuitive classes (VideoInfo, FileInfo, AnalysisResult, etc.).
  • Promise-based: All asynchronous operations return Promises for easy integration with async/await.
  • Minimal Dependencies: Lightweight and relies only on axios for HTTP requests and form-data for uploads.
  • Node.js Support: Optimized for server-side use in Node.js 16+.

Installation

npm install vidnavigator
# or
yarn add vidnavigator

Quick Start

First, initialize the SDK with your API key. It's recommended to store your key in an environment variable.

import { VidNavigatorClient } from 'vidnavigator';

const vn = new VidNavigatorClient({
  apiKey: process.env.VIDNAVIGATOR_API_KEY!,
});

Now you can easily call any of the API methods.

Example: Get a Video Transcript

import { VidNavigatorClient, VideoInfo } from 'vidnavigator';

const vn = new VidNavigatorClient({ apiKey: 'YOUR_API_KEY' });

async function getTranscript() {
  try {
    const { video_info, transcript } = await vn.getTranscript({
      video_url: 'https://youtube.com/watch?v=dQw4w9WgXcQ',
    });

    console.log(`Title: ${video_info.title}`);
    console.log(`Is this a VideoInfo object?`, video_info instanceof VideoInfo);
    console.log('First 3 transcript segments:');
    transcript.slice(0, 3).forEach(segment => {
      console.log(`  [${segment.start.toFixed(2)}s]: ${segment.text}`);
    });
  } catch (error) {
    console.error('Failed to get transcript:', error);
  }
}

getTranscript();

Example: Upload and Analyze a File

import { VidNavigatorClient } from 'vidnavigator';

const vn = new VidNavigatorClient({ apiKey: 'YOUR_API_KEY' });

async function uploadAndAnalyze(filePath: string) {
  try {
    // Upload the file and wait for processing to complete
    const { file_info } = await vn.uploadFile({ 
      filePath, 
      wait_for_completion: true 
    });
    console.log(`File '${file_info.name}' uploaded successfully.`);

    // Analyze the uploaded file
    const { transcript_analysis } = await vn.analyzeFile({ 
      file_id: file_info.id 
    });
    console.log('--- Analysis Summary ---');
    console.log(transcript_analysis.summary);

  } catch (error) {
    console.error('Operation failed:', error);
  }
}

uploadAndAnalyze('./my-meeting.mp4');

API Reference

All methods return a Promise that resolves with an object containing rich data models.

Transcripts

  • vn.getTranscript(payload)

Transcribe

  • vn.transcribeVideo(payload)

Files

  • vn.getFiles([query])
  • vn.getFile(file_id)
  • vn.uploadFile(options)
  • vn.deleteFile(file_id)

Analysis

  • vn.analyzeVideo(payload)
  • vn.analyzeFile(payload)

Search

  • vn.searchVideos(payload)
  • vn.searchFiles(payload)

System

  • vn.getUsage()
  • vn.healthCheck()

Please refer to the inline documentation in your IDE for detailed information on the payloads and return types for each method.

More Examples & Documentation

For a comprehensive set of usage examples covering more SDK features, please see the test.py

For full API documentation, visit docs.vidnavigator.com.

License

Apache-2.0