@electric-sql/debug-toolbar
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published
ElectricSQL logo

ElectricSQL - Developer Toolbar

These are a collection of tools that can be used by developers to help them debug their ElectricSQL apps

Adding this toolbar to your project

Add the toolbar to your project's devDependencies in package.json

  "devDependencies": {
    ...
    "@electric-sql/debug-toolbar": "latest",
    ...
    }

In your code after calling electrify, if in debug mode, import and pass the electric client into addToolbar:

const electric = await electrify(conn, schema, config)

if (config.debug) {
  const { addToolbar } = await import('@electric-sql/debug-toolbar')
  addToolbar(electric)
}

This will add the toolbar to the bottom of your window

Dependencies (11)

Dev Dependencies (18)

Package Sidebar

Install

npm i @electric-sql/debug-toolbar

Weekly Downloads

811

Version

2.0.1

License

Apache-2.0

Unpacked Size

16.6 MB

Total Files

25

Last publish

Collaborators

  • sgwillis
  • icehaunter
  • thruflo