open-index/open-npm huggingface dataset:
npm package: @lazy-ipfs/ipfs-versidag
Description: Concurrent version history based on a Merkle-DAG on top of IPFS and IPLD
Author: André Cruz
Latest version: 0.1.3

# ipfs-versidag

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]

[npm-url]:https://npmjs.org/package/ipfs-versidag
[downloads-image]:http://img.shields.io/npm/dm/ipfs-versidag.svg
[npm-image]:http://img.shields.io/npm/v/ipfs-versidag.svg
[travis-url]:https://travis-ci.org/ipfs-shipyard/js-ipfs-versidag
[travis-image]:http://img.shields.io/travis/ipfs-shipyard/js-ipfs-versidag/master.svg
[codecov-url]:https://codecov.io/gh/ipfs-shipyard/js-ipfs-versidag
[codecov-image]:https://img.shields.io/codecov/c/github/ipfs-shipyard/js-ipfs-versidag/master.svg
[david-dm-url]:https://david-dm.org/ipfs-shipyard/js-ipfs-versidag
[david-dm-image]:https://img.shields.io/david/ipfs-shipyard/js-ipfs-versidag.svg
[david-dm-dev-url]:https://david-dm.org/ipfs-shipyard/js-ipfs-versidag?type=dev
[david-dm-dev-image]:https://img.shields.io/david/dev/ipfs-shipyard/js-ipfs-versidag.svg

> Concurrent version history based on a Merkle-DAG on top of IPFS and IPLD.

This module wraps [versidag](https://github.com/ipfs-shipyard/js-versidag) and automatically configures `readNode` and `writeNode` to use [IPFS](https://ipfs.io/) and [IPLD](https://ipld.io/).

**version + dag = versidag**


## Installation

```sh
$ npm install ipfs-versidag
```

You must also install `ipfs` as it is a peer dependency of this module.


## Usage

```js
import IPFS from 'ipfs';
import createIpfsVersidag from 'ipfs-versidag';

const ipfs = new IPFS();

ipfs.on('ready', async () => {
    const myVersidag = createIpfsVersidag({
        ipfs,
        tieBreaker: (node1, node2) => /* */,
    });

    const myVersidagA = await myVersidag.add('Hi', 1);
    const myVersidagB = await myVersidagA.add('Hello', 2);
    const myVersidagC = await myVersidagA.add('Hi World', 3);
    const myVersidagD = await myVersidagB.merge(myVersidagC.headCids, 'Hello World');

    const versions = await myVersidagD.resolve();
    // [
    //   { version: 'Hello World' },
    //   { version: 'Hi World', meta: 3 }
    //   { version: 'Hello', meta: 2 }
    //   { version: 'Hi', meta: 1 }
    // ]
});
```

You may use the [IPLD explorer](https://explore.ipld.io/) to inspect the Merkle DAG.


## API

Please refer to the [versidag API](https://github.com/ipfs-shipyard/js-versidag).


## Tests

```sh
$ npm test
$ npm test -- --watch  # during development
```


## License

Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
npm package: @lazy-mcp/cli
Description: CLI tool for lazy-loading MCP tools in Claude Code
Author: Lazy MCP Contributors
Latest version: 0.5.4

# @mcp-toggle/cli

CLI tool to manage Claude Code MCP servers and memory files.

## Status

**Version**: 0.5.2
**Phase**: Moved to monorepo structure (Task 1.1)

## Migration Note

This is the existing CLI tool moved into the monorepo structure. It now depends on `@mcp-toggle/shared` for common functionality.

## Structure

```
cli/
├── src/                   # CLI source code (existing)
├── tests/                 # CLI tests (existing)
└── bin/                   # CLI executable (existing)
```

## Usage

```bash
# Install globally
npm install -g @mcp-toggle/cli

# Or run locally
npx @mcp-toggle/cli

# Interactive TUI
mcp-toggle

# List servers
mcp-toggle list

# Block a server
mcp-toggle block <server-name>
```

## Development

```bash
# Build CLI
npm run build

# Run tests
npm test

# Run linter
npm run lint
```

## Next Steps

1. Refactor to use shared core library
2. Update imports to reference @mcp-toggle/shared
3. Remove duplicated code
4. Update tests
npm package: @lazy-mcp/plugin
Description: Claude Code plugin for lazy-loading MCP tools based on agent intelligence
Author: Lazy MCP Contributors
Latest version: 2.0.1

# mcp-toggle Plugin

Claude Code plugin for context management with lazy loading capabilities.

## Status

**Version**: 2.0.0 (in development)
**Phase**: Task 1.1 - Monorepo Structure Creation

## Structure

```
plugin/
├── src/
│   ├── index.ts           # Plugin entry point
│   ├── hooks/             # PreToolUse, sessionStart, sessionEnd hooks
│   ├── commands/          # Plugin command handlers
│   ├── core/              # Core plugin logic
│   ├── models/            # Plugin-specific types
│   └── utils/             # Plugin utilities
└── tests/
    ├── unit/              # Unit tests
    └── integration/       # Integration tests
```

## Dependencies

- `@mcp-toggle/shared`: Shared core library with business logic

## Development

```bash
# Build plugin
npm run build

# Run tests
npm test

# Run linter
npm run lint
```

## Next Steps

1. Implement hook handlers (PreToolUse, sessionStart, sessionEnd)
2. Create command definitions
3. Implement core plugin logic
4. Add comprehensive tests
npm package: @lazy-mcp/shared
Description: Shared core library for lazy-mcp plugin and CLI
Author: Lazy MCP Contributors
Latest version: 2.0.1

# @mcp-toggle/shared

Shared core library for mcp-toggle plugin and CLI tool.

## Status

**Version**: 2.0.0 (in development)
**Phase**: Task 1.1 - Monorepo Structure Creation

## Purpose

Provides common business logic, types, and utilities shared between:
- Claude Code plugin (`plugin/`)
- CLI tool (`cli/`)

## Structure

```
shared/
├── src/
│   ├── types/             # Shared TypeScript types
│   ├── utils/             # Shared utility functions
│   └── models/            # Shared data models
└── tests/                 # Shared code tests
```

## Development

```bash
# Build shared library
npm run build

# Run tests
npm test

# Run linter
npm run lint
```

## Next Steps

1. Extract common types from CLI
2. Extract common utilities from CLI
3. Extract core business logic from CLI
4. Add comprehensive tests
npm package: @lazy-sol/a-missing-gem
Description: A collection of functions accidentally not included into web3.js and Ethers.js
Author: Basil Gorin
Latest version: 1.0.16

# A Missing Gem #
A collection of functions accidentally not included into web3.js and Ethers.js

## Prerequisites ##
* `web3` object available in the global namespace.
  Both Truffle and Hardhat with Truffle make an instance of web3 available in the global scope.

## Installation ##
```shell
npm i @lazy-sol/a-missing-gem
```

## Usage ##
The package is used as a __library__ in projects built with Truffle or Hardhat with Truffle.

### Printing an Account Balance ###

Code:
```javascript
// BN utils
const {
	print_amt,
} = require("@lazy-sol/a-missing-gem/bn_utils");

// get the account balance as BN
const balance = await web3.eth.getBalance("0x000000000000000000000000000000000000dEaD");

// print the BN in human readable format
console.log("balance: %o ETH", print_amt(balance));
```

Output:
```text
balance: '10k' ETH
```

### Extracting Gas Usage From Transaction Receipt ###
```
// block utils
const {
	extract_gas,
} = require("../include/block_utils");

// send the transaction to get the tx receipt
const receipt = await web3.eth.sendTransaction({
	from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe',
	to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe',
	value: '1000000000000000'
});

// extract the gas used
const gasUsed = extract_gas(receipt);

// print
console.log("gas used: %o", gasUsed);
```

Output:
```text
gas used: 21000
```

More usage examples to come.
The library is used in almost all the repos in [Lazy So[u]l Org.](https://github.com/lazy-sol/).

## Contributing
Please see the [Contribution Guide](./CONTRIBUTING.md) document to get understanding on how to report issues,
contribute to the source code, fix bugs, introduce new features, etc.

(c) 2017–2024 Basil Gorin  
(c) 2024–2025 Lazy So\[u\]l
npm package: @lazy-toolbox/mysql
Description: > A NodeJS toolbox made for a lazy development when dealing with MySQL.
Author: Friquet Luca
Latest version: 0.0.0

# Lazy Toolbox - MySQL

> A NodeJS toolbox made for a lazy development when dealing with MySQL.

![Lazy Toolbox](/doc/img/logo.png)

Made to tame MySQL like it should haved behaved natively.

## Index

- [Installation (NPM)](#install-npm)
- [Updates](#updates)
- [Documentation](#documentation)
	- [MySQL](#mysql)
	    - [LazySQL](#lazysql)

## [Installation (NPM)](#install-npm)

The installation is pretty straight forward:
```terminal
npm i @lazy-toolbox/mysql
```

### v0.0.0 - Initial commit


## [Documentation](#documentation)

This part explain all tools with examples if it's needed.

### [MySql](#mysql)
#### [LazySQL](#lazysql)
```ts
interface MySQLConnect {
    getConnection(): mysql.Connection;
    query(sql: string | mysql.QueryOptions): Promise<unknown>;
    close(): Promise<void>;
    beginTransaction(): Promise<void>;
    commit(): Promise<unknown>;
    rollback(): Promise<void>;
}
class LazySQL {
    static createConnection(config: string | mysql.ConnectionConfig): MySQLConnect;
}
```

An interface to communicate with a MySQL database in asynchronous.

Example:

```js
const { LazySQL } = require('@lazy-toolbox/mysql');
const login = () => {
    const dbLink = LazySQL.createConnection({
        host: 'localhost',
        port: 6060,
        username: 'root'
    });
    /*
    The query gives a result written like:
    [ // All selected datas
        { solution: 2 } // column 0
    ]
    */
    const result = await dbLink.query('SELECT 1 + 1 AS solution');
    /*
    The query result contain the following properties: error, results, fields.
    */
    console.log(result.results[0].solution);
    dbLink.close();
}
```