open-index/open-npm huggingface dataset:
npm package: @fly-email/render-vue
Description: Render HTML for vue
Author: Giovanni Soares
Latest version: 1.0.1

# Vue Render

Convert Vue file into HTML email template.

## Install

```
yarn add @zen-labs/render-vue
```

```
npm install --save @zen-labs/render-vue
```

## Getting started

```javascript
import View from "./View.vue";
import { render } from "@zen-labs/render-vue";

(async () => {
  const html = await render(View, props);
})();
```
npm package: @fly-lab/eslint-config
Description: ESLint statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.
Author: DHN Chandan
Latest version: 1.2.2

# @fly-lab ESLint & Prettier Rules

ESLint statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.

This package is @rushstack/eslint-config based custom ESLint rules. It will remove most of the headache of configuring ESLint and prettier in every project.

<p align="center">
    <img src="./eslint.png" alt="@fly-lab ESLint & Prettier Rules" width="300" height="300" />
</p>

## Installation

```shell
$ npm i -D @fly-lab/eslint-config
$ pnpm i -D @fly-lab/eslint-config
$ yarn add -D @fly-lab/eslint-config
```

## Usages

### ESLint

Usage is very easy. Just extend required [profile](#profile) in your .eslintrc file.

For example, extending in react project:

.eslintrc.js file in root directory:

```shell
module.exports = {
	root: true,
	extends: ["@fly-lab/eslint-config/react"],
	parserOptions: {
		tsconfigRootDir: __dirname,
	},
};
```

### Prettier

Extending prettier is super easy. Just create .prettierrc file with content:

```shell
"@fly-lab/eslint-config/prettier-config.json"
```

## Profile

Extending depends upon project:

- React TypeScript: `@fly-lab/eslint-config/react`
- React JavaScript: `@fly-lab/eslint-config/react/js`
- Node TypeScript: `@fly-lab/eslint-config/node`
- Node JavaScript: `@fly-lab/eslint-config/node/js`

## ESLint ignoring

If we want to ignore specific file or folder to lint, use gitignore like syntax.

.eslintignore file:

```eslint
node_modules
some_file.js
**/*html
```

## Prettier ignoring

Just like ESLint ignoring:

.prettierignore file:

```eslint
.github
dist
**/*.md
coverage
```
npm package: @fly-lab/hono-agents
Description: Add Cloudflare Agents to your Hono app
Author: DHN Chandan
Latest version: 0.1.6

# hono-agents

🔥 Hono ⨉ 🧠 Cloudflare Agents

Add intelligent, stateful AI agents to your Hono app. Create persistent AI agents that can think, communicate, and evolve over time, all integrated seamlessly with your Hono application.

> **🚀 Performance Optimization Notice**
>
> This is a forked version from Cloudflare agents, **optimized for sending last message from client and persisting only last messages in the database**. In the main Cloudflare package, on every message it is deleting all messages and then persisting again. **This creates extra SQL reads and writes**. Our fork eliminates these unnecessary operations for better performance.

## Updates

- Sending last message from client
- Persisting last message in database to save SQL writes
- Using Vercel AI SDK version 5

## Installation

```bash
npm install @fly-lab/agents hono @fly-lab/hono-agents
```

## Usage

```ts
import { Hono } from "hono";
import { Agent } from "@fly-lab/agents";
import { agentsMiddleware } from "@fly-lab/hono-agents";

// Define your agent classes
export class ChatAgent extends Agent {
  async onRequest(request) {
    return new Response("Ready to assist with chat.");
  }
}

export class AssistantAgent extends Agent {
  async onRequest(request) {
    return new Response("I'm your AI assistant.");
  }
}

// Basic setup
const app = new Hono();
app.use("*", agentsMiddleware());

// or with authentication
app.use(
  "*",
  agentsMiddleware({
    options: {
      onBeforeConnect: async (req) => {
        const token = req.headers.get("authorization");
        // validate token
        if (!token) return new Response("Unauthorized", { status: 401 });
      }
    }
  })
);

// With error handling
app.use("*", agentsMiddleware({ onError: (error) => console.error(error) }));

// With custom routing
app.use(
  "*",
  agentsMiddleware({
    options: {
      prefix: "agents" // Handles /agents/* routes only
    }
  })
);

export default app;
```

## Configuration

To properly configure your Cloudflare Workers project to use agents, add bindings to your `wrangler.jsonc` file:

```json
{
  "durable_objects": {
    "bindings": [
      { "name": "ChatAgent", "class_name": "ChatAgent" },
      { "name": "AssistantAgent", "class_name": "AssistantAgent" }
    ]
  },
  "migrations": [
    {
      "tag": "v1",
      "new_sqlite_classes": ["ChatAgent", "AssistantAgent"]
    }
  ]
}
```

## How It Works

The `agentsMiddleware` function:

1. Detects whether the incoming request is a WebSocket connection or standard HTTP request
2. Routes the request to the appropriate agent
3. Handles WebSocket upgrades for persistent connections
4. Provides error handling and custom routing options

Agents can:

- Maintain state across requests
- Handle both HTTP and WebSocket connections
- Schedule tasks for future execution
- Communicate with AI services
- Integrate seamlessly with React applications

## License

Learn more about Cloudflare Agents at https://www.npmjs.com/package/agents

ISC
npm package: @fly-lab/tsconfig
Description: These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from.
Author: DHN Chandan
Latest version: 3.0.1

# `tsconfig`

These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from.

## Config files

- Base config
- React config
- React Native config
- Next.js Config
- Preact config
- Node.js config

## Installation

```shell
npm install -D @fly-lab/tsconfig
yarn add -D @fly-lab/tsconfig
pnpm install -D @fly-lab/tsconfig
```

## Example Usage

### For Next.js app

Extend your project tsconfig.json

```shell
{
  "extends": "@fly-lab/tsconfig/nextjs.json",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}
```

### For React app

Extend your project tsconfig.json

```shell
{
  "extends": "@fly-lab/tsconfig/react.json",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}
```
npm package: @fly-vue/color
Description: 颜色辅助生成器
Latest version: 1.8.15

# @fly-vue/Color
根据给定颜色通过算法生成指定包含十个颜色的梯度色板，也可生成暗色模式下包含十个颜色的色板。

## 安装

```bash
npm i @fly-vue/color
```

```js
import { generate, presetColor } from '@fly-vue/color';

console.log(generate('#FF0000',{ index: 1}));

console.log(presetColor);
// {
//   red: {...},
//   orangered: {...},
//   orange: {...},
//   gold: {...},
//   yellow: {...},
//   lime: {...},
//   green: {...},
//   cyan: {...},
//   blue: {...},
//   arcoblue: {...},
//   purple: {...},
//   pinkpurple: {...},
//   magenta: {...},
//   gray: {...}
// }
```

## API

### generate(color: string, options: Object);

#### options.index {number | 1-10}

生成 10 个梯度色中的第几个颜色。

#### options.list {boolean}

生成包含十个颜色的梯度颜色数组。

#### options.dark

生成暗色色板的颜色。

#### options.format {'hex' | 'rgb' | 'hsl'}

生成颜色的格式。

### getPresetColors {Function}

包含了预设的 14 组颜色，包括一组中性灰。

* `red`
* `orangered`
* `orange`
* `gold`
* `yellow`
* `lime`
* `green`
* `cyan`
* `blue`
* `arcoblue`
* `purple`
* `pinkpurple`
* `magenta`
* `gray`

```js
const { red } = getPresetColors();

console.log(red.light);
console.log(red.dark);
console.log(red.primary);
```

### getRgbStr(color: string)

获得指定颜色的三通道 r, g, b 字符串。

```js
getRgbStr('#F53F3F') // 245,63,63
```
npm package: @fly-vue/vuepress-theme-fly
Description: 文档主题
Author: Ocean Mo
Latest version: 1.0.12
Deprecated: false

# 文档主题 fed-vue-docs-theme

## 安装
``` bash
npm i @fly-vue/vuepress-theme-fly -D
```

## 使用
``` js
// .vuepress/config.js
module.exports = {
  theme: '@fly-vue/vuepress-theme-fly',
  themeConfig: {
    // Please head documentation to see the available options.
  }
}
```
npm package: @fly/friendly-words
Description: The Glitch word list, packaged into an NPM module for easy use.
Author: Glitch
Latest version: 1.1.6

Friendly Words
=================

This package returns the curated lists of Glitch words, as used in project names and elsewhere.

Usage
---

```
const friendlyWords = require('friendly-words');

friendlyWords.predicates;
> ["warp","windy","paper","shrouded","iridescent","sage",...

friendlyWords.objects;
> ["millennium","report","guardian","match","wallaby","turnip",...

friendlyWords.teams;
> ["troupe","group","posse","coven","team","alliance",...

friendlyWords.collections;
> ["album","assortment","bricolage","collection","compilation","melange",...
```


The Words
---------

The words are pulled from curated files. We want the words and their pairings to be friendly, positive, inspiring, whimsical, memorable, etc.  They should also be words that most people can easily remember and spell.

All of the words and their generated pairings should be safe for children of all cultures. This means that we permit absolutely no word pairings that invoke to hate speech, hostility, derogatory terms, etc. 

Despite our best efforts, it's easy for a pair of benign words to be combined into something inappropriate. Whenever we notice a generated pair that is problematic, we'll remove at least one of the words from that pair so that it won't reoccur. We'll err on the side of trusting reports and removing potentially inappropriate words rather than defending the appropriate uses of a word.

When adding words to the list, an abundance of common sense is required. If the word can be used as a slang term for an ethnicity or nationality, there's probably a context where it'll pair up with a verb or adjective that can make it feel unwelcome... so be mindful and avoid those.

The Word Files
--------------

Our word lists are highly-opinionated lists of *predicates* and *direct objects*.  This structure allows us to put together word pairs that are more likely to make grammatical sense, and therefore tend to be easier to say, type, and remember.

`words/objects.txt`

> The direct object receives the action of the sentence. The direct object is usually a noun or pronoun.

`words/predicates.txt`

> The predicate expresses action or being within the sentence. The simple predicate contains the verb and can also contain modifying words, phrases, or clauses.

`words/teams.txt`

> This is a list of synonyms for "team".  They're a special subset of objects.

`words/collections.txt`

> This is a list of synonyms for "collection".

For our purposes, the predicates are mostly verbs and adjectives.

It's OK for a word to be duplicated between the objects and predicates lists so long as that word is valid in both contexts,  e.g. "buffalo-buffalo" or "lavender-lavender".

Within a given file, the words should be alphabetized, distinct, and contain only lower-case alphabetic ASCII characters.  These constraints are checked at build time.

Made by [Glitch](https://glitch.com/)
-------------------

\ ゜o゜)ノ