open-index/open-npm huggingface dataset:
npm package: @p0u4a/opfs-cache
Description: Web Cache using the Origin Private File System (OPFS) to store large responses.
Author: P0u4a
Latest version: 0.2.4

# Origin Private File System (OPFS) Cache

Web Cache API compliant implementation using the [Origin Private File System (OPFS)](https://developer.mozilla.org/en-US/docs/Web/API/OPFS) to store responses. Useful for caching large responses such as Hugging Face models while also giving you queryability over your data. Also works in Web Workers.

## Installation

```
npm install @p0u4a/opfs-cache
```

## Usage in Web Workers

The OPFS Cache can also be run inside a web worker. It automatically detects if the current execution is happening in a web worker
and uses the more efficient synchronous read/write file system APIs instead.

## Quick Start

### Put a response into the cache

```ts
const blob = await response.blob();
await cache.put(new Request("https://example.com/path/to/file"), new Response(blob));
```

### Try to match a cached response

```ts
const response = await cache.match(new Request("https://example.com/path/to/file"));
```

### List all cached entries

```ts
const entries = await cache.keys();
```

### Delete a cached entry

```ts
await cache.delete(new Request("https://example.com/path/to/file"));
```

### Check storage usage stats

```ts
const { quota, estimatedRemaining } = await cache.usage();
```

## Use as a Custom Cache For Hugging Face Transformers.js

```ts
import { OPFSCache } from "@p0u4a/opfs-cache";
import { env } from "@huggingface/transformers";

const opfsModelCache = await OPFSCache.open("transformers-cache");

env.useBrowserCache = false;
env.useCustomCache = true;
env.customCache = opfsModelCache;
```
npm package: @p0u4a/react-xray
Description: Surgically edit your React apps live
Author: P0u4a
Latest version: 0.0.1

# React XRay 🩻

Surgically edit your React apps in the browser.

## Quickstart

```bash
npm i @p0u4a/react-xray
```

Add the plugin to your Vite config:

```js
import { xray } from "@p0u4a/react-xray";

export default defineConfig({
  plugins: [xray()],
});
```

Now when you start your dev server, you'll see the XRay widget. Activate XRay mode by pressing `option+X` (Mac) or `alt+X` (Windows).

Select any element on the page, and you'll see a popover with the code for that component open. Edit the code and see the component update in real time via HMR.

## Plugin Options

### `editorTheme`

Accepts any bundled Shiki theme name. Defaults to `tokyo-night`.

### `endpoint`

The base URL for the local X-Ray dev server endpoints. Defaults to `/__xray`.

### `shortcut`

The keyboard shortcut used to toggle inspection mode. Defaults to `option+X` on macOS and `alt+X` on other platforms.

### `include`

An allowlist for instrumentation. Accepts either:

- A `RegExp`
- A function `(filePath: string) => boolean`

The matcher runs against the full file path after Vite query params are stripped. Only `.jsx` and `.tsx` files outside `node_modules` are considered.

### `exclude`

A denylist for instrumentation. Accepts the same filter types as `include` and is evaluated after `include`.

Example:

```js
xray({
  include: /\/src\/components\//,
  exclude: (filePath) => filePath.endsWith(".stories.tsx"),
});
```

## How it works

During development, the plugin transforms your JSX source files and injects a `data-xray` attribute onto every native HTML element. The value is a hash that encode's the element's file path, line number, and column number.

When you select an element with XRay, the runtime reads the hash from the DOM and sends it to the dev server at `/__xray/resolve`, where a registry maps it back to the exact file path, line, column, and enclosing React component name. The runtime then fetches the file contents from `/__xray/file` and displays them in the popover.

When you save an edit, the runtime POSTs the updated contents to `/__xray/save`, which writes the file to disk. The registry tracks file versions using filesystem fingerprints, so if the file was modified externally between your load and save, it rejects with a conflict. After a write Vite detects the change and triggers HMR as normal.
npm package: @p10e/schematype-example
Description: > This is a **Sanity Studio v3** example.
Author: Sanity.io Support
Latest version: 0.0.2

# @p10e/schematype-example

> This is a **Sanity Studio v3** example.

## Installation

```sh
npm install @p10e/schematype-example
```

## License

[MIT](LICENSE) © Sanity.io Support
npm package: @p10i/md-todo
Description: A Markdown-native task runtime for agentic workflows. Execute, validate, and correct work directly from Markdown TODOs.
Author: Piontkovskii Andrei
Latest version: 1.0.0-rc.3
Deprecated: Deprecated: package renamed to @p10i/rundown. Install with: npm install -g @p10i/rundown@rc
npm package: @p12/carbyne
Description: Carbyne a kind of material with much **solidity**.
Latest version: 0.1.3

# Why Carbyne

Carbyne a kind of material with much **solidity**.

In short, it provides hardhat framework with many custom configuration.

# Quick Start

Require:

- Node >= 14

Run command and follow the instructions

```bash
$ npx @p12/carbyne create
? Where would you like to create your project? ./my-solidity-project
? Which kind of template do you want to use? General
? Do you want to run `git init`? Yes
? Do you want me to run `npm install`? Yes
```

Now, open the project that was generated in your preferred editor and check the instructions in the [README.md](templates/general/README.md) file.

# Feature

- **lint**: eslint, prettier, solhint, cspell
- **git hook**: pre-commit script
- **smart flatten**: one-click to flatten all solidity files with no redundant

# Credits

- [NomicFoundation/Hardhat](https://github.com/NomicFoundation/hardhat)
- [sushiswap/hardhat-framework](https://github.com/sushiswap/hardhat-framework)
- [boringcrypto/dictator-dao](https://github.com/boringcrypto/dictator-dao)
- [Remix](https://github.com/remix-run/remix)
npm package: @p12/contracts-lib
Description: A set of smart contracts library
Latest version: 0.0.8

# @p12/contracts-lib

A set of smart contracts library


# Get started

```shell
npm i @p12/contracts-lib --save
```

import contract in your solidity files.

```solidity
import '@p12/contracts-lib/contracts/access/SafeOwnableUpgradeable.sol';
```

# Feature

## SafeOwnable

For openzepplin Ownable contract, the owner transfer the ownership in one transaction. Once you transfer the ownership to wrong address, there is no way back.

SafeOwnable recommend a two-step ownership transfer pattern.

- First Step: The owner send a transaction to storage the address of `_pendingOwner` while the true ownership not changed.
- Second Step: The pending owner call the contract to claim the ownership. At this time, the ownership changes.

In this pattern, if you transfer ownership to a wrong address, you still have the right to edit the transfer rather than lay down.

## UUPS admin slot

the openzepplin uups is not standard uups as it doesn't save admin address in admin slot but use more flexible permission control to upgrade implementation.

While the hardhat-deploy not officially support this yet, we choose to save the admin address in `SafeOwnableUpgradeable`. A upgradable contract which inherits both `SafeOwnableUpgradeable` and `UUPSUpgradable` will be successfully upgraded in hardhat-deploy


# Special thanks to 

[@yosriady](https://github.com/yosriady)

# Disclaimer

This repo has no audit report now. **Do your own research**.
npm package: @p12/numeral
Description: format number
Author: Lincheng
Latest version: 1.1.3

# Numeral

> format number

## Install

```shell
npm install @p12/numeral
```

## How to use

### Format Props

| Name          | Type        | Default           | Description           |
|---------------|-------------|-------------------|-----------------------|
| type          | NumeralType | NumeralType.Token | format input          |
| decimalPlaces | number?     | undefined         | format decimal places |

### Numeral Type

```typescript
enum NumeralType {
  GameCoin,
  Token,
  Transfer,
  Balance,
  USD,
}
```

### Numeral

```typescript
import {numeral, NumeralType} from '@p12/numeral';

const format1 = numeral('1028').format(NumeralType.GameCoin); // 1.028K
const format2 = numeral('1028').format(NumeralType.GameCoin, 2); // 1.03K
```
npm package: @p12/v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap.
Latest version: 1.5.9

# @p12/v2-sdk

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@p12/v2-sdk/latest.svg)](https://www.npmjs.com/package/@p12/v2-sdk)

*Forked from [uniswap-sdk](https://github.com/Uniswap/v2-sdk). Use with p12 contracts.*

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Install
```sh
npm install @p12/v2-sdk
```
## Run

To run the project, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/ProjectTwelve/v2-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd v2-sdk/
```

Install dependencies

```sh
yarn
```

Run tests
```sh
yarn test
```

## Todo
### src/constants.ts

- `ChainId`
- `FACTORY_ADDRESS`
- `INIT_CODE_HASH`
### entity/token.ts

- `WETH`
npm package: @p1kka/simplelocalize
Description: MCP server for SimpleLocalize integration
Author: Jose Giovanni Vargas Rueda
Latest version: 1.0.2

# @p1kka/simplelocalize

A Model Context Protocol (MCP) server for SimpleLocalize integration, enabling AI assistants to interact with translation and localization workflows.

## Features

- **Translation Management**: Access and manage translation keys and values
- **Language Support**: Work with multiple languages and locales
- **Project Integration**: Connect to SimpleLocalize projects via API
- **MCP Compliance**: Full Model Context Protocol implementation

## Installation

```bash
npm install @p1kka/simplelocalize
```

## Usage

### As a CLI tool

```bash
npx @p1kka/simplelocalize
```

### As an MCP server

This package can be used as an MCP server in AI assistant applications that support the Model Context Protocol.

## Configuration

The MCP server requires SimpleLocalize API credentials to function. Configure your environment with:

```bash
export SIMPLELOCALIZE_API_KEY="your-api-key"
export SIMPLELOCALIZE_PROJECT_ID="your-project-id"
```

## MCP Server Configuration

To use this package as an MCP server in your AI assistant application, you need to configure it in your MCP client settings.

### Basic Configuration

Add the following configuration to your MCP client's configuration file:

```json
{
  "mcpServers": {
    "simplelocalize": {
      "command": "npx",
      "args": ["@p1kka/simplelocalize"],
      "env": {
        "SIMPLELOCALIZE_API_KEY": "your-api-key-here",
        "SIMPLELOCALIZE_PROJECT_ID": "your-project-id-here"
      }
    }
  }
}
```

### Configuration Options

- **command**: The command to run the MCP server (typically `npx`)
- **args**: Array of arguments for the command (the package name)
- **env**: Environment variables required by the server
  - `SIMPLELOCALIZE_API_KEY`: Your SimpleLocalize API key
  - `SIMPLELOCALIZE_PROJECT_ID`: Your SimpleLocalize project ID


## API Reference

### Functions

- `getTranslationKeys()` - Retrieve all translation keys from the project
- `getTranslations(language)` - Get translations for a specific language
- `updateTranslation(key, language, value)` - Update a translation value
- `addTranslationKey(key, translations)` - Add a new translation key

## Development

### Prerequisites

- Node.js 18.0.0 or higher
- pnpm package manager

### Setup

```bash
# Install dependencies
pnpm install

# Build the project
pnpm build

# Run in development mode
pnpm dev
```

### Scripts

- `pnpm build` - Build the TypeScript project
- `pnpm dev` - Run in development mode with hot reload
- `pnpm start` - Run the built application
- `pnpm lint` - Run ESLint
- `pnpm format` - Format code with Prettier

## License

ISC

## Author

Jose Giovanni Vargas Rueda

## Repository

- GitHub: [p1kka/simplelocalize-mcp](https://github.com/p1kka/simplelocalize-mcp)
- Issues: [GitHub Issues](https://github.com/p1kka/simplelocalize-mcp/issues)