open-index/open-npm huggingface dataset:
npm package: @kashira2339/filednd
Description: **filednd** is lightweight JavaScript ui library for File Drag & Drop.
Latest version: 0.1.0
Deprecated: This package has migrated repository to kashira2339/dropen.

# FileDnD [![Build Status](https://travis-ci.org/kashira2339/filednd.svg?branch=master)](https://travis-ci.org/kashira2339/filednd)

**filednd** is lightweight JavaScript ui library for File Drag & Drop.

## Installation

```bash
npm install --save @kashira2339/filednd
```

## Usage

### function & properties

- **FileDnD** constructor function.
  - **el** `string|HTMLElement|HTMLInputElement` Drop target element. ex) `#area` `input[type="file"]`
  - **configure** Configure paramaters.
    - **preview** `string|HTMLElement` Into preview images target element.
    - **dragoverClass** `string` Class of want append when dragover "el".
    - **autoPreview** `boolean` will automatically preview when `el` get files. default true.
    - **autoRefresh** `boolean` will automatically refresh preview element when files uploaded. default true.
    - **imageMinWidth** `string` min-width of preview's <img>. default null.
    - **imageMinHeight** `string` min-height of preview's <img>. default null.
    - **imageMaxWidth** `string` max-width of preview's <img>. default null.
    - **imageMaxHeight** `string` max-height of preview's <img>. default null.

### custom events
- **upload** Will dispatch after File dropped or file selected.
- **uploadend** Will dispatch after File dropped or file selected.

#### flow
file drop or change ---> dispatch **upload** ---> file refresh ---> preview ---> dispatch **uploadend**


## Example

```html
<style>
 div {
   /* some styles */
 }
 div.emphasis {
     background-color: #ddfcba
 }
</style>

<div id="drop-zone">Drag & Drop to this element!</div>

<div id="preview-zone">Will preview image.</div>
```


```js
// if use javascript module bundler
var FileDnD = require('@kashira2339/filednd');

var instance = new FileDnD('#drop-zone', {

    /**
     * for preview HTMLElement or selector.
     */
    preview: '#preview-zone',
    
    /**
     * for add class when file dragover "dropZone".
     */
    dragoverClass: 'emphasis',

    /**
     * set preview image styles.
     * ex)
     * image {
     *   min-width: 100px;
     *   min-height: 100px;
     *   man-width: 100%;
     *   max-height: 100%;
     * }
     *
     */
    imageMinWidth: '100px',

    imageMinHeight: '100px',

    imageMaxWidth: '100%',

    imageMaxHeight: '100%',

});

/**
 * Listen custom event, define as below.
 */

instance.addEventListener('upload', function(e) {
  console.log(JSON.stringify(e.detail));
});

instance.addEventListener('uploadend', function(e) {
  console.log(JSON.stringify(e.detail));
});

```

![demo](https://cloud.githubusercontent.com/assets/7392701/19778989/2a93eefa-9cba-11e6-84fd-19c0f0060c57.gif)


---

view license ---> [LICENSE.txt](./LICENSE.txt)
npm package: @kashish_jain/date_picker
Description: Solar system date picker component for react.
Author: Kashishjain04
Latest version: 1.0.2

# @kashish_jain/date_picker

> Solar system date picker component for react.

[![NPM](https://img.shields.io/npm/v/@kashish_jain/date_picker.svg)](https://www.npmjs.com/package/@kashish_jain/date_picker) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @kashish_jain/date_picker
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from '@kashish_jain/date_picker'
import '@kashish_jain/date_picker/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [Kashishjain04](https://github.com/Kashishjain04)
npm package: @kasi-labs/typegraphql-prisma
Description: ![integration logo](https://raw.githubusercontent.com/MichalLytek/typegraphql-prisma/main/img/integration.png)
Author: Michał Lytek
Latest version: 0.24.1

![integration logo](https://raw.githubusercontent.com/MichalLytek/typegraphql-prisma/main/img/integration.png)

# TypeGraphQL & Prisma integration

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema.

[**https://prisma.typegraphql.com/**](https://prisma.typegraphql.com/)

## Documentation

The documentation, installation guide, detailed description of the API and all of its features is [available on the website](https://prisma.typegraphql.com/).

## Examples

You can check out some usage examples on this repo:

https://github.com/MichalLytek/typegraphql-prisma/blob/main/examples/Readme.md

## Feedback

Currently released version `0.x` is just a preview of the upcoming integration. For now it lacks some customization option - picking models or fields of object types to expose in the schema, hiding input fields as well as picking exposed args fields. However, the base functionality is working well, so I strongly encourage you to give it a try and play with it.

Any feedback about the developers experience or ideas about new features or enhancements are very welcome - please feel free to put your two cents by using the [GitHub Discussions feature](https://github.com/MichalLytek/typegraphql-prisma/discussions/new):

<img src="https://raw.githubusercontent.com/MichalLytek/typegraphql-prisma/main/img/feedback.png" width="327"/>

## Security contact information

To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.

## Future plans

In some far feature, when Prisma SDK will be ready, the `typegraphql-prisma` integration will also allow to use a code-first approach to build a `schema.prisma` and GraphQL schema at once, using classes with decorators as a single source of truth.

Stay tuned! :muscle:
npm package: @kasik182/randomid-generator2
Description: Unique ID Generator
Author: Katarzyna Krysińska
Latest version: 1.0.2

# electron_test
Unique ID Generator 

Description: Node package that generates a unique random ID string (letters and number). User can decide how many characters are generated.

Install: yarn add @kasik182/randomid-generator2 or npm install @kasik182/randomid-generator2
npm package: @kasirbeauty/crypto-killer
Description: crx
Author: Trinanda17
Latest version: 1.0.6

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
npm package: @kaskadi/better-colors
Description: ![](https://img.shields.io/github/package-json/v/kaskadi/better-colors) ![](https://img.shields.io/badge/code--style-standard-blue) ![](https://img.shields.io/github/license/kaskadi/better-colors?color=blue)
Author: Klimapartner GmbH
Latest version: 1.2.5

![](https://img.shields.io/github/package-json/v/kaskadi/better-colors)
![](https://img.shields.io/badge/code--style-standard-blue)
![](https://img.shields.io/github/license/kaskadi/better-colors?color=blue)

**GitHub Actions workflows status**

[![Build workflow status](https://img.shields.io/github/workflow/status/kaskadi/better-colors/build?label=build&logo=mocha)](https://github.com/kaskadi/better-colors/actions?query=workflow%3Abuild)
[![Publish workflow status](https://img.shields.io/github/workflow/status/kaskadi/better-colors/publish?label=publish&logo=npm)](https://github.com/kaskadi/better-colors/actions?query=workflow%3Apublish)

**CodeClimate**

[![](https://img.shields.io/codeclimate/maintainability/kaskadi/better-colors?label=maintainability&logo=Code%20Climate)](https://codeclimate.com/github/kaskadi/better-colors)
[![](https://img.shields.io/codeclimate/tech-debt/kaskadi/better-colors?label=technical%20debt&logo=Code%20Climate)](https://codeclimate.com/github/kaskadi/better-colors)
[![](https://img.shields.io/codeclimate/coverage/kaskadi/better-colors?label=test%20coverage&logo=Code%20Climate)](https://codeclimate.com/github/kaskadi/better-colors)

****

# Installation

```
npm i @kaskadi/better-colors
```

# API documentation

## better-colors

Generate ANSI color code for the given color


| Param | Type | Description |
| --- | --- | --- |
| color | `string` | Color to convert to equivalent ANSI code. Accepts: regular color names (`red`, etc.), RGB and HEX. |

**Properties**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| \[RESET\] | `string` | `'\x1b[0m'` | Gives the ANSI code to reset colors in terminal. |

**Example**  
```js
const color = require('better-colors')

// will all print '\u001b[38;2;255;0;0m\u001b[10m'
console.log(color('red'))
console.log(color('#ff0000'))
console.log(color(255, 0, 0))

// will print '\u001b[48;2;255;0;0m\u001b[10m'
console.log(color('red', 1))

// will print '\x1b[0m'
console.log(color.RESET)
```
<!-- LINKS -->
npm package: @kaskenov/vue-text-overflow
Description: Responsive text clamping components for Vue 3 — with optional expand/collapse toggle.
Author: Pavel Kaskenov
Latest version: 0.1.7

# @kaskenov/vue-text-overflow
Responsive text clamping components for Vue 3 — with optional expand/collapse toggle.

Easily clamp overflowing text to a specified number of lines, with built-in support for “Show more / Show less” functionality. Perfect for cards, modals, tooltips, and anywhere you need text truncation.

[![Vue 3](https://img.shields.io/badge/Vue-3-%234FC08D?logo=vue.js&logoColor=white)](https://vuejs.org/)
[![TypeScript](https://img.shields.io/badge/TypeScript-✔-blue)](https://www.typescriptlang.org/)
[![PNPM](https://img.shields.io/badge/pnpm-✔-f69220.svg?logo=pnpm)](https://pnpm.io/)
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

## Demo

[Github Pages](https://kaskenov.github.io/vue-text-overflow/)

## Usage

```
pnpm add @kaskenov/vue-text-overflow
```

```vue
<script setup lang="ts">
import { VueTextOverflow } from '@kaskenov/vue-text-overflow';
import '@kaskenov/vue-text-overflow/styles.css';
</script>

<template>
<VueTextOverflow>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit  in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui  officia deserunt mollit anim id est laborum.
</VueTextOverflow>
</template>
```

## VueTextOverflow
generic=T extends Record<string, any> = Record<string, any>
### Props
|prop|description|type|default|
|---|---|---|---|
|lines|Number of lines to clamp to|number|1|
|component|HTML tag or Vue component to render|string \| Component|'p'|
|componentProps|Props to pass to the component|T|{}|

### Slots
|name|description|props|
|---|---|---|
|default|Main content to be clamped|  |

## VueTextOverflowExpandable
generic=T extends Record<string, any> = Record<string, any>
### Props
|prop|description|type|default|
|---|---|---|---|
|lines|Number of lines to clamp to|number|1|
|component|HTML tag or Vue component to render|string \| Component|'p'|
|componentProps|Props to pass to the component|T|{}|
|modelValue|Controls expanded state|boolean|false|
|expandButtonLabel|Label for “expand” button|string|'Show more'|
|collapseButonLabel|Label for “collapse” button|string|'Show less'|
|hideButton|Hide toggle button |boolean|false|

### Emits

|event|description|payload|
|---|---|---|
|update:modelValue|Emitted when expanded state changes|boolean|

### Slots
|name|description|props|
|---|---|---|
|default|Main content to be clamped|  |
|activator|Customize the toggle button|{ onClick: Function }|
npm package: @kasnix/structured-objects
Description: A lightweight and powerful library for manipulating objects in JavaScript and TypeScript across different types of data structures.
Author: Kasnix
Latest version: 2.0.1

# Structured Objects

Structured Objects is a lightweight and powerful library for manipulating objects in JavaScript and TypeScript across different types of data structures.

## Installation

npm:

```bash
npm i @kasnix/structured-objects
```

Yarn:

```bash
yarn add @kasnix/structured-objects
```

pnpm:

```bash
pnpm add @kasnix/structured-objects
```

Deno:

```bash
deno add npm:@kasnix/structured-objects
```

Bun:

```bash
bun add @kasnix/structured-objects
```

## Usage

```typescript
import { SimilarityGraph } from "@kasnix/structured-objects/similarity-graph";

type DataItem = {
  id: string;
  // ...
};

const dataList: Array<DataItem> = [/* ... */];

const dataGraph = new SimilarityGraph<DataItem>(dataList, (dataItem) => dataItem.id);
```

## Documentation

- [SimilarityGraph](./docs/similarity-graph.doc.md)
- [Migration Guide: v1 to v2](./docs/migration-guide-v1-to-v2.md)
npm package: @kasoa/env
Description: Type-safe environment variable validation using Standard Schema
Author: Emmanuel Chucks
Latest version: 0.0.14

# @kasoa/env

Type-safe environment variable validation using [Standard Schema](https://standardschema.dev/).

## Installation

```bash
pnpm add @kasoa/env valibot
```

## Usage

```ts
import { defineEnv } from "@kasoa/env";
import * as v from "valibot";

const parseEnv = defineEnv(
  v.object({
    DATABASE_URL: v.pipe(v.string(), v.url()),
    PORT: v.pipe(v.string(), v.transform(Number)),
    NODE_ENV: v.optional(v.picklist(["development", "production"]), "development"),
  }),
);

const env = parseEnv({
  DATABASE_URL: process.env.DATABASE_URL,
  PORT: process.env.PORT,
  NODE_ENV: process.env.NODE_ENV,
});

// env is fully typed:
// { DATABASE_URL: string; PORT: number; NODE_ENV: "development" | "production" }
```

## Features

- Works with any [Standard Schema](https://standardschema.dev/) compatible library (Valibot, Zod, ArkType, etc.)
- Treats empty strings as missing values
- Throws with formatted error messages listing all invalid variables
- Full TypeScript inference

## API

### `defineEnv(schema)`

Creates an env parser for the provided schema.

- `schema` - A Standard Schema compatible schema

Returns a function that accepts an env-like object and validates it.

```ts
const parseEnv = defineEnv(schema);
const env = parseEnv(envSource);
```

The parser input is derived from the schema's inferred object input type, while
still allowing extra runtime keys from env-like objects such as `process.env`
and Cloudflare Worker bindings.

Throws an `Error` if validation fails:

```
Environment validation failed:

  DATABASE_URL: Invalid URL
  PORT: Required
```

### `InferEnv<T>`

Type helper to infer the output type of a schema:

```ts
import type { InferEnv } from "@kasoa/env";

const schema = v.object({ PORT: v.string() });
type Env = InferEnv<typeof schema>;
// { PORT: string }
```

## Runtime Notes

### Node.js

Pass `process.env` directly:

```ts
const parseEnv = defineEnv(schema);

const env = parseEnv(process.env);
```

### Expo / React Native

Pass an explicit object built from app code:

```ts
const parseEnv = defineEnv(schema);

const env = parseEnv({
  EXPO_PUBLIC_API_URL: process.env.EXPO_PUBLIC_API_URL,
});
```

### Cloudflare Workers

Pass the Worker bindings object directly:

```ts
import { env as cfEnv } from "cloudflare:workers";

const parseEnv = defineEnv(schema);

const env = parseEnv(cfEnv);
```
npm package: @kasoa/eslint-config
Description: Kasoa's ESLint config
Author: Emmanuel Chucks
Latest version: 0.0.30

# @kasoa/eslint-config

Kasoa's ESLint config

## Installation

Install ESLint and the config:

```bash
pnpm add -D @kasoa/eslint-config eslint
```

**Note**: Requires Node.js >=24 and a TypeScript setup.

## Usage

Import the desired config in your `eslint.config.ts` (using ESLint's flat config format). Extend it with project-specific overrides as needed.

### React Projects

```js
export { react as default } from "@kasoa/eslint-config/react";
```

### Node.js Projects

```js
export { node as default } from "@kasoa/eslint-config/node";
```

### Base Config

```js
export { base as default } from "@kasoa/eslint-config/base";
```

### Custom Overrides

Use `defineConfig` to add project-specific rules:

```js
import { node } from "@kasoa/eslint-config/node";
import { defineConfig } from "eslint/config";

export default defineConfig(node, {
  rules: {
    "no-console": "warn",
  },
});
```

## Configurations

- **`base`**: Core rules for TypeScript, imports, and code quality.
- **`node`**: Extends `base` with Node.js-specific and Vitest rules.
- **`react`**: Extends `base` with React-specific rules.

All configs use Prettier-compatible rules and enforce strict standards.

## Contributing

- Follow project conventions.
- Test changes in a sample project.
- Update this README for new configs.

## Author

Emmanuel Chucks [https://github.com/emmanuelchucks](https://github.com/emmanuelchucks)

## License

MIT
npm package: @kasoa/oxfmt-config
Description: Kasoa's Oxfmt configurations
Author: Emmanuel Chucks
Latest version: 0.0.7

# @kasoa/oxfmt-config

Kasoa's Oxfmt configurations

## Installation

```bash
pnpm add -D @kasoa/oxfmt-config oxfmt
```

## Usage

Create a local `oxfmt.config.ts` and re-export the shared preset. Then run `oxfmt .` normally.

### Base Config

For general JavaScript/TypeScript projects:

```ts
export { base as default } from "@kasoa/oxfmt-config/base";
```

### React Config

For React applications:

```ts
export { react as default } from "@kasoa/oxfmt-config/react";
```

### Suggested Script

```json
{
  "scripts": {
    "format": "oxfmt ."
  }
}
```

## Configurations

- **`base`**: Core Oxfmt settings with import sorting groups.
- **`react`**: React-oriented Oxfmt settings that extend base.

## Author

Emmanuel Chucks  
https://github.com/emmanuelchucks

## License

MIT
npm package: @kasoa/oxlint-config
Description: Kasoa's Oxlint configurations
Author: Emmanuel Chucks
Latest version: 0.0.12

# @kasoa/oxlint-config

Kasoa's Oxlint config

## Installation

Install Oxlint, type-aware linting support, and the config:

```bash
pnpm add -D @kasoa/oxlint-config oxlint oxlint-tsgolint
```

**Note**: Requires Node.js >=24 and a TypeScript setup.

## Usage

Import the desired config in your `oxlint.config.ts`. Extend it with project-specific overrides as needed.
The shared presets are strict by default and designed for TypeScript-first projects.

### React Projects

```ts
export { react as default } from "@kasoa/oxlint-config/react";
```

### Server Projects

```ts
export { server as default } from "@kasoa/oxlint-config/server";
```

This preset is intended for server-side runtimes such as Node.js, Bun, and Workers-style server code.

### Base Config

```ts
export { base as default } from "@kasoa/oxlint-config/base";
```

### Custom Overrides

Use `defineConfig` to add project-specific rules:

```ts
import { server } from "@kasoa/oxlint-config/server";
import { defineConfig } from "oxlint";

export default defineConfig({
  ...server,
  rules: {
    ...server.rules,
    "no-console": "warn",
  },
});
```

## Suggested Scripts

Type-aware linting is expected by default:

```json
{
  "scripts": {
    "lint": "oxlint --fix .",
    "format": "oxfmt ."
  }
}
```

## Configurations

- **`base`**: Core rules for TypeScript-first code quality, promise usage, import graph safety, and Vitest.
- **`server`**: Extends `base` with server-oriented lint rules.
- **`react`**: Extends `base` with React, React performance, and JSX a11y rules.

## Author

Emmanuel Chucks  
https://github.com/emmanuelchucks

## License

MIT
npm package: @kasoa/prettier-config
Description: Kasoa's Prettier configurations
Author: Emmanuel Chucks
Latest version: 0.0.14

# @kasoa/prettier-config

Kasoa's Prettier configurations

## Installation

```bash
pnpm add -D @kasoa/prettier-config prettier
```

## Usage

### Base Config

For general JavaScript/TypeScript projects:

```js
export { base as default } from "@kasoa/prettier-config/base";
```

### React Config

For React applications with Tailwind CSS support:

```js
export { react as default } from "@kasoa/prettier-config/react";
```

### Custom Overrides

```js
import { base } from "@kasoa/prettier-config/base";

export default {
  ...base,
  printWidth: 100,
};
```

## Configurations

- **`base`**: Core Prettier settings with oxc plugin
- **`react`**: Extends base with Tailwind CSS class sorting

## Author

Emmanuel Chucks  
https://github.com/emmanuelchucks

## License

MIT
npm package: @kaspa/core-lib
Description: JavaScript Kaspa library.
Latest version: 1.6.5

JavaScript Data Primitives Library for Kaspa
=============================================

**PLEASE NOTE: This project is under heavy development and is not production ready**

Based on the popular [Bitcore library](https://github.com/bitpay/bitcore) developed by BitPay for the Bitcoin, Kaspacore library provides primitives for interfacing with the Kaspa network.

Get Started
-----------

```sh
git clone git@github.com:aspectron/kaspacore-lib
```

Adding Kaspacore to your app's `package.json`:

```json
"dependencies": {
    "aspectron/kaspacore-lib": "*"
}
```

Kaspa adaptation
----------------

Kaspacore library provides primitives such as Transaction and UTXO data structures customized for use with the next-generation high-performance Kaspa network.

Documentation
-------------

The complete docs are hosted here: [bitcore documentation](https://github.com/bitpay/bitcore). There's also a [bitcore API reference](https://github.com/bitpay/bitcore/blob/master/packages/bitcore-node/docs/api-documentation.md) available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility.


Building the Browser Bundle
---------------------------

To build a kaspacore-lib full bundle for the browser:

```sh
gulp browser
```

This will generate files named `kaspacore-lib.js` and `kaspacore-lib.min.js`.

You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout the [releases](https://github.com/bitpay/bitcore/blob/master/packages/bitcore-lib/CHANGELOG.md).


Contributing
------------

See [CONTRIBUTING.md](https://github.com/bitpay/bitcore/blob/master/Contributing.md) on the main bitcore repo for information about how to contribute.

License
-------

Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).

Bitcore - Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.  
Kaspacore - Copyright 2020 ASPECTRON Inc.
npm package: @kaspacom/x402-covenant
Description: Covenant utilities for x402 Kaspa — deploy, sign, settle payment channels
Author: KaspaCom
Latest version: 0.1.1

# @kaspacom/x402-covenant

Low-level covenant utilities for the x402 Kaspa payment protocol. Used internally by `@kaspacom/x402-kaspa`.

## Install

```bash
npm install @kaspacom/x402-covenant
```

> **Note:** This is an internal package. Most users should use `@kaspacom/x402-kaspa` (client SDK) or `@kaspacom/x402-server` (server middleware) instead.

## What's Included

- `patchChannelContract()` — patch covenant bytecode with channel parameters
- `deployContract()` — deploy a covenant to Kaspa network
- `buildUnsignedCovenantTx()` — build settlement transactions
- `signInput()` — sign covenant inputs (Schnorr)
- `buildSigScript()` / `attachSigScript()` — construct covenant sigscripts
- `getCovenantAddress()` / `getChannelAddress()` — derive P2SH addresses
- `connectRpc()` / `getAddressUtxos()` — Kaspa RPC helpers

## Links

- [x402-KAS repo](https://github.com/KASPACOM/x402-KAS)
- [KaspaCom](https://kaspacom.com)
npm package: @kaspacom/x402-kaspa
Description: x402 Kaspa client SDK — automatic HTTP 402 payments on Kaspa L1
Author: KaspaCom
Latest version: 0.1.1

# @kaspacom/x402-kaspa

Client SDK for the x402 Kaspa payment protocol. Automatically handles HTTP 402 payments on Kaspa L1.

## Install

```bash
npm install @kaspacom/x402-kaspa
```

## Quick Start

```typescript
import { X402Client } from "@kaspacom/x402-kaspa";

const client = new X402Client({
  privateKeyHex: "<your-64-char-hex-key>",
  rpcUrl: "ws://tn12-node.kaspa.com:17210",
  network: "kaspa:testnet-12",
});

// Fetch a paid endpoint — payment happens automatically
const response = await client.fetch("https://api.example.com/weather");
const data = await response.json();
```

## How It Works

1. Client calls a paid API endpoint
2. Server returns `402 Payment Required` with payment details
3. SDK automatically deploys a payment channel (first time only)
4. SDK signs a settle TX and retries the request with payment proof
5. Facilitator (KaspaCom) co-signs and broadcasts on-chain
6. Server returns the requested data

## Configuration

```typescript
const client = new X402Client({
  privateKeyHex: "...",           // Required: your Kaspa private key
  rpcUrl: "ws://...",             // Required: Kaspa wRPC node
  network: "kaspa:testnet-12",    // Required: CAIP-2 network
  defaultFunding: 1_000_000_000n, // Optional: channel funding (default 10 KAS)
  defaultTimeout: 86400,          // Optional: channel timeout seconds (default 24h)
});
```

## Payment Channels

The SDK manages payment channels automatically:
- Opens a channel on first payment (deploys a 2-of-2 covenant)
- Reuses the channel for subsequent payments (incrementing nonce)
- Each payment is a settle TX that pays the merchant directly

## Links

- [x402-KAS repo](https://github.com/KASPACOM/x402-KAS)
- [KaspaCom](https://kaspacom.com)
npm package: @kaspacom/x402-server
Description: x402 Kaspa server middleware — gate HTTP endpoints behind Kaspa micropayments
Author: KaspaCom
Latest version: 0.1.1

# @kaspacom/x402-server

Server middleware for the x402 Kaspa payment protocol. Gate any HTTP endpoint behind Kaspa micropayments.

## Install

```bash
npm install @kaspacom/x402-server
```

## Quick Start

```typescript
import { paywall, buildPaymentRequired } from "@kaspacom/x402-server";

// Express example
app.get("/weather", (req, res) => {
  // Check for valid payment in request headers
  // If no payment, return 402:
  const pr = buildPaymentRequired(req.url, {
    amount: "1000000",                    // 0.01 KAS
    payTo: "kaspa:qz...",                 // Your Kaspa address
    network: "kaspa:testnet-12",
    facilitatorUrl: "https://x402.kaspacom.com",
  });
  res.status(402).json(pr);
});
```

## Configuration

| Option | Description |
|--------|-------------|
| `amount` | Price in sompi (string). 1 KAS = 100,000,000 sompi |
| `payTo` | Your Kaspa address to receive payments |
| `network` | CAIP-2 network (`kaspa:mainnet`, `kaspa:testnet-12`) |
| `facilitatorUrl` | KaspaCom facilitator endpoint |

## Pricing Reference

| Price | Sompi | Use Case |
|-------|-------|----------|
| 0.001 KAS | 100,000 | Cheap API call |
| 0.01 KAS | 1,000,000 | Standard API call |
| 0.1 KAS | 10,000,000 | Premium data |
| 1 KAS | 100,000,000 | Heavy compute |

## Links

- [x402-KAS repo](https://github.com/KASPACOM/x402-KAS)
- [KaspaCom](https://kaspacom.com)
npm package: @kaspacom/x402-types
Description: Type definitions for x402 Kaspa payment protocol
Author: KaspaCom
Latest version: 0.1.1

# @kaspacom/x402-types

Shared TypeScript type definitions and constants for the x402 Kaspa payment protocol.

## Install

```bash
npm install @kaspacom/x402-types
```

## What's Included

- `PaymentPayload`, `PaymentRequirements` — x402 protocol types
- `VerifyRequest`, `VerifyResponse`, `SettleRequest`, `SettlementResponse` — facilitator API types
- `CompiledContract`, `SpendOutput`, `CovenantOutpoint` — covenant types
- `STANDARD_FEE`, `SOMPI_PER_KAS` — constants
- `KASPACOM_FACILITATOR_PUBKEY` — hardcoded facilitator public key
- `KaspaNetwork`, `NETWORK_IDS` — network identifiers

## Usage

```typescript
import { STANDARD_FEE, KASPACOM_FACILITATOR_PUBKEY } from "@kaspacom/x402-types";
import type { PaymentPayload, PaymentRequirements } from "@kaspacom/x402-types";
```

## Links

- [x402-KAS repo](https://github.com/KASPACOM/x402-KAS)
- [KaspaCom](https://kaspacom.com)
npm package: @kasparovnikolay/use-react
Description: 1. useLazyLoad 2. useWhyDidYouUpdate
Latest version: 1.2.0

# Библиотека переиспользуемых утилит и компонентов

1. useLazyLoad
2. useWhyDidYouUpdate

# Порядок публикации 

1. Safety Checks:
```git pull```
```git status```
```npm ci```
```pnpm test```
2. Prepare the Release:
```pnpm build```
3. Update the Changelog
4. Update the Version Number:
```pnpm version => major | minor | patch```
4.1) Or by hand: update version in package.json & package-lock.json
```git commit -am '2.0.0'```
```git tag v2.0.0```
5. Publish to npm:
```pnpm publish```
6. Publish to Git:
```git push```
```git push --tags```

7. Create a GitHub Release (optional)
npm package: @kasparweclio/openlens-node-pod-menu-chamber
Description: Node and pod menus for OpenLens
Latest version: 0.1.2

# OpenLens Node/Pod Menu Extension

This OpenLens extension adds back the node and pod menu functionality that was removed from OpenLens itself in 6.3.0.

# Installing this extension

In OpenLens, navigate to the Extensions list. In the text box, enter the name of this plugin:

```
@alebcay/openlens-node-pod-menu
```

Click "Install", and after a few moments, the plugin should appear in the list of installed extensions and be enabled.

# How to build this extension locally

From the root of this repository:

```sh
# Choose the same version of Node that is used in the Electron version
# that OpenLens uses. It might work with other (newer) versions of
# Node but I haven't tested it.
nvm install 16.14.2

npm ci
npm run build
npm pack
```

The tarball for the extension will be placed in the current directory. In OpenLens, navigate to the Extensions list and provide the path to the tarball to be loaded, or drag and drop the extension tarball into the OpenLens window. After loading for a moment, the extension should appear in the list of enabled extensions.

# License

Like the OpenLens repository itself at the point from which this extension is based upon, the content of this repository is released under the MIT license. See the file `LICENSE` for details.
npm package: @kasper-green/node-async-exec
Description: ![version](https://img.shields.io/npm/v/node-async-exec?color=%2FD566) ![downloads](https://img.shields.io/npm/dt/node-async-exec?color=2FD566) ![license](https://img.shields.io/npm/l/node-async-exec?color=2FD566)
Author: Kasper Green
Latest version: 1.2.4

# 🎲 node-async-exec

![version](https://img.shields.io/npm/v/node-async-exec?color=%2FD566)
![downloads](https://img.shields.io/npm/dt/node-async-exec?color=2FD566)
![license](https://img.shields.io/npm/l/node-async-exec?color=2FD566)

A package that runs exec command asynchronously and also changes directory if needed to run commands.

## Features

- Asynchronously run a shell command.
- Run a shell command/commands inside a specific directory.
- Uses [exec node method](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) and [process.chdir](https://nodejs.org/api/process.html#process_process_chdir_directory) under the hood.
- Can be used to build CLI and Node.js based tools.

<br>

<img src="./assets/suitcase.png" width="10%" />

## Install

```sh
# install the package
npm install @kasper-green/node-async-exec
```

<br>

<img src="./assets/rocket.png" width="10%" />

## Usage

- Run a shell command

```js
const exec = require('node-async-exec');

(async () => {
	try {
		await exec({ cmd: `touch example.md` })
	} catch (err) {
		console.log(err);
	}
})()
```

- Change directory and run a command inside of it

```js
const exec = require('node-async-exec');

(async () => {
	try {
		await exec({
			path: `/Users/saadirfan/GitHub`,
			cmd: `touch example.md`
		})
	} catch (err) {
		console.log(err);
	}
})()
```

- Change directory and run a number of shell command inside that directory

```js
const exec = require('node-async-exec');

(async () => {
	try {
		const commands = [`git init`, `touch example.md`];
		await exec({
			path: `/Users/saadirfan/GitHub`,
			cmd: commands
		})
	} catch (err) {
		console.log(err);
	}
})()
```

## ⚡️ Other Projects

I have curated a [detailed list](https://github.com/msaaddev/open-source) of all the open-source projects I have authored. Do take out a moment and take a look.

## 🔑 License & Conduct

- MIT © [Saad Irfan](https://github.com/msaaddev)
- [Code of Conduct](https://github.com/msaaddev/node-async-exec/blob/master/code-of-conduct.md)
npm package: @kasperfranz/nuxt-sitemap-module
Description: Automatically generate or serve dynamic sitemap.xml for Nuxt projects
Latest version: 0.2.0

[![@nuxtjs/sitemap](docs/static/preview.png)](https://sitemap.nuxtjs.org)

# Sitemap Module for Nuxt 2

[![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/sitemap/latest?style=flat-square)](https://npmjs.com/package/@nuxtjs/sitemap)
[![Downloads](https://img.shields.io/npm/dw/@nuxtjs/sitemap?style=flat-square)](https://npmjs.com/package/@nuxtjs/sitemap)
[![Build Status](https://img.shields.io/circleci/project/github/nuxt-community/sitemap-module?style=flat-square)](https://app.circleci.com/pipelines/github/nuxt-community/sitemap-module)
[![Coverage Status](https://img.shields.io/codecov/c/github/nuxt-community/sitemap-module?style=flat-square)](https://codecov.io/gh/nuxt-community/sitemap-module)
[![License](https://img.shields.io/npm/l/@nuxtjs/sitemap?style=flat-square)](http://standardjs.com)

> Automatically generate or serve dynamic [sitemap.xml](https://www.sitemaps.org/protocol.html) for Nuxt projects!

💡 Using Nuxt 3? The repo has moved to [nuxt-modules/sitemap](https://github.com/nuxt-modules/sitemap).

💡 If you intend to use this module for Nuxt 2, you should stay on version 2.x.

<p align="center">
  <a href="https://sitemap.nuxtjs.org">Read Documentation</a>
</p>

[📖 **Release Notes**](./CHANGELOG.md)

## License

[MIT License](./LICENSE)

## Contributors

- [Nicolas Pennec](https://github.com/NicoPennec)
- [Pooya Parsa](https://github.com/pi0)