open-index/open-npm huggingface dataset:
npm package: @pnlpal/js-pkce
Description: A package that makes using the OAuth2 PKCE flow easier
Author: Bryan Pedroza
Latest version: 1.1.1

# js-pkce
A package that makes using the OAuth2 PKCE flow easier

## Installation
`npm i js-pkce`

## Create a new instance
Create a new instance of js-pkce with all of the details needed.

```javascript
import PKCE from 'js-pkce';
const pkce = new PKCE({
  client_id: 'myclientid',
  redirect_uri: 'http://localhost:8080/auth',
  authorization_endpoint: 'https://authserver.com/oauth/authorize',
  token_endpoint: 'https://authserver.com/oauth/token',
  requested_scopes: '*',
});
```

## Start the authorization process
Typically you just need to go to the authorization url to start the process.
This example is something that might work in a SPA.

```javascript
window.location.replace(pkce.authorizeUrl());
```

You may add additional query parameters to the authorize url by using an optional second parameter:

```javascript
const additionalParams = {test_param: 'testing'};
window.location.replace(pkce.authorizeUrl(additionalParams));
```

## Trade the code for a token
After logging in with the authorization server, you will be redirected to the value in
the `redirect_uri` parameter you set when creating the instance.
Again, this is an example that might work for a SPA.

When you get back here, you need to exchange the code for a token.

```javascript
const url = window.location.href;
pkce.exchangeForAccessToken(url).then((resp) => {
  const token = resp.access_token;
  // Do stuff with the access token.
});
```

As with the authorizeUrl method, an optional second parameter may be passed to
the `exchangeForAccessToken` method to send additional parameters to the request:

```javascript
const url = window.location.href;
const additionalParams = {test_param: 'testing'};

pkce.exchangeForAccessToken(url, additionalParams).then((resp) => {
  const token = resp.access_token;
  // Do stuff with the access token.
});
```
npm package: @pnlpal/nodebb-plugin-ns-embed
Description: Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.
Author: Nicolas Siver
Latest version: 4.0.2

# NodeBB Embed

Embed media and rich content in posts: youtube, vimeo, twitch etc. All embeds are based on the rules. You are encouraged to build your own rules to embed everything what is embeddable.

![Version](https://img.shields.io/npm/v/nodebb-plugin-ns-embed.svg)
![Dependencies](https://david-dm.org/NicolasSiver/nodebb-plugin-ns-embed.svg)
![Travis](https://travis-ci.org/NicolasSiver/nodebb-plugin-ns-embed.svg?branch=master)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
 

- [Embeds Supported by Default](#embeds-supported-by-default)
- [Screenshots](#screenshots)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

The plugin works well with default `Markdown` plugin or without it, i.e. there is no alteration of links in user's posts.

## Embeds Supported by Default

Most embeds are responsive with a limited width to `640px`

- Coub
- Twitch (video and channel)
- Vimeo
- Vine
- Youtube (short and normal URL)

If you would like to have more embeddable services, please refer to the [Community Embed Rules](docs/community-rules.md).

## Screenshots

![Admin Panel View](screenshot.png)
npm package: @pnocera/cproxy
Description: A simple proxy server with TypeScript support, optimized for bun.
Author: pnocera
Latest version: 1.3.6

# CProxy

A TypeScript proxy server that converts Anthropic Claude API requests to OpenAI-compatible format.

## Installation

```bash
npm install -g @pnocera/cproxy
```

## Usage

```bash
# Start HTTP proxy server
cproxy --port 3000

# Start MCP server
cproxy --mcp
```

## Configuration

Set environment variables:

```bash
OPENROUTER_API_KEY=your_key_here
ANTHROPIC_PROXY_BASE_URL=https://openrouter.ai/api
```

## API

Send Anthropic-format requests to `http://localhost:3000/v1/messages`

Example:
```json
{
  "model": "claude-3-sonnet-20240229",
  "max_tokens": 1000,
  "messages": [
    {"role": "user", "content": "Hello"}
  ]
}
```

## MCP Mode

For Claude Code integration:

```bash
# Start MCP server
cproxy --mcp
```

The MCP server uses the same configuration as the HTTP proxy.

## License

MIT
npm package: @pnodev/sync-cli
Description: A new CLI generated with oclif
Author: Pno
Latest version: 0.3.0

# sync-cli

The `sync-cli` is the official command-line interface for **Sync**

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)

<!-- toc -->
* [sync-cli](#sync-cli)
* [Usage](#usage)
* [Commands](#commands)
* [Configuration](#configuration)
<!-- tocstop -->

# Usage

<!-- usage -->
```sh-session
$ npm install -g @pnodev/sync-cli
$ sync-cli COMMAND
running command...
$ sync-cli (--version)
@pnodev/sync-cli/0.3.0 linux-x64 node-v20.5.1
$ sync-cli --help [COMMAND]
USAGE
  $ sync-cli COMMAND
...
```
<!-- usagestop -->

# Commands

<!-- commands -->
* [`sync-cli generate-types`](#sync-cli-generate-types)
* [`sync-cli help [COMMAND]`](#sync-cli-help-command)
* [`sync-cli send`](#sync-cli-send)

## `sync-cli generate-types`

Send a payload to a topic channel

```
USAGE
  $ sync-cli generate-types --appId <value> --key <value> [--exportName <value>] [--output <value>]

FLAGS
  --appId=<value>       (required) App ID
  --exportName=<value>  [default: payload] Name of the generated type
  --key=<value>         (required) Public Key
  --output=<value>      [default: stdout] Output target: "stdout" (default) or filename (e.g. types.ts)

DESCRIPTION
  Send a payload to a topic channel
```

_See code: [src/commands/generate-types.ts](https://github.com/pnodev/pno-sync-cli/blob/v0.3.0/src/commands/generate-types.ts)_

## `sync-cli help [COMMAND]`

Display help for sync-cli.

```
USAGE
  $ sync-cli help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for sync-cli.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.28/src/commands/help.ts)_

## `sync-cli send`

Send a payload to a topic channel

```
USAGE
  $ sync-cli send --appId <value> --key <value> --topic <value> [--payload <value>]

FLAGS
  --appId=<value>    (required) App ID
  --key=<value>      (required) Public Key
  --payload=<value>  JSON payload to send
  --topic=<value>    (required) Topic-Name

DESCRIPTION
  Send a payload to a topic channel
```

_See code: [src/commands/send.ts](https://github.com/pnodev/pno-sync-cli/blob/v0.3.0/src/commands/send.ts)_
<!-- commandsstop -->

# Configuration

The behavior of sync-cli can be customized using environment variables. These can be defined in a local `.env` file.

## Overriding the default Sync engine URL

To use a custom Sync Engine URL, create a `.env` file in your project root and add the following line:

```
SYNC_ENGINE_URL=https://your-sync-engine-url.example.com
```