Socket
Socket
Sign inDemoInstall

chokibro

Package Overview
Dependencies
155
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chokibro

A chockidar spacebro connected client


Version published
Maintainers
1
Created

Readme

Source

Chokibro

Watch a folder on the system and broadcast change event in realtime to the spacebro galaxy. The spacebro server serves on http the media which has been: add, change, or delete/unlink

Super useful to automatically:

  • 🖼 upload media to a remote service
  • 🎥 create automated post-production process
  • 👂 listen for file uploads on a ftp folder
  • 🤖 anything a bot could be good at

It emits a message which looks like this:

{
    namespace: String (name-with-dash),
    src: String (URI format),
    path: String (file path)
}

🌍 Installation

Since, we remove mediaInfo in favor of ffprobe, you should be able to use the package as is. We use @ffprobe-installer/ffprobe to install ffprobe with the correct binary. If you encounter some difficulies, make sure ffmpeg is installed.

Use npm i to install dependencies.

⚙ Configuration

The settings follow standard-settings format. You can change them to fit your needs:

{
  "server":{
    "port": 36400
  },
  "service": {
    "spacebro": {
      "host": "spacebro.space",
      "port": 3333,
      "client": {
        "name": "chokibro",
        "description": "Tool to watch a folder and send new media added in folder",
				"out": {
					"outMedia": {
						"eventName": "outMedia",
						"description": "New media added in folder tracked by chokibro",
						"type": "all"
					},
					"unlinkMedia": {
						"eventName": "unlink-media",
						"description": "Media removed in folder tracked by chokibro",
						"type": "all"
					}
        }
      },
      "channelName": "info-stream"
    }
  },
  "folder": "./assets",
  "checkIntegrity": false,
}

👋 Usage

  1. Start spacebro in a terminal window: spacebro

  2. Start chokibro: npm run start

By default, chokibro is listening for the assets folder and exposes it over a static file server at the ipv4 available address on the 6161 port.

  1. Drag and drop a file into the assets folder. See how spacebro reports the event.

📦 Dependencies

  • chokidar
  • finalhandler
  • ip
  • ffprobe
  • portfinder
  • serve-static
  • spacebro-client
  • standard-settings

🕳 Troubleshooting

All the help you can provide to avoid falling in a trap or a black hole.

❤️ Contribute

Explain how to contribute to the project

Keywords

FAQs

Last updated on 03 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc