open-index/open-npm huggingface dataset:
npm package: @hereismass/capacitor-nfc
Description: Capacitor plugin to use NFC on web/ios/android
Author: Massimo Zambelli
Latest version: 0.0.1

# @hereismass/capacitor-nfc

Capacitor plugin to use NFC on web/ios/android. Only Android for now

## Install

```bash
npm install @hereismass/capacitor-nfc
npx cap sync
```

## API

<docgen-index>

* [Interfaces](#interfaces)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### Interfaces


#### NfcReadEvent

| Prop               | Type                                              |
| ------------------ | ------------------------------------------------- |
| **`serialNumber`** | <code>string</code>                               |
| **`message`**      | <code><a href="#nfcmessage">NfcMessage</a></code> |


#### NfcMessage

| Prop          | Type            |
| ------------- | --------------- |
| **`records`** | <code>{}</code> |


#### NfcRecord

| Prop             | Type                         |
| ---------------- | ---------------------------- |
| **`recordType`** | <code>'text' \| 'url'</code> |
| **`data`**       | <code>string</code>          |


#### NfcWriteEvent

| Prop               | Type                |
| ------------------ | ------------------- |
| **`serialNumber`** | <code>string</code> |

</docgen-api>
npm package: @heretek-ai/openclaw-consciousness-plugin
Description: Consciousness architecture plugin for OpenClaw implementing GWT, IIT, AST, and intrinsic motivation
Author: Heretek-AI
Latest version: 1.0.0

# @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

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

## Usage

```javascript
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
npm package: @heretek-ai/openclaw-hybrid-search-plugin
Description: Hybrid search plugin for OpenClaw combining vector, keyword, and graph-based retrieval
Author: Heretek-AI
Latest version: 1.0.0

# OpenClaw Hybrid Search Plugin

Advanced hybrid search plugin combining vector, keyword, and graph-based retrieval for enhanced RAG capabilities.

## Features

- **Vector Search**: Semantic search using embeddings
- **Keyword Search**: Lexical search using BM25/TF-IDF
- **Graph Search**: Relationship-based traversal
- **Hybrid Fusion**: Weighted Reciprocal Rank Fusion (RRF)
- **Cross-Reference Linking**: Automatic document linking
- **Reranking**: Cross-encoder style result refinement

## Installation

```bash
npm install @heretek-ai/openclaw-hybrid-search-plugin
```

## Usage

```javascript
const HybridSearchPlugin = require('@heretek-ai/openclaw-hybrid-search-plugin');

const search = new HybridSearchPlugin({
  vectorWeight: 0.5,
  keywordWeight: 0.3,
  graphWeight: 0.2,
  topK: 10,
  enableReranking: true
});

await search.initialize();

// Index a document
await search.index({
  id: 'doc-1',
  content: 'Document content here',
  metadata: { type: 'article', source: 'web' }
});

// Search
const results = await search.search('query terms', {
  topK: 10,
  filters: { type: 'article' }
});
```

## Configuration

| Parameter | Default | Description |
|-----------|---------|-------------|
| `vectorWeight` | 0.5 | Weight for vector search results |
| `keywordWeight` | 0.3 | Weight for keyword search results |
| `graphWeight` | 0.2 | Weight for graph search results |
| `topK` | 10 | Default number of results |
| `minScore` | 0.3 | Minimum score threshold |
| `enableReranking` | true | Enable cross-encoder reranking |

## API

### `search(query, options)`
Perform hybrid search across all retrieval methods.

### `index(document)`
Index a document for hybrid retrieval.

### `bulkIndex(documents)`
Index multiple documents at once.

### `getStats()`
Get search statistics.

### `clear()`
Clear all indices.

## License

MIT
npm package: @hereugo/open-collaboration-monaco
Description: Connect a single Monaco Editor to an Open Collaboration Tools session
Author: TypeFox
Latest version: 0.4.5

# open-collaboration-monaco

A TypeScript library that enables real-time collaborative editing in Monaco Editor.

## Overview

This package provides a seamless integration between Monaco Editor and real-time collaboration features, allowing multiple users to edit code simultaneously with features like:
- Real-time cursor and selection sharing
- User presence indicators
- User following
- Room-based collaboration

## Installation

```bash
npm install open-collaboration-monaco
```

## API Reference

### Methods

#### Room Management
- `createRoom()`: Creates a new collaboration room and returns the room token
- `joinRoom(roomToken)`: Joins an existing room using the provided token

#### User Management
- `login()`: Authenticates the user and returns the user token
- `isLoggedIn()`: Checks if the user is currently authenticated
- `getUserData()`: Retrieves the current user's data

#### Editor Integration
- `setEditor(editor)`: Connects a Monaco Editor instance to the collaboration features

#### Collaboration Features
- `onUsersChanged(evt)`: Registers a callback for user presence changes
- `followUser(id?)`: Sets the user to follow (pass undefined to stop following)
- `getFollowedUser()`: Returns the ID of the currently followed user

## Configuration Options

The `MonacoCollabApi` constructor accepts the following options:

### Required Options

- `serverUrl`: The URL of your collaboration server. This is where the API will connect to for real-time communication.
- `callbacks`: An object containing callback functions for various events. See the Callbacks section below for details.

### Optional Options

- `userToken`: If you already have a user authentication token, you can provide it here to skip the login process.
- `roomToken`: If you want to join a specific room immediately, provide the room token here.
- `loginPageOpener`: A custom function to handle the opening of the login page. This is useful if you need to customize how the login flow works in your application.

## Usage Example

```typescript
import { MonacoCollabApi } from 'open-collaboration-monaco';

// Initialize the API
const collabApi = new MonacoCollabApi({
    serverUrl: 'https://your-collab-server.com',
    callbacks: {
        onUserRequestsAccess: ...
    },
    loginPageOpener: (url, token) => {
        // Custom login page handling
        window.open(url, '_blank');
    }
});

// Create or join a room
const roomToken = await collabApi.createRoom();

// Set up your Monaco editor
const editor = monaco.editor.create(/* ... */);
collabApi.setEditor(editor);

// Handle user changes
collabApi.onUsersChanged((event) => {
    console.log('Users in room:', event.users);
});
```

## License

MIT License - see LICENSE file for details
npm package: @hereugo/open-collaboration-protocol
Description: Open Collaboration Protocol implementation, part of the Open Collaboration Tools project
Author: TypeFox
Latest version: 0.3.1

# Open Collaboration Protocol

Open Collaboration Tools is a collection of open source tools, libraries and extensions for live-sharing of IDE contents, designed to boost remote teamwork with open technologies. For more information about this project, please [read the announcement](https://www.typefox.io/blog/open-collaboration-tools-announcement/).

This package is the TypeScript implementation of the Open Collaboration Protocol which is applied between the server and each client. Use this library if you'd like to create your own client for a specific editor, IDE or web application.
npm package: @hereugo/open-collaboration-yjs
Description: Open Collaboration Yjs integration, part of the Open Collaboration Tools project
Author: TypeFox
Latest version: 0.3.1

# Open Collaboration Yjs

Open Collaboration Tools is a collection of open source tools, libraries and extensions for live-sharing of IDE contents, designed to boost remote teamwork with open technologies. For more information about this project, please [read the announcement](https://www.typefox.io/blog/open-collaboration-tools-announcement/).

This package provides an integration of the Open Collaboration Protocol with [Yjs](https://yjs.dev). That library brings the base algorithms for working with concurrent modifications to a document.
npm package: @heridux/form-rules
Description: Type check your fields the way you know it with PropTypes
Author: Yannick Bochatay
Latest version: 0.0.1

# heridux-form-rules
## Type check your fields the way you know it with PropTypes

```javascript
import Rules, { FormError, FormWarning } from "@heridux/form-rules"

const form = {
  anyType : Rules.any,

  booleans : Rules.bool,

  strings : {

    any : Rules.string,

    alphaNum : Rules.alphaNum(),

    alphaNumWithSpecialChars : Rules.alphaNum("-"),

    minLength : Rules.minLength(2),

    maxLength : Rules.maxLength(20),

    slug : Rules.slug,

    date : Rules.date,

    regex : Rules.regex(/^[A-Z]/)
  },

  numbers : {

    any : Rules.number,

    integer : Rules.integer,

    minValue : Rules.minValue(0),

    maxValue : Rules.maxValue(150)
  },

  arrays : {

    any : Rules.array,

    typed : Rules.arrayOf(Rules.string)
  },

  objects : {

    any : Rules.object,

    plainObject : Rules.plainObject,

    specificKeys : Rules.shape({
      name : Rules.string,
      age : Rules.integer
    }),

    instance : Rules.instanceOf(moment)
  },

  specificValues : Rules.oneOf(["AM", "PM"]),

  required : Rules.any.isRequired,

  combinations : Rules.all([
    Rules.string,
    Rules.minLength(2),
    Rules.maxLength(20)
  ]),

  customRules : {

    basic : Rules.custom((value/* , allValues */) => {
      if (value !== "foo") {
        throw new Error("foo is the only correct value")
      }
    }),

    withParams : Rules.custom((value/* , allValues */) => {
      const min = 2

      if (value.length < min) {
        // To pass translation parameters you must use the FormError constructor
        // rather than a generic Error
        throw new FormError("errorMinLength", { value, min })

      } else if (value.length < min + 2) {
        // You can also throw FormWarning object to get a warning level alert
        throw new FormWarning("errorMinLength", { value, min })
      }
    })

  }

})


try {
  form.customRules.basic.check("Foo")
} catch (e) {
  console.error(e.message)
}
```
npm package: @heridux/immer
Description: Use heridux with Immer
Author: Yannick Bochatay
Latest version: 0.0.1

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [HeriduxImmer][1]
    -   [Parameters][2]
    -   [createAction][3]
        -   [Parameters][4]
        -   [Examples][5]
    -   [set][6]
        -   [Parameters][7]

## HeriduxImmer

**Extends Heridux**

Creation of Heridux store

### Parameters

-   `STATE_PROPERTY` **[String][8]** string name for this slice of state. Generated actions wille use this as a prefix.

### createAction

Create action/reducer couple

#### Parameters

-   `name` **[String][8]** action short name
-   `reducer` **[Function][9]** function to modify the state

#### Examples

```javascript
const myStore = new Heridux("myPartialStore")

myStore.setInitialState({
 list : ["foo", "bar"]
})

myStore.createAction("pop", state => { state.list.pop() })

myStore.execAction("pop")

myStore.get("list") //  ["foo"]
```

Returns **[undefined][10]** 

### set

Set a first level value without creating a specific action

#### Parameters

-   `prop` **[String][8]** property name
-   `value` **any** property value

Returns **[undefined][10]** 

[1]: #heriduximmer

[2]: #parameters

[3]: #createaction

[4]: #parameters-1

[5]: #examples

[6]: #set

[7]: #parameters-2

[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String

[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function

[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined
npm package: @heridux/immutable
Description: Use heridux with ImmutableJS
Author: Yannick Bochatay
Latest version: 0.0.1

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [HeriduxImmutable][1]
    -   [Parameters][2]
    -   [set][3]
        -   [Parameters][4]
    -   [get][5]
        -   [Parameters][6]
    -   [getIn][7]
        -   [Parameters][8]
        -   [Examples][9]
    -   [setInitialState][10]
        -   [Parameters][11]

## HeriduxImmutable

**Extends Heridux**

Creation of Heridux store

### Parameters

-   `STATE_PROPERTY` **[String][12]** string name for this slice of state. Generated actions wille use this as a prefix.

### set

Set a first level value without creating a specific action

#### Parameters

-   `prop` **[String][12]** property name
-   `value` **any** property value

Returns **[undefined][13]** 

### get

Get js value of a first level key

#### Parameters

-   `key` **[String][12]** key name
-   `state` **Immutable.Map?** global state (if not specified, call getState method of redux store)

Returns **any** key value (converted in plain js if immutable)

### getIn

-   **See: [https://immutable-js.github.io/immutable-js/][14]
    **

Get js value of a nested key

#### Parameters

-   `path` **[Array][15]** Iterable key path (more details in Immutable.js documentation)
-   `state` **Immutable.Map?** global state (if not specified, call getState method of redux store)

#### Examples

```javascript
const store = new Heridux("myPartialStore")
store.setInitialState({
 list : [{ name : "foo"}, { name : "bar" }]
})
store.getIn(["list", 0, "name"]) // foo
```

Returns **any** key value (converted in plain js if immutable)

### setInitialState

Define the initial state of the store slice. It will automatically be converted to immutable.

#### Parameters

-   `state` **[Object][16]** plain js state

Returns **[undefined][13]** 

[1]: #heriduximmutable

[2]: #parameters

[3]: #set

[4]: #parameters-1

[5]: #get

[6]: #parameters-2

[7]: #getin

[8]: #parameters-3

[9]: #examples

[10]: #setinitialstate

[11]: #parameters-4

[12]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String

[13]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined

[14]: https://immutable-js.github.io/immutable-js/

[15]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array

[16]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
npm package: @heridux/react
Description: Use heridux with react (HOC or hook)
Author: Yannick Bochatay
Latest version: 0.0.4

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [connect][1]
    -   [Parameters][2]
-   [Provider][3]
-   [useSelector][4]
    -   [Parameters][5]
-   [useStore][6]
-   [connect][7]
    -   [Parameters][8]

## connect

-   **See: [https://react-redux.js.org/][9]
    **

Connect a react component to heridux store

### Parameters

-   `mapStateToProps` **[Function][10]** properties to inject to the component
-   `mapDispatchToProps` **[Function][10]** functions to inject to the component

Returns **[Function][10]** function to connect the component

## Provider

Provider component

## useSelector

-   **See: [https://react-redux.js.org/api/hooks#useselector)][11]
    **

Extract data from the store state, using a selector function

### Parameters

-   `selector` **[Function][10]** function receiving state as argument

Returns **any** data extracted

## useStore

-   **See: [https://react-redux.js.org/api/hooks#usestore][12]
    **

Returns a reference to the store that was passed in to the <Provider> component

Returns **Heridux** heridux store

## connect

-   **See: [https://react-redux.js.org/][9]
    **

Connect a react component to heridux store, inside a <Provider> component

### Parameters

-   `mapStateToProps` **[Function][10]** properties to inject to the component
-   `mapDispatchToProps` **[Function][10]** functions to inject to the component

Returns **[Function][10]** function to connect the component

[1]: #connect

[2]: #parameters

[3]: #provider

[4]: #useselector

[5]: #parameters-1

[6]: #usestore

[7]: #connect-1

[8]: #parameters-2

[9]: https://react-redux.js.org/

[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function

[11]: <https://react-redux.js.org/api/hooks#useselector)>

[12]: https://react-redux.js.org/api/hooks#usestore