Skip to content

hlquery/hanalyzer

Repository files navigation

hlquery logo

A modern dashboard for managing, monitoring, and analyzing hlquery servers.

Follow hlquery hanalyzer build hanalyzer Demo License

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.

What is hanalyzer?

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.

Why use it?

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.

Quick Start

Clone the repository normally:

$ git clone https://github.com/hlquery/hanalyzer.git
$ cd hanalyzer/

Install dependencies and start the dashboard:

$ npm install
$ ./hanalyzer

By default, hanalyzer runs on http://localhost:8080 and connects to HLQuery at http://localhost:9200.

Detailed Setup

Prerequisites

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).

Installation

$ npm install
$ npm run dev

Configuration

Static 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: './'
  }
}

Running hanalyzer

Using the hanalyzer CLI (Recommended):

$ ./hanalyzer

Or with custom options:

$ ./hanalyzer --port 3000
$ ./hanalyzer --api http://your-server:9200
$ ./hanalyzer --open  # Automatically open browser

Using npm scripts:

# Development server
$ npm run dev

# Production build
$ npm run build

# Preview production build
$ npm run preview

Important:

  • Do not open dist/index.html with file://.
  • Serve the built files over http:// or https://, for example with npm 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.

Getting Started

1. Start HLQuery Server

Make sure your HLQuery server is running:

$ ./run/hlquery start

Verify it's accessible:

$ curl http://localhost:9200/health

2. Start hanalyzer

$ cd hanalyzer/
$ ./hanalyzer

3. Access the Dashboard

Open your browser and navigate to:

http://localhost:8080

You should see the hanalyzer dashboard with connection status to your HLQuery server.

About

hanalyzer is a web-based dashboard and connector for hlquery, designed to manage, monitor, and analyze HLQuery servers through a modern browser interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors