open-index/open-npm huggingface dataset:
npm package: @peterbedorjr/playwright-aws-lambda
Description: Support for running Microsoft's Playwrite on AWS Lambda and Google Cloud functions
Author: Austin Kelleher, a@alk.im
Latest version: 0.10.0

# playwright-aws-lambda

![CI](https://github.com/JupiterOne/playwright-aws-lambda/workflows/CI/badge.svg)
[![NPM](https://img.shields.io/npm/v/playwright-aws-lambda)](https://www.npmjs.com/package/playwright-aws-lambda)

Support for Playwright running on AWS Lambda and Google Cloud Functions.

**NOTE**: Currently only Chromium is supported.

## Install

```shell
npm install playwright-core playwright-aws-lambda --save
```

## Usage

This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and `nodejs18.x` AWS Lambda runtimes
out of the box.

```javascript
const playwright = require('playwright-aws-lambda');

exports.handler = async (event, context) => {
  let browser = null;

  try {
    browser = await playwright.launchChromium();
    const context = await browser.newContext();

    const page = await context.newPage();
    await page.goto(event.url || 'https://example.com');

    console.log('Page title: ', await page.title());
  } catch (error) {
    throw error;
  } finally {
    if (browser) {
      await browser.close();
    }
  }
};
```

## API

| Method / Property | Returns                                  | Description                           |
| ----------------- | ---------------------------------------- | ------------------------------------- |
| `launchChromium`  | `{!Promise<playwright.ChromiumBrowser>}` | Launches the Chromium browser.        |
| `loadFont(url)`   | `{Promise<void>}`                        | Downloads and activates a custom font |

### Loading additional fonts

If you need custom font support by e.g. emojicons in your browser, you have to
load it by using the `loadFont(url: string)` function before you launch the
browser.

```js
await loadFont(
  'https://raw.githack.com/googlei18n/noto-emoji/master/fonts/NotoColorEmoji.ttf'
);
```

## Thanks / Credits

This project is based on the work of
[chrome-aws-lambda](https://github.com/alixaxel/chrome-aws-lambda).
npm package: @petercatai/assistant
Description: PeterCat Assistant Application
Latest version: 2.1.0

# @petercat/chat-app

  [![npm](https://img.shields.io/npm/dm/petercatai/chat-sdk.svg)](https://www.npmjs.com/package/petercatai/chat-sdk)
  [![Version](https://img.shields.io/npm/v/petercatai/chat-sdk/latest.svg)](https://www.npmjs.com/package/petercatai/chat-sdk)

chat-app is a UI component library based on dumi, designed for building [PeterCat](https://petercat.ai) conversation interfaces.


## Development

```bash
# install dependencies
$ yarn install

# develop library by docs demo
$ yarn start

# build library source code
$ yarn run build

# build library source code in watch mode
$ yarn run build:watch

# build docs
$ yarn run docs:build

# check your project for potential problems
$ yarn run doctor
```


## How to integrate Perter Cat Assistant by UMD way?

Step 1, externalize the following dependencies for your project **if you already used them in your project**:

```ts
// example for umi project
// .umirc.ts
export default {
  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
    antd: 'antd',
    dayjs: 'dayjs',
    'lottie-web': 'lottie',
  },
};
```

Step 2, add the following script tag to your entry HTML file:

```diff
...
<head>
+ <script src="https://example.cdn.com/react/umd/react.development.js"></script>
+ <script src="https://example.cdn.com/react-dom/umd/react-dom.development.js"></script>
+ <script src="https://example.cdn.com/dayjs/dayjs.min.js"></script>
+ <script src="https://example.cdn.com/antd/dist/antd.js"></script>
+ <script src="https://example.cdn.com/lottie-web/build/player/lottie.js"></script>
+ <script src="https://example.cdn.com/petercat-lui/dist/umd/petercat-lui.min.js"></script>
+ <link rel="stylesheet" href="https://example.cdn.com/petercat-lui/dist/umd/petercat-lui.min.css">
</head>
...
```

Step 3, render Assistant component in your project:

```diff
<body>
  ...
+  <script>
+    PetercatLUI.initAssistant({
+      apiDomain: 'https://api.petercat.ai',
+      token: 'your-token'
+    });
+ </script>
</body>
```

That's it! Now you can enjoy the Assistant component in your project.


## LICENSE

MIT
npm package: @peterclawbot/multi-launch
Description: CLI + SDK for the Multi token launchpad — launch tokens across multiple chains
Author: Multi
Latest version: 1.0.0

# multi-launch

CLI + SDK for the **Multi** token launchpad — launch tokens across multiple chains from your terminal or Node.js app.

## Install

```bash
npm install -g multi-launch
```

## CLI Usage

### Launch a token

Interactive mode:
```bash
multi launch
```

Non-interactive:
```bash
multi launch --name "My Token" --symbol "MTK" --chain base --wallet 0xYourAddress --description "A cool token" --supply 1000000000
```

### Explore recent launches

```bash
multi explore
multi explore --limit 5 --chain base
```

### Platform stats

```bash
multi stats
```

### Token info by address

```bash
multi info 0x3bd95eaba108d4abef3ba0b349365538c60fda0f
```

### Search tokens

```bash
multi search "Robo"
multi search SWARM --chain base
```

### JSON output

Add `--json` to any command for machine-readable output:

```bash
multi stats --json
multi explore --json --limit 5
```

### Help

```bash
multi --help
multi launch --help
```

## SDK Usage

```js
const { MultiClient } = require('multi-launch');

const client = new MultiClient({
  apiUrl: 'https://web-production-17ba3.up.railway.app' // default
});

// Launch a token
const token = await client.launch({
  name: 'My Token',
  symbol: 'MTK',
  description: 'A test token',
  chain: 'base',
  wallet: '0xYourAddress'
});

// List launches
const { launches, total } = await client.getLaunches({
  limit: 10,
  chain: 'base'
});

// Get stats
const stats = await client.getStats();
// => { totalLaunches, totalChains, uniqueDeployers, launchesToday }

// Search tokens
const results = await client.search('MTK');

// Get token by contract address
const info = await client.getToken('0x...');
```

## Configuration

| Option | Default | Description |
|--------|---------|-------------|
| `apiUrl` | `https://web-production-17ba3.up.railway.app` | API base URL |
| `MULTI_API_URL` env var | — | Overrides default API URL |

## Requirements

- Node.js ≥ 18 (uses native `fetch`)
- Zero dependencies

## License

MIT
npm package: @petercr/the-streaks
Description: A streak counter for the browser inspired by Doulingo's style
Author: Peter Cruckshank
Latest version: 0.2.1

# Welcome to The Streaks 🎉

![Streaks-GitHub-Hero](https://user-images.githubusercontent.com/26460352/162288480-e299e5ec-40e8-45fc-8ede-141e89217c82.png)


This is a basic streak counter - inspired by Duolingo's style - written in TypeScript and meant for the browser (uses `localStorage`).

Here is a React App that utilizes the package in order to count your streak.

[![Edit vigilant-wing-3x5ir7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vigilant-wing-3x5ir7?fontsize=14&hidenavigation=1&theme=dark)

## Install

```shell
yarn add @petercr/streak-counter-ts
```

```shell
npm install @petercr/streak-counter-ts
```

### Usage

```typescript
import { streakCounter } from "@petercr/streak-counter-ts";

const today = new Date();

const streak = streakCounter(localStorage, today);

// streak returns an object:
// {
//    currentCount: 1,
//    lastLoginDate: "11/11/2021",
//    startDate: "11/11/2021",
// }
```
npm package: @peterdekok/color-compare
Description: Compare colors to one another. Especially useful for validating color input fields.
Author: Peter de Kok
Latest version: 1.0.2

# Color compare

Compare colors to one another. Especially useful for validating color input fields.

The goal of this package is to allow colors to be dynamically evaluated.

This uses implementations compliant with the CSS3 composition and (normal) blending specification. 
As well as the WCAG2.1 conformation of determining color contrast.