francoischalifour / instantsearch-devtools

Tools for visualizing the InstantSearch state on any production app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InstantSearch Devtools

🚧 This project is an experimentation and works with a patched version of InstantSearch.js.

Tools for visualizing the InstantSearch state on any production app.

Screenshot

Features

  • See widgets' tree
  • Log widget to the console
  • Show widget state (+ copy to clipboard)
  • Show widget search parameters (+ copy to clipboard)
  • Show search results (+ copy to clipboard)

Preview

Preview

How it works

This works by injecting a middleware to InstantSearch.js to plug the window.__INSTANTSEARCH_DEVTOOLS_GLOBAL_MIDDLEWARE__ middleware if present. This middleware is part of the visualizer tool that will be exposed as a browser extension in the future.

Once this patched InstantSearch detects that this middleware is available, it hooks it into its lifecycle and notifies it of every change.

License

MIT

About

Tools for visualizing the InstantSearch state on any production app

License:MIT License


Languages

Language:TypeScript 95.5%Language:CSS 3.0%Language:HTML 1.5%