open-index/open-npm huggingface dataset:
npm package: @kajws/galaxy-vr
Description: A VR web component for galaxy simulation using Three.js and WebXR
Author: Kaj Siebert
Latest version: 1.1.1

# Galaxy-VR

A VR web component for galaxy simulation using Three.js and WebXR, built on top of [@kajws/galaxy-js](https://github.com/kajws/galaxy-js). This component provides an immersive experience for visualizing galaxy dynamics in a virtual reality environment.

## Features

- **VR Ready**: Full WebXR support for immersive VR experiences.
- **3D Galaxy Simulation**: Renders multiple galaxies with thousands of stars.
- **Interactive Controls**: Orbit controls for easy navigation in 3D space.
- **Custom Element**: Easy to embed in any web page as a `<vr-galaxy-simulation>` custom element.
- **Powered by @kajws/galaxy-js**: The core simulation logic is provided by the `@kajws/galaxy-js` library.

## Demo

See `index.html` for a live demo.

## Installation

To install the component, you can use any package manager:

```bash
npm install @kajws/galaxy-vr
```

or

```bash
pnpm install @kajws/galaxy-vr
```

## Usage

Embed the component in your HTML and import the module:

```html
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Galaxy VR</title>
  <style>
   body {
    margin: 0;
    height: 100vh;
   }
   vr-galaxy-simulation {
    display: block;
    width: 100%;
    height: 100%;
   }
  </style>
 </head>
 <body>
  <vr-galaxy-simulation></vr-galaxy-simulation>
  <script type="module">
   import 'galaxy-vr';
  </script>
 </body>
</html>
```

## Development

To run the project locally, follow these steps:

1. Clone the repository:

    ```bash
    git clone https://github.com/kajws/galaxy-js.git
    cd galaxy-js/galaxy-vr
    ```

2. Install dependencies:

    ```bash
    pnpm install
    ```

3. Start the development server:

    ```bash
    pnpm run dev
    ```

## Building

To build the component for production, run:

```bash
pnpm run build
```

This will generate the necessary files in the `dist` directory.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request on the [GitHub repository](https://github.com/kajws/galaxy-js).

## License

This project is licensed under the MIT License.
npm package: @kakachi/anbumewzic
Description: A private wrapper of Lavalink, specially created for KakaChi - The best customizable multi-functional Discord Bot!
Author: Sarcaster!
Latest version: 1.1.0

<h1 align="center">AnbuMewzic</h1>

> A private wrapper of Lavalink, specially created for [KakaChi - The best customizable multi-functional Discord Bot!](https://dsc.gg/kakachi)

## Author

👤 **Sarcaster!**

- Discord: [Sarcaster!#3452](https://dsc.gg/sarcasters-suite)
- Github: [@sarcasternub](https://github.com/sarcasternub)

## License

Project is licensed under the © [**MIT License**](/LICENSE)

---
npm package: @kakachi/anbumewzic-deezer
Description: An AnbuMewzic custom plugin for supporting Deezer URL.
Author: Sarcaster!
Latest version: 1.1.0

<h1 align="center">AnbuMewzic</h1>

> A custom-made Music Module specially created for [KakaChi - The best customizable multi-functional Discord Bot!](https://top.gg/bot/788799817908092978) by Sarcaster!.

# @kakachi/anbumewzic-deezer

An AnbuMewzic custom plugin for supporting Deezer URL. 

# Feature

This plugin grabs the songs on Deezer then searches on the soucres provided and plays with AnbuMewzic.

# Installation

Please do not try to install it as it is only supported with AnbuMewzic. It is kind of a private module.

## Author

👤 **Sarcaster!**

- Discord: [Sarcaster!#3452](https://dsc.gg/sarcasters-suite)
- Github: [@sarcasternub](https://github.com/sarcasternub)

## License

Project is licensed under the © [**MIT License**](/LICENSE)
npm package: @kakachi/anbumewzic-spotify
Description: An AnbuMewzic custom plugin for supporting Spotify.
Author: Sarcaster!
Latest version: 1.1.0

<h1 align="center">AnbuMewzic</h1>

> A custom-made Music Module specially created for [KakaChi - The best customizable multi-functional Discord Bot!](https://top.gg/bot/788799817908092978) by Sarcaster!.

# @kakachi/anbumewzic-spotify

An AnbuMewzic custom plugin for supporting Spotify URL. 

# Feature

This plugin grabs the songs on Spotify then searches on the soucres provided and plays with AnbuMewzic.

# Installation

Please do not try to install it as it is only supported with AnbuMewzic. It is kind of a private module.

## Author

👤 **Sarcaster!**

- Discord: [Sarcaster!#3452](https://dsc.gg/sarcasters-suite)
- Github: [@sarcasternub](https://github.com/sarcasternub)

## License

Project is licensed under the © [**MIT License**](/LICENSE)
npm package: @kakacut/mp-base
Description: 小程序自定义组件开发模板：
Latest version: 0.0.3

# miniprogram-custom-component

小程序自定义组件开发模板：

* 支持使用 less 语法编写 wxss 文件
* 使用 webpack 构建 js
* 支持自定义组件单元测试
* 支持 eslint
* 支持多入口构建

## 使用

* 使用[命令行工具](https://github.com/wechat-miniprogram/miniprogram-cli)进行初始化
* 直接从 github 上 clone 下来

## 开发

1. 安装依赖：

```
npm install
```

2. 执行命令：

```
npm run dev
```

默认会在包根目录下生成 miniprogram\_dev 目录，src 中的源代码会被构建并生成到 miniprogram\_dev/components 目录下。如果需要监听文件变化动态构建，则可以执行命令：

```
npm run watch
```

> ps: 如果 minirpogram\_dev 目录下已存在小程序 demo，执行`npm run dev`则不会再将 tools 下的 demo 拷贝到此目录下。而执行`npm run watch`则会监听 tools 目录下的 demo 变动并进行拷贝。

3. 生成的 miniprogram\_dev 目录是一个小程序项目目录，以此目录作为小程序项目目录在开发者工具中打开即可查看自定义组件被使用的效果。

4. 进阶：

* 如果有额外的构建需求，可自行修改 tools 目录中的构建脚本。
* 内置支持 webpack、less 语法、sourcemap 等功能，默认关闭。如若需要可以自行修改 tools/config.js 配置文件中相关配置。
* 内置支持多入口构建，如若需要可自行调整 tools/config.js 配置文件的 entry 字段。
* 默认开启 eslint，可自行调整规则或在 tools/config.js 中注释掉 eslint-loader 行来关闭此功能。

## 发布

> ps: 发布前得确保已经执行构建，小程序 npm 包只有构建出来的目录是真正被使用到的。

1. 如果还没有 npm 帐号，可以到[ npm 官网](https://www.npmjs.com/)注册一个 npm 帐号。
2. 在本地登录 npm 帐号，在本地执行：

```
npm adduser
```

或者

```
npm login
```

3. 在已完成编写的 npm 包根目录下执行：

```
npm publish
```

到此，npm 包就成功发布到 npm 平台了。

> PS：一些开发者在开发过程中可能修改过 npm 的源，所以当进行登录或发布时需要注意要将源切回 npm 的源。

## 目录结构

以下为推荐使用的目录结构，如果有必要开发者也可以自行做一些调整:

```
|--miniprogram_dev // 开发环境构建目录
|--miniprogram_dist // 生产环境构建目录
|--src // 源码
|   |--components // 通用自定义组件
|   |--images // 图片资源
|   |
|   |--xxx.js/xxx.wxml/xxx.json/xxx.wxss // 暴露的 js 模块/自定义组件入口文件
|
|--test // 测试用例
|--tools // 构建相关代码
|   |--demo // demo 小程序目录，开发环境下会被拷贝生成到 miniprogram_dev 目录中
|   |--config.js // 构建相关配置文件
|
|--gulpfile.js
```

> PS：对外暴露的 js 模块/自定义组件请放在 src 目录下，不宜放置在过深的目录。另外新增的暴露模块需要在 tools/config.js 的 entry 字段中补充，不然不会进行构建。

## 测试

* 执行测试用例：

```
npm run test
```

* 执行测试用例并进入 node inspect 调试：

```
npm run test-debug
```

* 检测覆盖率：

```
npm run coverage
```

测试用例放在 test 目录下，使用 **miniprogram-simulate** 工具集进行测试，[点击此处查看](https://github.com/wechat-miniprogram/miniprogram-simulate/blob/master/README.md)使用方法。在测试中可能需要变更或调整工具集中的一些方法，可在 test/utils 下自行实现。

## 其他命令

* 清空 miniprogram_dist 目录：

```
npm run clean
```

* 清空 miniprogam_dev 目录：

```
npm run clean-dev
```
npm package: @kakadu-dev/react-native-bepaid
Description: Bepaid SDK for react-native
Author: kakadu-dev
Latest version: 2.0.1

# React Native Bepaid

[React Native](http://facebook.github.io/react-native) library for accepting payments with [Bepaid](https://bepaid.by) SDK

# Install
Download package:
```shell
npm install --save react-native-bepaid
```

or

```shell
yarn add react-native-bepaid
```

# Methods

### createEncryptedFields()
Create encrypted card fields.
Returns a `Promise` that resolve encrypted fields (`Object`).

__Arguments__
- `cardNumber` - `String` Number of payment card.
- `cardExp` - `String` Expire date of payment card.
- `cardCvv` - `String` CVV code of payment card.
- `cardHolder` - `String` Card holder name

__Examples__
```js
import RNBepaid from 'react-native-bepaid';

const exampleCard = {
  number: '4200000000000000',
  extDate: '12/21',
  cvvCode: '123',
  cardHolder: 'IVANOV IVAN'
};

RNBepaid.createEncryptedFields(exampleCard.number, exampleCard.extDate, exampleCard.cvvCode, exampleCard.cardHolder)
  .then(encryptedFields => {
    console.log(encryptedFields);
  });
```

# License
Licensed under the MIT License.
npm package: @kakadu/components
Description: Kakadu components library
Latest version: 3.7.2

# Kakadu Components

[![@kakadu/components npm version](https://img.shields.io/npm/v/%40kakadu%2Fcomponents)](https://www.npmjs.com/package/@kakadu/components)

## Storybook

View the online component Storybook in Chromatic [here](https://www.chromatic.com/library?appId=697782e05c2a84508d0f34b2).

## Installation

First, install the package via npm:

```bash
npm install @kakadu/components
```

Next, import the base stylesheet and the `ThemeSetter` in your application’s entry point (for example `_app.tsx`). For notifications to work, you’ll also need the `NotificationProvider`.

```tsx
import React from 'react';
import {type AppProps} from 'next/app';
import {ThemeSetter} from '@kakadu/components';
import '@kakadu/components/components.css';

export default function App({Component, pageProps}: AppProps) {
  return (
    <>
      <ThemeSetter />

      <NotificationProvider>
        <Component {...pageProps} />
      </NotificationProvider>
    </>
  );
}
```

Then, in your `_document.tsx` (or equivalent), import the `theme` class name and the `FontFamilyHead`:

```tsx
import React from 'react';
import Document, {Html, Head, Main, NextScript} from 'next/document';
import {theme, FontFamilyHead} from '@kakadu/components';

export default class CustomDocument extends Document {
  render() {
    return (
      <Html suppressHydrationWarning className={theme}>
        <Head>
          <FontFamilyHead />
        </Head>

        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    );
  }
}
```

### Modals using roots and shadow roots

When rendering the modal in another `root` (such as a shadow root), you should provide the necessary decorators on the `Modal` component, as it will be rendered in a separate portal.

One such decorator could be the `NotificationProvider` (if notifications are used), or a `ThemeProvider` (custom element).

The provided decorators _must_ render its `children`, and you can use `outerDecorators` and `innerDecorators` to control if they are rendered before or inside the dimming layer.

```jsx
// Pseudo code:
const outerDecorators = useMemo(() => [ThemeProvider], []);
const innerDecorators = useMemo(() => [NotificationProvider], []);
<Modal outerDecorators={outerDecorators} innerDecorators={innerDecorators} />;
```

## Development

### Storybook

To run Storybook locally:

```
npm run storybook
```

Once started, open [http://localhost:6006](http://localhost:6006) in your browser.

## Publishing and release

1. Commit your changes.
2. Depending on the changeset, run `npm version major|minor|patch`.
3. Run `npm publish`.
npm package: @kakang/fastify-config
Description: Fastify plugin for env config
Author: KaKa
Latest version: 1.0.0

# @kakang/fastify-config

[![Continuous Integration](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-config.yml/badge.svg)](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-config.yml)
[![NPM version](https://img.shields.io/npm/v/@kakang/fastify-config.svg?style=flat)](https://www.npmjs.com/package/@kakang/fastify-config)

This plugin use `env-schema` to read the .env file and provides
the value through variables and fastify plugin.

## Install

```bash
npm install @kakang/fastify-config --save

yarn add @kakang/fastify-config
```

## Usage

```ts
import { build } from '@kakang/fastify-config'

// you need to explicit type it yourself
declare modules 'fastify' {
  interface FastifyInstance {
    config: {
      FOO: string
    }
  }
}

const { env, plugin } = build({
  schema: {
    type: 'object',
    properties: {
      FOO: { type: 'string' }
    }
  },
  data: process.env
  dotenv: true
})

fastify.register(plugin)

fastify.config // here is the env value
```
npm package: @kakang/fastify-mongodb
Description: Fastify plugin for mongodb connection
Author: KaKa
Latest version: 1.0.0

# @kakang/fastify-mongodb

[![Continuous Integration](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-multipart.yml/badge.svg)](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-mongodb.yml)
[![NPM version](https://img.shields.io/npm/v/@kakang/fastify-mongodb.svg?style=flat)](https://www.npmjs.com/package/@kakang/fastify-mongodb)

This plugin helps you to register mongodb client to `fastify`,
and it also provide some utilities to ease the usage of `mongodb`.

You can checkout `@fastify/mongodb` if you prefer offcial plugin.

## Install

```bash
npm install @kakang/fastify-mongodb mongodb --save

yarn add @kakang/fastify-mongodb mongodb
```

## Usage

```ts
import fastifyMongoDB from '@kakang/fastify-mongodb'

fastify.register(fastifyMongoDB, {
  url: 'mongodb://127.0.0.1:27017',
  database: 'foobar',
  options: {} // MongoClient options
})

fastify.post('/', async function(request, reply) {
  // insertion
  await fastify.mongodb.db.collection('foo').insertOne(request.body)

  // auto managed transaction
  const result = await fastify.mongodb.withTransaction(async (session) => {
    const result = await fastify.mongodb.db.collection('foo').insertOne(request.body, { session })
    return result
  })
})
```

### Options

#### options.url

The URL of `mongodb` server.

#### options.database

The database name you would like to use.

#### options.options

Options passed to `MongoClient`.
npm package: @kakang/fastify-oauth2
Description: Fastify plugin for OAuth2.0
Author: KaKa
Latest version: 1.0.0

# @kakang/fastify-mongodb

[![Continuous Integration](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-multipart.yml/badge.svg)](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-mongodb.yml)
[![NPM version](https://img.shields.io/npm/v/@kakang/fastify-mongodb.svg?style=flat)](https://www.npmjs.com/package/@kakang/fastify-mongodb)

This plugin helps you to register mongodb client to `fastify`,
and it also provide some utilities to ease the usage of `mongodb`.

You can checkout `@fastify/mongodb` if you prefer offcial plugin.

## Install

```bash
npm install @kakang/fastify-mongodb mongodb --save

yarn add @kakang/fastify-mongodb mongodb
```

## Usage

```ts
import fastifyMongoDB from '@kakang/fastify-mongodb'

fastify.register(fastifyMongoDB, {
  url: 'mongodb://127.0.0.1:27017',
  database: 'foobar',
  options: {} // MongoClient options
})

fastify.post('/', async function(request, reply) {
  // insertion
  await fastify.mongodb.db.collection('foo').insertOne(request.body)

  // auto managed transaction
  const result = await fastify.mongodb.withTransaction(async (session) => {
    const result = await fastify.mongodb.db.collection('foo').insertOne(request.body, { session })
    return result
  })
})
```

### Options

#### options.url

The URL of `mongodb` server.

#### options.database

The database name you would like to use.

#### options.options

Options passed to `MongoClient`.
npm package: @kakang/fastify-static
Description: Fastify plugin for content serving
Author: KaKa
Latest version: 1.1.3

# @kakang/fastify-static

[![Continuous Integration](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-static.yml/badge.svg)](https://github.com/kaka-ng/fastify-plugins/actions/workflows/ci-static.yml)
[![NPM version](https://img.shields.io/npm/v/@kakang/fastify-static.svg?style=flat)](https://www.npmjs.com/package/@kakang/fastify-static)

This plugin provide serving file through different engine.

You can checkout `@fastify/static` if you prefer offcial plugin.

## Install

```bash
npm install @kakang/fastify-static --save

yarn add @kakang/fastify-static
```

## Usage

```ts
import FastifyStatic, {
  FileSystemEngine
} from '@kakang/fastify-static'

fastify.register(FastifyStatic, {
  serve: "/",
  root: "/",
  engine: new FileSystemEngine()
})

fastify.get("/download.txt", (_, reply) => {
  // download file
  return reply.download('download.txt', 'newname.txt')
})

fastify.get("/download.html", (_, reply) => {
  // send file
  return reply.sendFile('download.html')
})

fastify.post('/stream', (request, reply) => {
  // write file
  await fastify.static.upload('newfile.txt', request.body)
  return reply.send({ ok: true })
})
```