Hue is an open-source SQL Query Editor for databases and data warehouses, providing a comprehensive set of building blocks for building SQL interfaces. The current stable version is 6.0.1, with a focus on SQL parsers that power advanced autocomplete and syntax analysis, and a lightweight Web Component called SQL Scratchpad for embedding a shareable SQL editor. It offers both ESM and CJS modules, though the library is primarily designed for browser use. Key differentiators include its rich autocomplete and parsing capabilities for multiple SQL dialects, making it a powerful tool for building custom SQL editors or integrating querying functionality into existing web applications.
npm install gethueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Embeds the SQL Scratchpad Web Component into an HTML page, connecting to a Hue demo instance.
Update script source to './node_modules/gethue/lib/components/SqlScratchpadWebComponent.js' instead of './node_modules/gethue/dist/...'
Use require() consistently, or configure a bundler to handle CJS interop.
Use 'gethue' instead of 'hue' in package.json dependencies and require/import statements.
Ensure all required attributes are set, even if some are empty strings.
Run `npm install gethue` and ensure the script src points to the correct file under node_modules/gethue/lib/components/.
Change `import { SqlParser } from 'gethue'` to `const { SqlParser } = require('gethue');`Use the specific Web Component script tag as shown in the quickstart, or bundle the library with Webpack/Rollup.