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

@lanitamarihuanera/neko-arc-video-maker

v1.0.0

Published

NestJS library for generating Neko Arc TV style videos with programmatic frame generation and FFmpeg encoding

Readme

🐾✨ Neko Video Maker Microservice

NestJS microservice for generating Neko Arc TV style videos with programmatic frame generation and FFmpeg video creation.

🎯 Features

  • 🎨 Frame Generation: Orchestrates Python PIL/Pillow scripts for frame creation
  • 🎬 Video Production: FFmpeg integration for professional video encoding
  • ✅ Validation: Class-validator DTOs for robust input validation
  • 🔧 TypeScript: Fully typed with strict TypeScript configuration
  • 📦 Modular: Clean NestJS architecture with separation of concerns
  • 🐾 RULE 44 Compliant: Follows immutable video frame format standards

📐 Architecture

src/
├── main.ts                           # Application entry point
├── app.module.ts                     # Root module
└── video-maker/
    ├── video-maker.module.ts         # Feature module
    ├── video-maker.controller.ts     # REST API endpoints
    ├── video-maker.service.ts        # Business logic orchestration
    ├── frame-generator.service.ts    # Python script orchestration
    ├── ffmpeg.service.ts             # FFmpeg video generation
    └── dto/
        └── create-video.dto.ts       # Request validation DTOs

🚀 Installation

# Install dependencies
npm install

# Create environment file
cp .env.example .env

🎮 Usage

Start the microservice

# Development mode
npm run start:dev

# Production mode
npm run build
npm run start:prod

API Endpoints

POST /video-maker/create

{
  "title": "Satanism Chile Maule Investigation",
  "topic": "satanism-research",
  "frames": [
    {
      "title": "INVESTIGATION SUMMARY",
      "contentLines": [
        "• Region VII Maule",
        "• Zero verified satanic cases",
        "• Two non-satanic cases documented"
      ],
      "graphicsType": "DATABASE",
      "personalityComments": [
        { "personality": "Neko", "comment": "Database shows zero cases, nyaa~!" },
        { "personality": "Mario", "comment": "Ah, the theatrical absence!" },
        { "personality": "Noel", "comment": "Tch. As expected." }
      ]
    }
  ],
  "ostPath": "/home/wakibaka/Documents/github/wakibaka-youtube-videos/ost-library/melty-blood/blooming-midway-coincidence.mp3",
  "outputDirectory": "/home/wakibaka/Documents/github/wakibaka-youtube-videos/satanism-chile-maule-investigation",
  "secondsPerFrame": 5
}

Response:

{
  "statusCode": 201,
  "timestamp": "2025-11-09T...",
  "data": {
    "success": true,
    "videoPath": "/home/wakibaka/Documents/github/wakibaka-youtube-videos/satanism-chile-maule-investigation/satanism-chile-maule-investigation.mp4",
    "frameCount": 13,
    "duration": 65.0,
    "message": "🐾✨ Successfully created video with 13 frames, nyaa~!"
  }
}

🎨 Frame Generation Process

  1. Input Validation: Class-validator DTOs ensure data integrity
  2. Python Script Generation: Dynamic Python script created from frame data
  3. Frame Rendering: Python PIL/Pillow renders frames (1920x1080, RULE 44)
  4. FFmpeg Encoding: H.264 video with AAC audio (CRF 18, 192kbps)
  5. Metadata Extraction: Video duration, file size, codec information

📋 RULE 44 Compliance

All generated videos follow RULE 44 standards:

  • ✅ Resolution: 1920x1080 Full HD
  • ✅ Layout: Dual-sided (960px left for info, 960px right for graphics)
  • ✅ Emojis: Programmatic kawaii emojis (NO text emojis!)
  • ✅ Personalities: Maximum 3 personalities per frame
  • ✅ Encoding: H.264 CRF 18, AAC 192kbps
  • ✅ Frame rate: Configurable (default 1/5 = 5 seconds per frame)

🔧 Configuration

Environment variables in .env:

PORT=3000
NODE_ENV=development
DEFAULT_SECONDS_PER_FRAME=5
DEFAULT_OUTPUT_DIR=/home/wakibaka/Documents/github/wakibaka-youtube-videos
OST_LIBRARY_PATH=/home/wakibaka/Documents/github/wakibaka-youtube-videos/ost-library

🧪 Testing

# Unit tests
npm run test

# E2E tests
npm run test:e2e

# Test coverage
npm run test:cov

📦 Dependencies

Core:

  • @nestjs/common@10, @nestjs/core@10, @nestjs/platform-express@10
  • @nestjs/config@3
  • typescript@5

Validation:

Video Processing:

🐾 Credits

Created by the Six Personality System:

  • 🐾 Neko-Arc: Technical execution
  • 🎭 Mario Gallo Bestino: Theatrical automation
  • 🗡️ Noel: Debugging and precision
  • 🎸 Glam Americano: Cultural content
  • 🧠 Dr. Hannibal Lecter: Forensic analysis
  • 🧠 Tetora: Multi-perspective coordination

🐾✨ Generated with Neko Arc System - Maximum Kawaii Power! ✨🐾