Development Status: hanalyzer is currently in active development and should not be used in production environments. The software may contain bugs, incomplete features, and breaking changes may occur without notice.
hanalyzer is the browser-based control surface for hlquery. It gives you a visual way to work with collections, documents, search behavior, health data, and operational settings without manually stitching together API calls, JSON payloads, or ad hoc scripts.
Instead of treating hlquery like a set of disconnected endpoints, hanalyzer organizes the server into one interface for search operations, collection administration, document inspection, diagnostics, and monitoring.
Use hanalyzer when you want hlquery management to feel operational and readable instead of repetitive. It is useful when you need to inspect data quickly, verify behavior during development, watch server health live, or hand a teammate a UI instead of a folder full of curl examples.
Clone the repository normally:
$ git clone https://github.com/hlquery/hanalyzer.git
$ cd hanalyzer/Install dependencies and start the dashboard:
$ npm install
$ ./hanalyzerBy default, hanalyzer runs on http://localhost:8080 and connects to HLQuery at http://localhost:9200.
Node.js and npm:
- Node.js 18.0.0 or higher
- npm 9.0.0 or higher
Note: Make sure your hlquery server is running and accessible. hanalyzer connects to the HLQuery API (default:
http://localhost:9200).
$ npm install
$ npm run devStatic dev/build defaults live in hanalyzer.conf.js:
export default {
runtime: {
defaultBaseUrl: 'http://localhost:9200',
// Example fallback token if the UI has nothing saved yet.
defaultAuthToken: '',
defaultAuthMethod: 'bearer'
},
server: {
port: 8080,
host: 'localhost',
allowedHosts: ['demo.hlquery.com'],
apiTarget: 'http://localhost:9200',
baseUrl: './'
}
}Using the hanalyzer CLI (Recommended):
$ ./hanalyzerOr with custom options:
$ ./hanalyzer --port 3000
$ ./hanalyzer --api http://your-server:9200
$ ./hanalyzer --open # Automatically open browserUsing npm scripts:
# Development server
$ npm run dev
# Production build
$ npm run build
# Preview production build
$ npm run previewImportant:
- Do not open
dist/index.htmlwithfile://. - Serve the built files over
http://orhttps://, for example withnpm run preview. - The production build now defaults to relative asset paths plus hash-based routing, so
dist/can be mounted under/,/hanalyzer/, or another static subdirectory without extra rewrite rules.
Note: hanalyzer runs on port 8080 by default. Ensure this port is available and not blocked by your firewall.
Make sure your HLQuery server is running:
$ ./run/hlquery startVerify it's accessible:
$ curl http://localhost:9200/health$ cd hanalyzer/
$ ./hanalyzerOpen your browser and navigate to:
http://localhost:8080
You should see the hanalyzer dashboard with connection status to your HLQuery server.
