bebiksior / EvenBetterAPI

EvenBetterAPI is a API that is used in the EvenBetter Caido frontend plugin. It allows you to create custom components, listen to custom events and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EvenBetterAPI Twitter

NPM Version

EvenBetterAPI is a API that is used in EvenBetter.

Here's what you can do with this API:

  • Listen to custom events like: onCaidoLoad, onContextMenuOpen, onPageOpen, onSettingsTabOpen.
  • Create tables and fill it with your data by using the EvenBetterAPI.components.createTable object.
  • Create navigation menus by using the EvenBetterAPI.components.createNavigationBar function.
  • Add prompts to commands in the command palette by using the EvenBetterAPI.promptCommands.createPromptCommand function.
  • Create components such as text inputs, checkboxes, etc. by using the EvenBetterAPI.components object.
  • Open modals by using the EvenBetterAPI.modal object.
  • Show toast notifications by using the EvenBetterAPI.toast object.

Example: creating a table

const evenBetterAPI = new EvenBetterAPI(caido, {
  manifestID: "evenbetter-sampleplugin",
  name: "EvenBetter: Sample Plugin",
});

const randomTable = evenBetterAPI.components.createTable({
    columns: [
      { name: "Name", width: "15em" },
      { name: "Value", width: "15em" },
    ],
});

randomTable.addRow([
  {
    columnName: "Name",
    value: "EvenBetterAPI",
  },
  {
    columnName: "Value",
    value: "Awesome",
  },
])

randomTable.getHTMLElement(); // returns the table HTMLElement

Example Plugin

For a full example of how to use this API, check out the EvenBetterPluginExample repository.

Note

This is not official Caido frontend API. Official Caido frontend API can be found at Caido SDK Frontend. You can use this API in your own Caido frontend plugins.

Installation

You can install EvenBetterAPI by running:

pnpm i @bebiks/evenbetter-api

Community

Come join Caido community on Discord. EvenBetter has separate channel #evenbetter. Feel free to ask questions, share your ideas and report bugs :D

About

EvenBetterAPI is a API that is used in the EvenBetter Caido frontend plugin. It allows you to create custom components, listen to custom events and more.

License:The Unlicense


Languages

Language:TypeScript 97.7%Language:CSS 2.3%