flipper-headless-demo

0.212.0 • Public • Published

headless-demo

Experimental feature!

Flipper can run plugins in a headless mode - expose their API over the wire. This is a simple example of how it might look like.

Quick start

  1. Run yarn from this repo to install dependencies
  2. Start Flipper Server: from desktop folder run yarn flipper-server
  3. Start an Android device
  4. Run yarn start from this repo

What happens under the hood

  1. This script connects to Flipper via WebSockets
  2. It fetches a list of devices
  3. It fetches a list of available headless plugins for the Android device
  4. It activates headless-demo plugin
  5. It sends increment command to the plugin

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i flipper-headless-demo

    Weekly Downloads

    5

    Version

    0.212.0

    License

    MIT

    Unpacked Size

    3.68 kB

    Total Files

    4

    Last publish

    Collaborators

    • fb
    • antonk52
    • flipper-bot