Skip to content

webdeveric/kibana-plus-web-ext

Repository files navigation

Kibana ➕

This web extension modifies the output from Kibana to pretty print the JSON fields.

This extension is a rewrite of kibana-plus-chrome-extension so that it works in Firefox and Chrome.

Local development

Setup

cp .env.example .env

Set KIBANA_URL to the URl of your Kibana site. This will let web-ext know which site to open automatically when it starts.

Development

Run these in two different terminals.

  • This runs webpack in watch mode.

    npm run dev
  • This runs web-ext and loads the extension in Firefox.

    npm start

    This runs web-ext and loads the extension in Firefox and Chrome.

    npm run start:both

Build the extension

This will transpile the plugin and build a zip file for the extension.

The zip will be put in ./build.

npm run build

Extension signing for Firefox

Define your api key / secret in your environment then run the following.

Credentials can be found at https://addons.mozilla.org/en-US/developers/addon/api/key/

This generates an xpi file and it will be put in ./build.

npm run sign -- --api-key=$WEB_EXT_API_KEY --api-secret=$WEB_EXT_API_SECRET

Useful links