open-index/open-npm huggingface dataset:
npm package: @frostup/swr-request-generator
Description: A tool for generating TypeScript code and interface from swagger by using SWR and axios as client.
Author: teobler
Latest version: 0.7.5

# SWR request generator

This tool can generate [SWR](https://swr.vercel.app/) request and related request params and response interface from swagger.

it will generate all GET request via SWR and others will be [axios](https://www.axios.com/).

# Dependencies

if you want to use this tool, your project should be:

1. your back end API should use swagger and OpenAPI 3.0 standard
2. your front end client should be axios
3. use SWR as data fetching lib for your front end web app

# How to use
## install

```bash
npm install -D @openapi-integration/swr-request-generator
```

or

```bash
yarn add -D @openapi-integration/swr-request-generator
```

## Configuration
### script

add a npm script to your package.json file:

```json
{
  "scripts": {
    "codegen": "ts-codegen"
  }
}
```

### config file

create a new json file named `ts-codegen.config.json` in your project root directory like this

```json
{
  "output": "src/request",
  "fileHeaders": [
    "/* eslint-disable @typescript-eslint/explicit-module-boundary-types */",
    "/* eslint-disable @typescript-eslint/no-explicit-any */",
    "import { ISWRConfig, useRequest } from './useRequest';",
    "import { IResponseError } from \"../../constants/error\";",
    "import { client } from \"./client\";"
  ],
  "clients": ["https://app.swaggerhub.com/apiproxy/registry/teobler/integration-example/1.0.0"],
  "fileName": "api",
  "data": ["./examples/openAPI.json"]
}
```

fields meaning:
 - output(string): output file dir
 - fileName(string): output filename
 - fileHeaders(string[]): strings in this array will be placed in output file beginning
 - clients(string[]): your swagger urls
 - data(string[]): your local swagger json file dirs

### Run it!

1. Find an address where you can get your back-end API swagger json file (either online or local), it should be an url can get swagger json response
2. Fill this address into the `clients array` of the above configuration file. If you have multiple addresses, fill in multiple string addresses.
3. If you can only download the swagger json file, that's fine, just put the json file into your project and fill in your file path in the data field of the config file.
4. Run `npm run codegen` then you can find output file in your output dir

> if your swagger url need basic auth, just run `npm run codegen -- -a "Basic #basicAuthHeader"`

## example

all the details can be found in example folder.

clone this repo

run `npm i` to install all dependency

then run `bin/ts-codegen.js` can generate api file in `example/request/api.ts`

how to use this file can be found in page.tsx 

## changelog
[changelog](changelog.md)
npm package: @frostzzone/discord-sync-commands
Description: Easily keep your bot's slash commands synchronized with Discord
Author: frostzzone
Latest version: 0.3.0

# Discord Sync Commands

kinda a fix to Androz2019's package

Easily keep your bot's slash commands synchronized with Discord! 🔁

## Features

⚡ No useless calls to the Discord API!  
❗ Auto detection of changes in your commands!  
🤟 Super easy to use!

## Example

```js
const Discord = require('discord.js');
const client = new Discord.Client({
    intents: []
});

const synchronizeSlashCommands = require('@frostzzone/discord-sync-commands');
synchronizeSlashCommands(client, [
    {
        name: 'ping',
        description: 'Check whether the bot is working'
    }
], {
    debug: true,
    guildId: '558328638911545423' // remove this property to use global commands
});

client.on('ready', () => {
    console.log('Ready!');
});

client.on('interactionCreate', (interaction) => {

    if (!interaction.isCommand()) return;

    if (interaction.commandName === 'ping') {
        interaction.reply('Pong!');
    }

});

client.login('token');
```
npm package: @frourio/kuuga
Description: Knowledge structure protocol CLI for KUUGA
Author: Solufa
Latest version: 0.7.1

# KUUGA CLI

宇宙スケールの知の保存を目的としたプロトコル「KUUGA」のCLIツールです。論文をMarkdownとJSONで管理し、IPFSへの公開と永続化を支援します。

## 特徴
- MarkdownとJSONによるシンプルな論文管理
- Gitモノレポと連携したバージョン管理
- IPFSネットワークへの自動公開
- 引用関係をもとにしたピン留めルールの推奨

## インストール

```bash
npm install -g @frourio/kuuga
```

または、プロジェクト内で：

```bash
npm install @frourio/kuuga
```

## 使用方法

### プロジェクト初期化
新しいKUUGAプロジェクトを初期化します：

```bash
kuuga init my-kuuga-project
```

生成されるファイル：

```
my-kuuga-project/
├── Dockerfile      # IPFSノード用
└── .github/workflows/build-papers.yml
```

### 論文の追加
papers配下に新しい論文ディレクトリを作成します：

```bash
kuuga add my-paper
```

生成されるファイル：

```
papers/my-paper/
├── main.md         # 本文（Markdown）
├── meta.json       # 論文のメタ情報
└── README.md       # 論文用Readme
```

### 検証

papers配下のすべての論文の構成ファイルを一括検証します：

```bash
kuuga validate
```

### ビルド

papers配下のすべての論文を`out/`ディレクトリに一括コピーします：

```bash
kuuga build
```

論文は`out/{論文名}/{バージョン}/`の形式でディレクトリ構造が作成されます。

### ピン留め

outディレクトリの論文ディレクトリをIPFSにピン留めし、引用先もピン留めします：

```bash
kuuga pin
```

### CID計算

outディレクトリの論文ディレクトリのIPFS CIDを計算します：

```bash
kuuga publish
```

## 自動公開とピン留め（GitHub Actions + IPFSノード）

- `main`ブランチにPushすると、GHAが差分を検知して論文ディレクトリを自動生成・コミットします。
- IPFSノードが起動すると、`node_modules/@frourio/kuuga/dist/publish.sh` スクリプトが以下を実行します：
  - outディレクトリ内のすべての論文ディレクトリをIPFSに再帰的に追加・ピン留め
  - papers配下の各meta.jsonに記載された `references` をもとに引用論文をピン留め

この仕組みにより、引用関係が壊れないようネットワーク全体での保存努力が促進されます。
npm package: @froxz/vite-plugin-primevue
Description: Very simple Vite plugin for automatic imports of PrimeVue
Author: Froxz
Latest version: 1.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# vite-plugin-primevue

Very simple Vite plugin for automatic imports of [PrimeVue](https://github.com/primefaces/primevue/). Ported from [vite-plugin-vuetify](https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin) that was created by [@KaelWD](https://github.com/KaelWD)

## Automatic imports
```js
// vite.config.js
import primevue from '@froxz/vite-plugin-primevue'

plugins: [
  vue(),
  primeVue()
]
```

## Options

```js
// vite.config.js
import primevue from '@froxz/vite-plugin-primevue'

plugins: [
  vue(),
  primeVue({
    sfc: true // Read: https://www.primefaces.org/primevue/setup (Single File Components)
  })
]
```

## Caveats

When using this plugin you can define componets in your template as camel, kebab, or lower case, all will produce same result example:

```vue
<template>
    <InputSwitch/>
    <input-switch/>
    <inputswitch/>
</template>
```

Exceptions (Components that have same name as HTML elements:

```vue
<template>
    <Button/> //should be defined as Capitilize
</template>
```
npm package: @froyoswap-libs/sdk
Description: 🛠 An SDK for building applications on top of froyoswap.
Latest version: 1.1.0

# FroyoSwap SDK

## Running tests

To run the tests, 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/froyoswap/froyo-swap-sdk.git
```

Move into the froyo-swap-sdk working directory

```sh
cd froyo-swap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @froyoswap-libs/uikit
Description: Set of UI components for froyo projects
Latest version: 1.0.0

# Froyo UIkit

Froyo UIkit is a set of React components and hooks used to build pages on Froyo's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @froyoswap-libs/uikit`

## Setup

### Theme

Before using Froyo UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@froyoswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@froyoswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.
npm package: @froze-labs/medusa-plugin-product-enhancement
Description: Medusa plugin to enhance products
Author: Froze
Latest version: 1.1.0

<p align="center">
  <a href="https://www.medusajs.com">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    <img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    </picture>
  </a>
</p>
<h1 align="center">
  @froze-labs/medusa-plugin-product-enhancement
</h1>

<h4 align="center">
  <a href="https://docs.medusajs.com">Medusa.js Documentation</a> |
  <a href="https://www.medusajs.com">Medusa.js Website</a>
</h4>

<p align="center">
  Building blocks for digital commerce
</p>

## Compatibility

This starter is compatible with versions >= 2.4.0 of `@medusajs/medusa`.

## Getting started

To install this plugin in your Medusa project, follow these steps:

1. Run the following command in your Medusa project directory to install the plugin:

```bash
npm install @froze-labs/medusa-plugin-product-enhancement
```

2. Activate the plugin by adding it to the `medusa-config.js` or `medusa-config.ts` file in your Medusa project:

```ts
const config = {
  // Other configs...
  plugins: [
    // Other plugins...
    {
      resolve: "@froze-labs/medusa-plugin-product-enhancement",
      options: {},
    },
  ],
};

export default config;
```

3. Run the migrations:

```bash
npx medusa db:migrate
```

4. Restart your Medusa server:

```bash
npm run start
```

Visit the [Plugins documentation](https://docs.medusajs.com/learn/fundamentals/plugins) to learn more about plugins in Medusa.js context.

## About this plugin

This plugin aims to enhance base Medusa product functionality by adding new fields and features to products so they could be entirely managed from Medusa Admin. This is to prevent the need for a separate CMS system to manage product content for example.

We want to cover most common use cases for product management, that already exist in other e-commerce platforms, such as Shopify, PrestaShop, WooCommerce, etc.

### Features

- Add `content` property for products and add a WYSIWYG rich text editor in Medusa Admin to manage it

### Future development

- Add brands to products
- Add SEO fields to products (meta title, meta description, meta keywords)
- Add product attributes (for querying/filtering purposes) -> should be implemented as a separate plugin

## Links

- [Medusa.js](https://medusajs.com/)
- [Froze](https://froze.fi/)
- [LinkedIn](https://www.linkedin.com/company/froze/)