MCPcopy Index your code
hub / github.com/albinekb/open-pip

github.com/albinekb/open-pip @v3.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.6 ↗ · + Follow
5 symbols 8 edges 1 files 0 documented · 0% updated 6y ago★ 74
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🎥 open-pip Standard - JavaScript Style Guide

Module that will let you open a movie url/path in macOS native picture-in-picture player.

Both local files and urls are supported.

Known working formats - mp4 - m4v - mov

Known not working formats - mkv - avi

example

example

install

yarn add open-pip

Usage

const open = require('open-pip')

open('/path/to/movie.mp4')
  .then(() => console.log('Worked 🎉'))
  .catch(error => console.log('Something went wrong 💀', error))

How does it work?

It uses child-process-promise to run this command:

open pip.app --args <absolute-path-to-file>

pip.app is a simple macOS app that reads the input argument and tries to load it in an AVPlayer

Source for pip.app can be found here: https://github.com/albinekb/open-pip-app

Related

Credits

Inspiration came from this hack: https://github.com/steve228uk/PiPHack

Author

Albin Ekblom (@albinekb)

Core symbols most depended-on inside this repo

parseUrl
called by 1
index.js
kill
called by 1
index.js
cleanup
called by 1
index.js
didFail
called by 0
index.js
open
called by 0
index.js

Shape

Function 5

Languages

TypeScript100%

Modules by API surface

index.js5 symbols

For agents

$ claude mcp add open-pip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page