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

yt-neural-miner

v4.4.6

Published

Neural Miner: Extract Metadata, Audio, Video & Emotions from YouTube using AI pipelines.

Readme

Neural Miner

Neural Miner is an advanced, multi-modal AI pipeline designed to mine deep contextual understanding from YouTube videos. It orchestrates a suite of neural networks to extract metadata, transcribe audio, analyze visual storytelling, and derive emotional context—all synced to a structured database.


Features

Metadata Engine

  • Extracts rich metadata including Title, Duration, Cast, Singers, and Summaries.
  • Uses Llama 3 (via Ollama) to intelligently parse and structure unstructured video descriptions.
  • Auto-corrects missing or malformed fields.

Audio Engine (Whisper + Romanization)

  • Transcription: High-accuracy speech-to-text using OpenAI's Whisper.
  • Romanization: Automatically detects non-English segments (e.g., Hindi, Spanish) and converts them to Romanized Text (colloquial spelling) using Llama 3 for better searchability.
  • Noise Filtering: Intelligently removes hallucinations and spam phrases (e.g., "Subscribe now").

Video Engine (Vision Language Model)

  • Uses Qwen2-VL-2B-Instruct to "watch" the video.
  • Extracts key visual frames and generates a detailed Visual Narrative describing scenery, lighting, actions, and character interactions.

Emotion Engine

  • Analyzes the combined context of Lyrics, Visuals, and Metadata.
  • Derives precise Emotional Tags (e.g., Melancholic, Energetic, Romantic) to categorize content by mood.

Database Sync

  • Seamlessly pushes all extracted data to a PostgreSQL database.
  • Smart conflict handling: Updates existing records without overwriting critical IDs.
  • Vector-ready: Generates embeddings for semantic search (using BAAI/bge-m3).

Prerequisites

Before installing, ensure you have the following dependencies set up:

  1. Node.js (v16+)
  2. Python (v3.10+) with pip.
  3. FFmpeg installed and added to your system PATH.
  4. Ollama running locally with the required models:
ollama pull llama3
ollama pull qwen2vl

Installation

Install the package globally via npm:

npm install -g yt-neural-miner

Usage

Neural Miner provides a robust CLI with two main modes: Run and Sync.

1. Run Pipeline

Downloads the video and runs the selected analysis engines.

miner run "[https://www.youtube.com/watch?v=VIDEO_ID](https://www.youtube.com/watch?v=VIDEO_ID)"

Options:

| Option | Description | Default | | :-------------- | :------------------------------------------------------------------------ | :---------- | | -p, --process | Select specific engines (metadata, audio, video, emotions, all) | all | | --mode | Storage mode (local or db) | Interactive | | --keep | Keep local files after DB upload | false | | --cookies | Path to cookies.txt for restricted videos | null |

Example:

# Run only Audio & Metadata, save locally
miner run "[https://youtu.be/xyz](https://youtu.be/xyz)" -s audio metadata --mode local

2. Sync Existing Data

If you have processed videos locally and want to push the cached data to your database later.

miner sync "[https://www.youtube.com/watch?v=VIDEO_ID](https://www.youtube.com/watch?v=VIDEO_ID)" --db "postgresql://user:pass@localhost:5432/mydb"

Output Structure

When running in local mode, artifacts are organized by Video ID:

output/
└── <video_id>/
    ├── video.mp4            # Source Video File
    ├── audio.mp3            # Extracted Audio Track
    ├── metadata.json        # Structured Metadata (JSON)
    ├── transcript.txt       # Cleaned & Romanized Transcript
    ├── video_narrative.txt  # Frame-by-frame Visual Analysis
    └── emotions.json        # List of Derived Emotional Tags

Configuration

You can provide your Database URL in three ways (prioritized order):

  1. CLI Flag:

    miner run URL --db "postgresql://..."
  2. Interactive Prompt: The CLI will ask you for the URL if it is missing.

  3. Environment Variable: Set MINER_DB_URL in your system environment or a .env file in the execution directory.


Author

Dheer Jain


License

This project is licensed under the ISC License.