This package exports components allowing the deployment of a browsable catalogue of libp2p Introspection Widgets
widgets
(required): Array of imported widgetsContent
(optional): React element to override the default introductory homepage texttitle
(optional): String to override the default HTML page titletheme
(optional): Object to replace the default SDK theme
Example:
import React from 'react'
import ReactDOM from 'react-dom'
import Catalogue from '@libp2p/observer-catalogue'
import * as connectionsTable from '@libp2p/observer-connections-table'
import * as eventsTable from '@libp2p/observer-events-table'
const widgets = [connectionsTable, eventsTable]
ReactDOM.render(
<Catalogue widgets={widgets} />,
document.getElementById('root')
)
A Create React App service worker which may improve performance for some catalogue builds. See https://create-react-app.dev/docs/making-a-progressive-web-app/ for details and guidance.