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

@uploadista/flow-videos-nodes

v0.1.1

Published

Video processing nodes for Uploadista Flow

Readme

@uploadista/flow-videos-nodes

Video processing nodes for Uploadista flows. Transcode, resize, trim, and extract metadata from video files.

Installation

npm install @uploadista/flow-videos-nodes @uploadista/flow-videos-av-node
# or
pnpm add @uploadista/flow-videos-nodes @uploadista/flow-videos-av-node

Quick Start

import {
  createTranscodeVideoNode,
  createVideoResizeNode,
  createVideoThumbnailNode,
  createTrimVideoNode,
  createDescribeVideoNode,
} from "@uploadista/flow-videos-nodes";

Node Types

Transcode Node

Convert video to different formats and codecs.

import { createTranscodeVideoNode } from "@uploadista/flow-videos-nodes";

// Convert to WebM with VP9 codec
const transcodeNode = yield* createTranscodeVideoNode("transcode-1", {
  format: "webm",
  codec: "vp9",
  videoBitrate: "1000k",
});

// Convert to MP4 with H.264 for compatibility
const mp4Node = yield* createTranscodeVideoNode("transcode-2", {
  format: "mp4",
  codec: "h264",
  videoBitrate: "2M",
  audioBitrate: "128k",
  audioCodec: "aac",
});

// With streaming mode for large files
const streamingNode = yield* createTranscodeVideoNode("transcode-3", {
  format: "mp4",
  codec: "h264",
}, {
  mode: "streaming",
  naming: { mode: "auto" },
});

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | format | "mp4" \| "webm" \| "mov" \| "avi" | Yes | Output container format | | codec | "h264" \| "h265" \| "vp9" \| "av1" | No | Video codec | | videoBitrate | string | No | Video bitrate (e.g., "1000k", "2M") | | audioBitrate | string | No | Audio bitrate (e.g., "128k", "192k") | | audioCodec | "aac" \| "mp3" \| "opus" \| "vorbis" | No | Audio codec |

Resize Video Node

Change video resolution.

import { createVideoResizeNode } from "@uploadista/flow-videos-nodes";

// Resize to 720p
const resizeNode = yield* createVideoResizeNode("resize-1", {
  width: 1280,
  height: 720,
  aspectRatio: "keep",
  scaling: "bicubic",
});

// Resize to 1080p width, auto height
const widthOnlyNode = yield* createVideoResizeNode("resize-2", {
  width: 1920,
  aspectRatio: "keep",
});

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | width | number | No* | Target width in pixels | | height | number | No* | Target height in pixels | | aspectRatio | "keep" \| "ignore" | No | Aspect ratio handling mode | | scaling | "bicubic" \| "bilinear" \| "lanczos" | No | Scaling algorithm quality |

*At least one of width or height must be specified.

Trim Video Node

Extract a segment from a video.

import { createTrimVideoNode } from "@uploadista/flow-videos-nodes";

// Extract segment using endTime
const trimNode = yield* createTrimVideoNode("trim-1", {
  startTime: 10,
  endTime: 30,
});

// Extract segment using duration
const durationNode = yield* createTrimVideoNode("trim-2", {
  startTime: 10,
  duration: 20,
});

Parameters

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | startTime | number | Yes | Start time in seconds | | endTime | number | No | End time in seconds | | duration | number | No | Duration in seconds (alternative to endTime) |

Note: Cannot specify both endTime and duration.

Thumbnail Node

Generate a preview image from the video.

import { createVideoThumbnailNode } from "@uploadista/flow-videos-nodes";

// Extract frame at 15 seconds as JPEG
const thumbnailNode = yield* createVideoThumbnailNode("thumbnail-1", {
  timestamp: 15,
  format: "jpeg",
  quality: 85,
});

// Extract frame as PNG
const pngThumbNode = yield* createVideoThumbnailNode("thumbnail-2", {
  timestamp: 5,
  format: "png",
});

Parameters

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | timestamp | number | Yes | - | Time position in seconds | | format | "jpeg" \| "png" | No | "jpeg" | Output image format | | quality | number (1-100) | No | - | JPEG quality (only for jpeg format) |

Describe Video Node

Extract comprehensive video metadata.

import { createDescribeVideoNode } from "@uploadista/flow-videos-nodes";

// Extract video metadata
const describeNode = yield* createDescribeVideoNode("describe-1");

// Metadata stored in file.metadata.videoInfo

Parameters

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | keepOutput | boolean | No | false | Keep output in flow results |

Output Metadata:

{
  "duration": 120.5,
  "width": 1920,
  "height": 1080,
  "codec": "h264",
  "format": "mp4",
  "bitrate": 2500000,
  "frameRate": 30,
  "aspectRatio": "16:9",
  "hasAudio": true,
  "audioCodec": "aac",
  "audioBitrate": 128000,
  "size": 37500000
}

Streaming Modes

All video transform nodes support three processing modes:

| Mode | Description | When to Use | |------|-------------|-------------| | auto | Selects streaming for files > 10MB | Default, recommended | | buffered | Loads entire file into memory | Small files | | streaming | Processes file as chunks | Large files, memory-constrained |

Requirements

License

MIT