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

@heretek-ai/openclaw-consciousness-plugin

v1.0.0

Published

Consciousness architecture plugin for OpenClaw implementing GWT, IIT, AST, and intrinsic motivation

Readme

@heretek-ai/openclaw-consciousness-plugin

Consciousness architecture plugin for OpenClaw, implementing theories of consciousness for multi-agent coordination.

Theories Implemented

  • Global Workspace Theory (GWT) - Bernard Baars' model of consciousness as a central broadcast mechanism
  • Integrated Information Theory (IIT) - Giulio Tononi's phi (Φ) metric for system integration
  • Attention Schema Theory (AST) - Michael Graziano's self-modeling of attention allocation
  • Active Inference - Karl Friston's Free Energy Principle for autonomous behavior
  • Intrinsic Motivation - Self-Determination Theory (Deci & Ryan) for autonomous goal generation

Installation

cd plugins/openclaw-consciousness-plugin
npm install
npm link
openclaw plugins install @heretek-ai/openclaw-consciousness-plugin

Usage

const ConsciousnessPlugin = require('@heretek-ai/openclaw-consciousness-plugin');

// Initialize the plugin
const consciousness = new ConsciousnessPlugin({
  redisUrl: 'redis://localhost:6379',
  globalWorkspace: {
    ignitionThreshold: 0.7,
    maxWorkspaceSize: 7
  },
  phiEstimator: {
    sampleIntervalMs: 10000
  }
});

// Register an agent
consciousness.registerAgent('alpha', {
  status: 'active',
  focus: 'task-priority'
});

// Update attention
consciousness.updateAttention('alpha', 'deliberation', 0.8);

// Get consciousness metrics
const metrics = consciousness.getGlobalMetrics();
console.log('Collective Phi:', metrics.phi);

API

Global Workspace

  • submit(moduleId, content, priority) - Submit content for competition
  • broadcast(source, content, priority) - Broadcast to all modules
  • getWorkspaceContents() - Get current conscious content
  • getHistory(limit) - Get broadcast history

Phi Estimator

  • estimatePhi() - Calculate integrated information
  • getTrend(windowSize) - Get phi trend over time
  • getStats() - Get estimation statistics

Attention Schema

  • modelAttention(focus, intensity) - Model attention state
  • getAwarenessReport() - Get awareness report
  • controlAttention(goalFocus) - Control attention allocation

Intrinsic Motivation

  • updateDrives(events) - Update drive levels
  • generateGoals() - Generate goals from drives
  • getDriveLevels() - Get current drive levels

Active Inference

  • predict() - Generate predictions
  • activeInference(goalState) - Plan actions to minimize prediction error
  • perceptualInference(observations) - Update beliefs from observations

Architecture

ConsciousnessIntegrationLayer
├── GlobalWorkspace (GWT) - Broadcast mechanism
├── PhiEstimator (IIT) - Integration metrics
├── AttentionSchema (AST) - Self-modeling
├── IntrinsicMotivation - Goal generation
├── ActiveInference (FEP) - Autonomous behavior
└── Event Bus - Inter-module communication

Configuration

See config/default.json for default configuration options.

License

MIT