A Chrome DevTools extension for debugging and exploring CubeJS queries in real-time.
- Node.js 20+
- pnpm (package manager)
-
Clone the repository:
git clone https://github.com/general-dexterity/cube-explorer.git cd cube-explorer -
Install dependencies:
pnpm install
- Development server:
pnpm dev - Production build:
pnpm build - TypeScript check:
pnpm typecheck - Lint:
pnpm lint - Format:
pnpm format
- Run all tests:
pnpm test - Watch mode:
pnpm test:watch - Single test:
pnpm test component-name
-
Build the extension:
pnpm build
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked" and select the
dist/directory - Or install the ZIP file from
release/directory
- Open Chrome and navigate to
-
Open DevTools on any page and look for the "Cube Explorer" tab
- Chrome Extension with Manifest V3
- React + TypeScript UI components
- Ark-UI for accessible headless components
- Phosphor Icons for iconography
- Tailwind CSS for styling with dark mode support
- Vitest for testing
src/
├── devtools/ # Main extension code
│ ├── components/ # React components
│ ├── hooks/ # Custom React hooks
│ ├── mock/ # Development mock data
│ └── main.tsx # Entry point
├── types/ # TypeScript type definitions
└── ...
- Extension includes mock data in development mode for testing
- Uses
@/alias forsrc/directory imports - Strict TypeScript configuration with null checks
- All components support light/dark mode via Tailwind classes