npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bluezone-hllapi

v0.1.45

Published

Low-level HLLAPI interface for Rocket BlueZone via Node.js

Downloads

48

Readme

🚀 Bluezone HLLAPI for Node.js

npm version License Node.js Version Rust Version Build Status npm downloads GitHub issues GitHub last commit GitHub release

A high-performance Node.js binding for the Bluezone HLLAPI (High Level Language Application Programming Interface) library, enabling seamless integration with IBM mainframe systems through Rocket BlueZone terminal emulation.

✨ Features

  • 🔌 Native HLLAPI integration with BlueZone
  • 🎭 Built-in mock mode for development and testing
  • 🚀 High-performance Rust implementation
  • 🔒 Type-safe API with comprehensive error handling
  • 📦 Zero-configuration installation
  • 🔄 Automatic session management
  • 🛡️ Resource cleanup and memory safety
  • 📝 Comprehensive documentation and examples

📋 Table of Contents

💾 Installation

npm install bluezone-hllapi

No additional build tools (Rust, etc.) are required for installation. The package includes pre-built binaries for Windows.

📋 Prerequisites

🚀 Quick Start

const { HllapiClient } = require('bluezone-hllapi');

// Create a new HLLAPI client
const client = new HllapiClient();

// Connect to a session
await client.connect(1);

// Send data to the terminal
const result = await client.callHllapi(1, 3, "Hello World", 11);
console.log('Response:', result);

// Disconnect when done
await client.disconnect(1);

📚 API Reference

HllapiClient

The main class for interacting with BlueZone HLLAPI.

Constructor

const client = new HllapiClient(config);

Parameters:

  • config (Object, optional):
    • dllPath (string): Custom path to HLLAPI DLL
    • useMock (boolean): Force mock mode
    • retryCount (number): Connection retry attempts
    • retryDelay (number): Delay between retries in ms

Methods

connect(sessionId)

Establishes a connection to a BlueZone session.

disconnect(sessionId)

Terminates a BlueZone session connection.

callHllapi(sessionId, functionNumber, data, dataLength)

Executes a HLLAPI function call.

cleanup()

Releases all HLLAPI resources.

getSession(sessionId)

Retrieves information about a specific session.

getSessions()

Returns information about all active sessions.

isMock()

Checks if the client is running in mock mode.

🎭 Mock Mode

The module includes a mock implementation for development and testing:

const client = new HllapiClient({ useMock: true });

if (client.isMock()) {
  console.log('Running in mock mode - perfect for development!');
}

Mock Mode Features

  • Development without BlueZone installation
  • CI/CD pipeline compatibility
  • Graceful error handling
  • Console warnings for mock operations

🧪 Testing

Unit Tests

npm test
# or
cargo test

Node.js Tests

npm run test:node

Integration Tests

npm run test:integration

Coverage Reports

npm run test:coverage

🛠️ Development

Requirements

Building from Source

git clone https://github.com/Malco-Enterprises-of-Nevada/NodeJS-Bluezone-HLLAPI.git
cd NodeJS-Bluezone-HLLAPI
npm install
npm run build

🤝 Contributing

We welcome contributions!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

Copyright (c) 2025 Malco Enterprises of Nevada. All rights reserved.

🔗 Resources