open-index/open-npm huggingface dataset:
npm package: @interrep/data-models
Description: Mongoose schemas and models used by InterRep.
Author: Omar Desogus
Latest version: 0.1.4

<p align="center">
    <h1 align="center">
        InterRep data models 
    </h1>
    <p align="center">Mongoose schemas and models used by InterRep.</p>
</p>

<p align="center">
    <a href="https://github.com/InterRep">
        <img src="https://img.shields.io/badge/project-InterRep-blue.svg?style=flat-square">
    </a>
    <a href="https://github.com/interrep/interrep.js/blob/main/LICENSE">
        <img alt="Github license" src="https://img.shields.io/github/license/interrep/interrep.js.svg?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@interrep/data-models">
        <img alt="NPM version" src="https://img.shields.io/npm/v/@interrep/data-models?style=flat-square" />
    </a>
    <a href="https://npmjs.org/package/@interrep/data-models">
        <img alt="Downloads" src="https://img.shields.io/npm/dm/@interrep/data-models.svg?style=flat-square" />
    </a>
    <a href="https://bundlephobia.com/package/@interrep/data-models">
        <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/@interrep/data-models" />
    </a>
    <a href="https://eslint.org/">
        <img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
    </a>
    <a href="https://prettier.io/">
        <img alt="Code style prettier" src="https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square&logo=prettier" />
    </a>
</p>

<div align="center">
    <h4>
        <a href="https://docs.interrep.link/contributing">
            👥 Contributing
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://docs.interrep.link/code-of-conduct">
            🤝 Code of conduct
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://t.me/interrep">
            🗣️ Chat &amp; Support
        </a>
    </h4>
</div>

---

## 🛠 Install

### npm or yarn

Install the `@interrep/data-models` package with npm:

```bash
npm i @interrep/data-models --save
```

or yarn:

```bash
yarn add @interrep/data-models
```

## 📜 Usage

You can find the Mongoose model of each entity on `src/<entityName>/<EntityName.model.ts>`. Each model has predefined functions and some custom static functions defined on `src/<entityName>/<EntityName>.statics.ts`. The `@interrep/data-models` package exports types and models of each entity.
npm package: @interrep/semethid
Description: A simple JS function to create Semaphore identities by deriving them from Ethereum signed messages.
Author: Omar Desogus
Latest version: 0.10.0

<p align="center">
    <h1 align="center">
        Semaphore Ethereum identities
    </h1>
    <p align="center">A simple JS function to create Semaphore identities by deriving them from Ethereum signed messages.</p>
</p>

<p align="center">
    <a href="https://github.com/InterRep">
        <img src="https://img.shields.io/badge/project-InterRep-blue.svg?style=flat-square">
    </a>
    <a href="https://github.com/interrep/interrep.js/blob/main/LICENSE">
        <img alt="Github license" src="https://img.shields.io/github/license/interrep/interrep.js.svg?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@interrep/semethid">
        <img alt="NPM version" src="https://img.shields.io/npm/v/@interrep/semethid?style=flat-square" />
    </a>
    <a href="https://npmjs.org/package/@interrep/semethid">
        <img alt="Downloads" src="https://img.shields.io/npm/dm/@interrep/semethid.svg?style=flat-square" />
    </a>
    <a href="https://bundlephobia.com/package/@interrep/semethid">
        <img alt="npm bundle size (scoped)" src="https://img.shields.io/bundlephobia/minzip/@interrep/semethid" />
    </a>
    <a href="https://eslint.org/">
        <img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
    </a>
    <a href="https://prettier.io/">
        <img alt="Code style prettier" src="https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square&logo=prettier" />
    </a>
</p>

<div align="center">
    <h4>
        <a href="https://js.interrep.link/semethid">
            🕹 Demo
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://docs.interrep.link/contributing">
            👥 Contributing
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://docs.interrep.link/code-of-conduct">
            🤝 Code of conduct
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://t.me/interrep">
            🗣️ Chat &amp; Support
        </a>
    </h4>
</div>

---

## 🛠 Install

### npm or yarn

Install the `@interrep/semithid` package with npm:

```bash
npm i @interrep/semethid --save
```

or yarn:

```bash
yarn add @interrep/semethid
```

## 📜 Usage

\# **semethid**(sign: _(message: string) => Promise\<string\>_, provider: _string_, nonce?: _number_): _ZKIdentity_

```typescript
import semethid from "@interrep/semethid"
import { ZkIdentity } from "@libsem/identity"
import detectEthereumProvider from "@metamask/detect-provider"
import { ethers } from "ethers"

const ethereumProvider = (await detectEthereumProvider()) as any
const provider = new ethers.providers.Web3Provider(ethereumProvider)
const signer = provider.getSigner()

const identity: ZkIdentity = await semethid((message) => signer.signMessage(message), "twitter")
```
npm package: @interrep/types
Description: InterRep common type definitions.
Author: Omar Desogus
Latest version: 0.3.0

<p align="center">
    <h1 align="center">
        InterRep common types
    </h1>
    <p align="center">InterRep common type definitions.</p>
</p>

<p align="center">
    <a href="https://github.com/InterRep">
        <img src="https://img.shields.io/badge/project-InterRep-blue.svg?style=flat-square">
    </a>
    <a href="https://github.com/interrep/interrep.js/blob/main/LICENSE">
        <img alt="Github license" src="https://img.shields.io/github/license/interrep/interrep.js.svg?style=flat-square">
    </a>
    <a href="https://www.npmjs.com/package/@interrep/types">
        <img alt="NPM version" src="https://img.shields.io/npm/v/@interrep/types?style=flat-square" />
    </a>
    <a href="https://npmjs.org/package/@interrep/types">
        <img alt="Downloads" src="https://img.shields.io/npm/dm/@interrep/types.svg?style=flat-square" />
    </a>
    <a href="https://eslint.org/">
        <img alt="Linter eslint" src="https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square&logo=eslint" />
    </a>
    <a href="https://prettier.io/">
        <img alt="Code style prettier" src="https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square&logo=prettier" />
    </a>
</p>

<div align="center">
    <h4>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://docs.interrep.link/contributing">
            👥 Contributing
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://docs.interrep.link/code-of-conduct">
            🤝 Code of conduct
        </a>
        <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
        <a href="https://t.me/interrep">
            🗣️ Chat &amp; Support
        </a>
    </h4>
</div>

---

## 🛠 Install

### npm or yarn

Install the `@interrep/types` package with npm:

```bash
npm i @interrep/types --save
```

or yarn:

```bash
yarn add @interrep/types
```
npm package: @interrogate/plantuml-to-svg
Description: [![NPM version][npm-badge]][npm-url] [![License: MIT][license-badge]][license-url]
Latest version: 1.1.22

# @interrogate/plantuml-to-svg

[![NPM version][npm-badge]][npm-url] [![License: MIT][license-badge]][license-url]

Convert PlantUML markup to SVG using Docker or JAR-based rendering.

## Quick reference

- **Package**: [@interrogate/plantuml-to-svg][npm-url]
- **Maintained by**: [interrogate-io](https://github.com/interrogate-io)
- **Issues**: [GitHub Issues](https://github.com/interrogate-io/interrogate/issues)

## Installation

```bash
npm install @interrogate/plantuml-to-svg
```

## What is this?

A Node.js package that provides a flexible API for converting PlantUML diagrams into SVG format. It
supports both Docker-based rendering using `interrogate/plantuml-cli` and direct JAR file execution.

## When should I use this?

- When you need programmatic conversion of PlantUML to SVG in Node.js
- When you want flexibility between Docker and JAR-based rendering
- When building tools that process PlantUML diagrams
- As a dependency for other tools in the PlantUML ecosystem

## Prerequisites

Choose your preferred rendering method:

### Docker Method

- Docker installed and running
- Access to pull the `interrogate/plantuml-cli` image

### JAR Method

- Java Runtime Environment (JRE) installed
- System requirements as specified in [PlantUML's documentation](https://plantuml.com/starting)

## Usage

Basic conversion using Docker (default method):

```typescript
import { convertToSvg } from "@interrogate/plantuml-to-svg"

const plantUmlMarkup = `
@startuml
A -> B: Hello
B -> A: World
@enduml
`

const svg = await convertToSvg(plantUmlMarkup)
```

Using JAR method explicitly:

```typescript
const svgUsingJar = await convertToSvg(plantUmlMarkup, { method: "jar" })
```

## API

### `convertToSvg(markup: string, options?: ConversionOptions): Promise<string>`

Converts PlantUML markup to SVG format.

#### Options

- `method`: `"docker" | "jar"` - Rendering method (default: `"docker"`)
- Additional options documentation coming soon

## License

[MIT][license-url] © James Lafferty

[npm-badge]: https://img.shields.io/npm/v/@interrogate/plantuml-to-svg.svg
[npm-url]: https://www.npmjs.com/package/@interrogate/plantuml-to-svg
[license-badge]: https://img.shields.io/npm/l/@interrogate/plantuml-to-svg.svg
[license-url]: https://github.com/interrogate-io/interrogate/blob/main/LICENSE
npm package: @interrogate/remark-plugin-plantuml
Description: [![NPM version][npm-badge]][npm-url] [![License: MIT][license-badge]][license-url]
Latest version: 1.1.22

# @interrogate/remark-plugin-plantuml

[![NPM version][npm-badge]][npm-url] [![License: MIT][license-badge]][license-url]

Process PlantUML diagrams in markdown with [Remark][remark].

## Quick reference

- **Package**: [@interrogate/remark-plugin-plantuml][npm-url]
- **Maintained by**: [interrogate-io](https://github.com/interrogate-io)
- **Issues**: [GitHub Issues](https://github.com/interrogate-io/interrogate/issues)

## Installation

```bash
npm install @interrogate/remark-plugin-plantuml
```

## What is this?

A [Remark][remark] plugin that processes PlantUML code blocks in markdown and attaches diagram data
as additional properties. It's designed to work with
[@interrogate/rehype-plugin-plantuml][rehype-plantuml] to generate the final HTML output.

## When should I use this?

- When you need to include PlantUML diagrams in your markdown documentation
- When you're processing PlantUML syntax during the markdown transformation phase
- When generating documentation with PlantUML diagrams (e.g., in Docusaurus)
- As part of a complete markdown-to-HTML pipeline using Remark and Rehype

## Usage

Basic usage with unified:

```js
import remarkPlantuml from "@interrogate/remark-plugin-plantuml"
import { unified } from "unified"
import remarkParse from "remark-parse"
import remarkRehype from "remark-rehype"

const processor = unified().use(remarkParse).use(remarkPlantuml).use(remarkRehype)
```

### Example: Inline PlantUML

````markdown
Here's a sequence diagram:

```plantuml
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi there
@enduml
```
````

````

### Example: External PlantUML Files

```markdown
![Sequence Diagram](./path/to/diagram.puml)
````

## API

### `remarkPlantuml([options])`

Transform PlantUML code blocks in markdown and attach diagram data as properties for consumption by
rehype plugins. Options documentation coming soon.

## License

[MIT][license-url] © James Lafferty

[npm-badge]: https://img.shields.io/npm/v/@interrogate/remark-plugin-plantuml.svg
[npm-url]: https://www.npmjs.com/package/@interrogate/remark-plugin-plantuml
[license-badge]: https://img.shields.io/npm/l/@interrogate/remark-plugin-plantuml.svg
[license-url]: https://github.com/interrogate-io/interrogate/blob/main/LICENSE
[remark]: https://github.com/remarkjs/remark
[rehype-plantuml]: https://www.npmjs.com/package/@interrogate/rehype-plugin-plantuml
npm package: @interruptor/react-monetization
Description: A React library for tracking Web Monetization state
Latest version: 1.1.0

# React Monetization

- [What is this?](#what-is-this)
- [Installation](#installation)
- [Usage](#usage)
  - [WebMonetizationProvider](#webmonetizationprovider)
  - [useWebMonetization](#usewebmonetization)

## What is this?

A React library for tracking Web Monetization state in your app.

## Installation

```bash
npm install @interruptor/react-monetization
```

## Usage

### WebMonetizationProvider

First, you need to wrap your application with the `WebMonetizationProvider`. This sets up the event listeners needed for tracking web monetization events.

```jsx
const MyApp = ({ children }) => {
  return <WebMonetizationProvider>{children}</WebMonetizationProvider>
}
```

### useWebMonetization

The `useWebMonetization` hook provides information about the current Web Monetization `state`, whether it's "pending", "started" or "stopped". For convenience, there's also an `isActive` property, for knowing whether it's on or off.

```jsx
const MyComponent = () => {
  const monetization = useWebMonetization()

  if (monetization.isActive) {
    return <p>Web Monetization is enabled! 🎉</p>
  }

  return <p>It's off</p>
}
```

⚠️ _The hook will throw an error if used outside of the `WebMonetizationProvider`_