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

@pixam/voe

v1.0.1

Published

A production-grade API wrapper for VOE video hosting service

Readme

@pixam/voe

A production-grade TypeScript API wrapper for the VOE video hosting service.

Features

  • 🚀 Full TypeScript support with comprehensive type definitions
  • 🔒 Input validation using Zod
  • 🔄 Automatic retry mechanism for failed requests
  • ⚡ Rate limiting support
  • 🛡️ Error handling with custom error classes
  • 📝 Complete API coverage
  • 🧪 Built-in TypeScript types

Installation

# Using bun
bun add @pixam/voe

# Using npm
npm install @pixam/voe

# Using yarn
yarn add @pixam/voe

# Using pnpm
pnpm add @pixam/voe

Usage

import { VoeClient } from '@pixam/voe';

// Initialize the client
const client = new VoeClient({
  apiKey: 'YOUR_API_KEY',
});

// Example: Get account information
const accountInfo = await client.getAccountInfo();
console.log(accountInfo);

// Example: Upload a file
const fileBuffer = await readFile('video.mp4');
const uploadResult = await client.uploadFile(fileBuffer, 'video.mp4');
console.log(uploadResult);

// Example: Add remote upload
const remoteUpload = await client.addRemoteUpload('https://example.com/video.mp4');
console.log(remoteUpload);

// Example: Get file information
const fileInfo = await client.getFileInfo('file_code');
console.log(fileInfo);

// Example: Create a folder
const folderId = await client.createFolder('My Videos');
console.log(folderId);

API Reference

Account Methods

  • getAccountInfo(): Get account information
  • getAccountStats(): Get account statistics

Upload Methods

  • getUploadServer(): Get upload server URL
  • uploadFile(file: Buffer | string, filename: string): Upload a file
  • addRemoteUpload(url: string, folderId?: number): Add remote upload
  • getRemoteUploadList(): Get remote upload list

File Methods

  • cloneFile(fileCode: string, folderId?: number): Clone a file
  • getFileInfo(fileCodes: string | string[]): Get file information
  • getFileList(params?: FileListParams): Get file list
  • renameFile(fileCode: string, title: string): Rename a file
  • moveFileToFolder(fileCode: string, folderId: number): Move file to folder
  • deleteFile(fileCode: string | string[]): Delete file(s)

Folder Methods

  • getFolderList(folderId?: number): Get folder list
  • createFolder(name: string, parentId?: number): Create a folder
  • renameFolder(folderId: number, name: string): Rename a folder

History Methods

  • getDeletedFiles(params?: DMCAListParams): Get deleted files
  • getDMCAList(params?: DMCAListParams): Get DMCA list

Settings Methods

  • getCurrentDomain(): Get current adblock domain

Premium Methods

  • generatePremiumKeys(params: PremiumKeyGenerationParams): Generate premium keys

Error Handling

The client includes custom error classes for better error handling:

import { VoeClient, VoeError, VoeAuthenticationError } from '@pixam/voe';

try {
  const client = new VoeClient({ apiKey: 'invalid_key' });
  await client.getAccountInfo();
} catch (error) {
  if (error instanceof VoeAuthenticationError) {
    console.error('Authentication failed:', error.message);
  } else if (error instanceof VoeError) {
    console.error('VOE API error:', error.message);
  } else {
    console.error('Unknown error:', error);
  }
}

Configuration

The client accepts the following configuration options:

interface VoeConfig {
  apiKey: string;
  baseURL?: string;
  timeout?: number;
  retryAttempts?: number;
  retryDelay?: number;
}

Rate Limiting

The client automatically handles rate limiting according to VOE's API guidelines (3-4 requests per second).

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License