Skip to content

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

Notifications You must be signed in to change notification settings

bebiksior/EvenBetterAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EvenBetterAPI Twitter

NPM Version

Note

I think that current Caido SDK is enough for most of the things you might want to do. This API has been built when plugins were still a simple Custom JS box. I think that this API is still useful for things that need to edit core Caido functionality - thats why I still use it in reworked EvenBetter 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published