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

@hami-frameworx/core

v0.1.4

Published

Core library for HAMI

Downloads

10

Readme

@hami-frameworx/core

npm version License

The core package for HAMI (Human Agent Machine Interface) - a modular, plugin-based workflow system for building agentic applications.

Features

  • Plugin Architecture: Extensible node-based system with plugin support
  • Type-Safe Configuration: Built-in validation for node and flow configurations
  • Core Operations: Essential nodes for logging, data mapping, and dynamic execution
  • Flow Composition: Build complex workflows from reusable components
  • Event-Driven: Registration lifecycle with hooks for customization

Installation

npm install @hami-frameworx/core

Quick Start

import { hamiRegistrationManager, CorePlugin } from '@hami-frameworx/core';

// Register the core plugin
await hamiRegistrationManager.registerPlugin(CorePlugin);

// Create and run a debug node
const debugNode = hamiRegistrationManager.createNode('core:debug');
await debugNode.run({ message: 'Hello HAMI!' });

Core Nodes

This package provides the following core node types:

  • core:debug: Logs the entire shared state for debugging
  • core:log-result: Logs result data with various formatting options (table, JSON, generic)
  • core:log-error: Logs error information from shared state
  • core:assign: Assigns properties from shared state using dot-notation paths
  • core:dynamic-runner: Dynamically creates and runs nodes based on configuration
  • core:dynamic-runner-flow: Flow wrapper for dynamic node execution

Basic Usage

Creating a Custom Node

import { HAMINode, HAMINodeConfigValidateResult } from '@hami-frameworx/core';

interface MyNodeConfig {
  inputKey: string;
  multiplier: number;
}

class MyMultiplierNode extends HAMINode<Record<string, any>, MyNodeConfig> {
  kind(): string {
    return 'example:multiplier';
  }

  validateConfig(config: MyNodeConfig): HAMINodeConfigValidateResult {
    if (config.multiplier < 0) {
      return { valid: false, errors: ['Multiplier must be non-negative'] };
    }
    return { valid: true, errors: [] };
  }

  async prep(shared: Record<string, any>): Promise<number> {
    return shared[this.config!.inputKey] || 0;
  }

  async exec(prepRes: number): Promise<void> {
    const result = prepRes * this.config!.multiplier;
    shared.result = result;
  }
}

Creating a Flow

import { HAMIFlow } from '@hami-frameworx/core';

class MyFlow extends HAMIFlow<Record<string, any>, { inputKey: string }> {
  constructor(config: { inputKey: string }) {
    const multiplierNode = new MyMultiplierNode({
      inputKey: config.inputKey,
      multiplier: 2
    });
    super(multiplierNode, config);
  }

  kind(): string {
    return 'example:my-flow';
  }
}

Plugin Development

import { createPlugin } from '@hami-frameworx/core';

const myPlugin = createPlugin(
  "@my-org/custom-nodes",
  "1.0.0",
  [MyMultiplierNode, MyFlow],
  "Custom nodes for mathematical operations"
);

// Register the plugin
await hamiRegistrationManager.registerPlugin(myPlugin);

API Reference

For detailed API documentation, see the TypeScript definitions and source code.

Contributing

Contributions are welcome! Please see the main repository for contribution guidelines.

License

MIT © Mahesh K Bhat

Links