open-index/open-npm huggingface dataset:
npm package: @gancao/base-tools-react
Description: Thin wrapper for @gancao/base-tools/react to improve auto-imports in legacy JS projects.
Latest version: 0.0.1

# @gancao/base-tools-react

薄包装分包，转发到主包的 `react` 子路径：`@gancao/base-tools/react`。

适用场景：旧版 Node/JS 项目（如 Node 14、无法切换到 bundler 解析），希望在只使用 React 相关工具时获得更好的自动导入和注释提示。

安装

```
npm i @gancao/base-tools-react
```

使用

```
import { useMounted } from '@gancao/base-tools-react'
```

说明

- 不复制源码，仅薄包装转发到主包子路径，保持摇树与体积。
- 适合 Node 14、React 16/17、难以启用 `moduleResolution: bundler` 的项目。
- 如能升级到 TS 5.2+ 并使用 `bundler`/`node16|nodenext` 解析，可继续直接使用主包的子路径导入。
npm package: @gancao/base-tools-ts
Description: Thin wrapper for @gancao/base-tools/ts to improve auto-imports in legacy JS/TS projects.
Latest version: 0.0.1

# @gancao/base-tools-ts

> 轻量分包：将 `@gancao/base-tools/ts` 作为根入口导出，提升在旧解析/JS 项目中的自动导入与符号发现。

## 安装

- `npm i @gancao/base-tools-ts`
- 或 `pnpm add @gancao/base-tools-ts`
- 要求：主包 `@gancao/base-tools@^0.0.8`

## 使用

```js
import { addUnitPx, arrayMove } from '@gancao/base-tools-ts';
```

## 说明

- 本包不复制源码，仅转发到主包 `@gancao/base-tools/ts`，保持体积与摇树优化。
- 适合 Node 14、Vue 2/3、React 16/17、难以启用 `moduleResolution: bundler` 的项目。
- 如能升级到 TS 5.2+ 并使用 `bundler`/`node16|nodenext` 解析，可继续直接使用主包的子路径导入。
npm package: @gancao/base-tools-uni
Description: Thin wrapper for @gancao/base-tools/uni to improve auto-imports in legacy JS projects.
Latest version: 0.0.1

# @gancao/base-tools-uni

薄包装分包，转发到主包的 `uni` 子路径：`@gancao/base-tools/uni`。

适用场景：旧版 Node/JS 项目（如 Node 14、无法切换到 bundler 解析），希望获得更好的自动导入和注释提示，但不改变项目解析配置。

安装

```
npm i @gancao/base-tools-uni
```

使用

```
import { sleep, delay } from '@gancao/base-tools-uni'
```

说明

- 不复制源码，仅薄包装转发到主包子路径，保持摇树与体积。
- 适合 Node 14、Vue 2/3、难以启用 `moduleResolution: bundler` 的项目。
- 如能升级到 TS 5.2+ 并使用 `bundler`/`node16|nodenext` 解析，可继续直接使用主包的子路径导入。
npm package: @gancao/base-tools-vue
Description: Thin wrapper for @gancao/base-tools/vue to improve auto-imports in legacy JS projects.
Latest version: 0.0.1

# @gancao/base-tools-vue

薄包装分包，转发到主包的 `vue` 子路径：`@gancao/base-tools/vue`。

适用场景：旧版 Node/JS 项目（如 Node 14、无法切换到 bundler 解析），希望在只使用 Vue 相关工具时获得更好的自动导入和注释提示。

安装

```
npm i @gancao/base-tools-vue
```

使用

```
import { useMounted } from '@gancao/base-tools-vue'
```

说明

- 不复制源码，仅薄包装转发到主包子路径，保持摇树与体积。
- 适合 Node 14、Vue 2/3、难以启用 `moduleResolution: bundler` 的项目。
- 如能升级到 TS 5.2+ 并使用 `bundler`/`node16|nodenext` 解析，可继续直接使用主包的子路径导入。
npm package: @gancao/base-tools-web
Description: Thin wrapper for @gancao/base-tools/web to improve auto-imports in legacy JS projects.
Latest version: 0.0.1

# @gancao/base-tools-web

薄包装分包，转发到主包的 `web` 子路径：`@gancao/base-tools/web`。

适用场景：旧版 Node/JS 项目（如 Node 14、无法切换到 bundler 解析），希望获得更好的自动导入和注释提示，但不改变项目解析配置。

安装

```
npm i @gancao/base-tools-web
```

使用

```
import { loadScript, loadStyle } from '@gancao/base-tools-web'
```

说明

- 不复制源码，仅薄包装转发到主包子路径，保持摇树与体积。
- 适合 Node 14、Vue 2/3、React 16/17、难以启用 `moduleResolution: bundler` 的项目。
- 如能升级到 TS 5.2+ 并使用 `bundler`/`node16|nodenext` 解析，可继续直接使用主包的子路径导入。
npm package: @gandalf-network/connect
Description: `connect` is a library that makes it easier to generate valid [Connect](https://docs.gandalf.network/concepts/connect) URLs that lets your users to link their accounts to Gandalf.
Author: gandalf-network
Latest version: 1.2.0

# connect

`connect` is a library that makes it easier to generate valid [Connect](https://docs.gandalf.network/concepts/connect) URLs that lets your users to link their accounts to Gandalf.

## Features

- Generate valid Connect URLs
- Generate valid Connect QRCodes on web
- Parameter validation

## Getting Started

This section provides a quick overview of how to integrate the library into your project.

### Prerequisites

[NodeJS](https://nodejs.org/) - version 18.x or higher

### Installation

```bash
npm install @gandalf-network/connect --save
```

### Usage

#### Import the library

```typescript
// Typescript && ESModules

import Connect, { Platform } from "@gandalf-network/connect";
```

```javascript
// CommonJS

const Connect, { Platform } = require("@gandalf-network/connect");
```

#### Initialize Connect

```typescript
const connect = new Connect({
    publicKey: process.env.PUBLIC_KEY, 
    redirectURL: "YOUR_REDIRECT_URL",
    // The platform defaults to IOS but could be ANDROID or UNIVERSAL
    platform: Platform.ANDROID,
    services: 
    {
        uber: {
            traits: ["rating"], // At least one trait or activity is required
            activities: ["trip"],
        },
        netflix: {
            activities: ["watch"],
            required: false // To make a service optional to the user
        },
        slack: {
            activities: ["message"],
            required: true,
            workspaceURL: "https://your-workspace.slack.com" // Required for Slack service
        },
    },
    // Optional paramter to modify the Connect UI
    options: {
        style: {
            primaryColor: "#7949D1", 
            backgroundColor: "#fff", 
            foregroundColor: "#562BA6", 
            accentColor: "#F4F0FB"
        }
    }
})
```

#### Generate a Connect URL

```typescript
const url = await connect.generateURL()
console.log(url)
```

#### Generate a Connect QRCode

Note: This function will only work within a browser context and will fail otherwise.

```typescript
const qrCodeURL = await connect.generateQRCode()
console.log(qrCodeURL)
```

#### Extract the dataKey from the redirectURL

```typescript
const datakey = Connect.getDataKeyFromURL("REDIRECT_URL")
console.log(datakey)
```

## Contributing

Contributions are welcome, whether they're feature requests, bug fixes, or documentation improvements.
npm package: @gandalfix/opencode-permission-export
Description: OpenCode plugin to export granted permissions as config snippet
Latest version: 1.0.1

# opencode-permission-export

OpenCode plugin that exports granted permissions as a config snippet.

## Installation

```bash
npm install @gandalfix/opencode-permission-export
```

Add to your `opencode.json`:

```json
{
  "plugin": ["@gandalfix/opencode-permission-export"]
}
```

## Usage

During an OpenCode session, the plugin tracks all permission requests. When you want to export the granted permissions:

```
export my permissions
```

or

```
run export-permissions
```

The tool outputs a JSON snippet you can copy into your `opencode.json`:

```json
{
  "permission": {
    "bash": {
      "git status": "allow",
      "npm run *": "allow"
    },
    "edit": {
      "src/*.ts": "allow"
    }
  }
}
```

## How It Works

1. Hooks into `permission.ask` and `permission.replied` events
2. Tracks which permissions were granted vs denied
3. Generates valid OpenCode permission config syntax
4. Only exports granted permissions (denied are noted but not included)

## License

MIT