open-index/open-npm huggingface dataset:
npm package: @leadlify/sdk
Description: Leadlify SDK
Author: leadlify
Latest version: 1.0.3

# @leadlify/sdk

The `@leadlify/sdk` is a JavaScript library that serves as the SDK for interacting with the Leadlify API. This library provides a convenient interface for creating leads by making requests to the Leadlify API.

## Installation

To use the Leadlify SDK in your project, you can install it via npm or yarn.

```bash
npm install @leadlify/sdk
```

or

```bash
yarn add @leadlify/sdk
```

## Usage

### Initialization

To use the Leadlify SDK, you need to initialize it with your API key.

```javascript
import { LeadlifySDK } from '@leadlify/sdk';

const apiKey = 'your_api_key';
const leadlify = LeadlifySDK(apiKey);
const leads = leadlify().Leads;
```

### Creating a Lead

To create a lead, you can call the `create` method provided by the `Leads` module.

```javascript
const createLeadParams = {
  email: 'example@example.com',
  name: 'John Doe',
  metadata: { age: 25, occupation: 'Developer' },
  sessionId: '123456789',
};

try {
  const response = await leads.create(createLeadParams);
  console.log('Lead created successfully:', response);
} catch (error) {
  console.error('Error creating lead:', error);
}
```

## API Reference

### `LeadlifySDK(apiKey: string)`

Initialize the Leadlify SDK with your API key.

- **Parameters:**
  - `apiKey` (string): Your Leadlify API key.

- **Returns:**
  A function with modules, such as `Leads`, for interacting with the Leadlify API.

### `Leads`

Module for managing leads.

#### `create(params: CreateLeadParams): Promise<Response>`

Create a lead with the specified parameters.

- **Parameters:**
  - `params` (CreateLeadParams): An object containing lead creation parameters (email, name, metadata, sessionId).

- **Returns:**
  A Promise that resolves with the API response.

## Contributing

If you would like to contribute to the Leadlify SDK, please follow the guidelines in the [CONTRIBUTING.md](CONTRIBUTING.md) file.

## License

This project is licensed under the [MIT License](LICENSE).
npm package: @leadnfe/rest-client
Description: LeadNFe REST Client
Author: leadnfe
Latest version: 1.1.6

# @leadnfe/rest-client

> LeadNFe REST API Client

## Instalação

```
npm install @leadnfe/rest-client --save
```

## Exemplo

```js
const rest = require('@leadnfe/rest-client');
const restClient = rest('https://api.leadnfe.com/')
app.configure(restClient.fetch(window.fetch));
const nfes = app.service('nfes');
```

## Documentação

Por favor utilize a documentação oficial [@leadnfe/rest-client documentation](https://api.leadnfe.com/docs/#rest-api-client) para mais detalhes.

## License

Copyright (c) 2018

Licensed under the [MIT license](LICENSE).
npm package: @leadpipe/client
Description: Official TypeScript client for Leadpipe intent APIs: public topic discovery plus authenticated audience workflows.
Latest version: 0.1.1

# @leadpipe/client

Official TypeScript client for Leadpipe intent APIs.

Use `@leadpipe/client` for:
- topic discovery
- audience preview
- saved audience CRUD
- polling materialization status
- fetching paginated results
- runs, stats, and exports

## Install

```bash
npm install @leadpipe/client
```

Most real integrations should set `LEADPIPE_API_KEY`. Only topic discovery and site analysis routes can be used anonymously.

## Quickstart

```ts
import { Leadpipe } from "@leadpipe/client";

const client = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });

const topics = await client.intent.topics.search({ q: "crm", limit: 2 });
const topicIds = topics.data.slice(0, 2).map((topic) => topic.topicId);

const preview = await client.intent.audiences.preview({
  topicIds,
  filters: {
    companyIndustry: ["software development"],
    hasBusinessEmail: true,
  },
});

console.log(preview.data.totalCount);
```

## Auth

Use an authenticated client for audience methods:

```ts
import { Leadpipe } from "@leadpipe/client";

const client = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });
```

Anonymous clients are only for public discovery methods:

```ts
const publicClient = new Leadpipe();
const apiKeyClient = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });
const bearerClient = new Leadpipe({ bearerToken: process.env.LEADPIPE_BEARER_TOKEN });
```

Requires auth:
- `intent.audiences.preview`
- `intent.audiences.query`
- `intent.audiences.create`
- `intent.audiences.update`
- `intent.audiences.status`
- `intent.audiences.results`
- `intent.audiences.runs`
- `intent.audiences.stats`
- `intent.audiences.export`
- `intent.audiences.waitUntilReady`

## Docs

- API docs: `https://api.aws53.cloud/docs/intent-api`
- OpenAPI: `https://api.aws53.cloud/openapi-intent.json`

This package currently covers Leadpipe intent APIs only. Identification / resolution modules are not included yet.

The SDK tracks the live public API behavior. If the checked-in OpenAPI snapshot lags behind runtime for a response shape, the SDK types follow the live API until the snapshot is refreshed.
npm package: @leadrobot/prosemirror-schema
Description: Schema setup for using prosemirror in Leadrobot. Based on 👉 https://github.com/ProseMirror/prosemirror-example-setup/
Author: leadrobot
Latest version: 1.0.25

# woot-prosemirror-schema

Schema setup for using prosemirror in leadrobot. Based on 👉 https://github.com/ProseMirror/prosemirror-example-setup/
npm package: @leadrobot/utils
Description: Leadrobot utils
Latest version: 0.0.44

### Leadrobot-utils

Common utils for Leadrobot.

![](https://img.shields.io/npm/v/@Leadrobot/utils?style=flat)
![](https://img.shields.io/npm/dt/@Leadrobot/utils.svg)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
![](https://img.shields.io/npm/l/@Leadrobot/utils)

### Installation

Install the package

```sh
yarn add @Leadrobot/utils
```

### Docs

See [utils.Leadrobot.com](https://utils.Leadrobot.com) for more details, API, and other docs.

## Feedback & Contributing

Feel free to send us feedback on [Twitter](https://twitter.com/Leadrobotapp) or [file an issue](https://github.com/Leadrobot/utils/issues).

If there's anything you'd like to chat about, please feel free to join our [Discord](https://discord.gg/cJXdrwS) chat!

_Leadrobot_ &copy; 2017-2021, Leadrobot Inc - Released under the MIT License.
npm package: @leadsimple/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 3.4.4-rc.1

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
npm package: @leadsimple/slate-react
Description: A set of React components for building completely customizable rich-text editors.
Latest version: 0.22.8-patch.1

This package contains the React-specific logic for Slate. It's separated further into a series of directories:

* [**Components**](./src/components) — containing the React components for rendering Slate editors.
* [**Constants**](./src/constants) — containing a few private constants modules.
* [**Plugins**](./src/plugins) — containing the React-specific plugins for Slate editors.
* [**Utils**](./src/utils) — containing a few private convenience modules.

Feel free to poke around in each of them to learn more!
npm package: @leadtributor/n8n-nodes-leadtributor
Description: n8n community node for leadtributor.cloud integration
Author: leadtributor GmbH
Latest version: 0.1.2

# n8n-nodes-leadtributor

This is an n8n community node for integrating with the [leadtributor.cloud](https://leadtributor.cloud) platform.

[leadtributor.cloud](https://leadtributor.cloud) is a B2B software solution for lead distribution and forecasting management.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

---

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

```
n8n-nodes-leadtributor
```

## Credentials

To use this node, you need a **leadtributor API Key**:

1. Log in to your [leadtributor.cloud](https://leadtributor.cloud) account.
2. Navigate to your account settings and generate an API Key.
3. In n8n, add new credentials of type **leadtributor API**.
4. Enter your API Key and (optionally) the base URL.

| Field    | Description                                       | Default                              |
|----------|---------------------------------------------------|--------------------------------------|
| API Key  | Your leadtributor API Key                         | –                                    |
| Base URL | Base URL of the leadtributor API                  | `https://api.leadtributor.cloud`     |

## Operations

> **Note:** This is an initial scaffold. Resources and operations are placeholders and will be
> replaced with actual leadtributor API endpoints.
> See [https://developer.leadtributor.cloud](https://developer.leadtributor.cloud) for the API reference.

### Example Resource *(placeholder)*

| Operation | Description                  |
|-----------|------------------------------|
| Create    | Create a new record          |
| Delete    | Delete a record by ID        |
| Get       | Retrieve a single record     |
| Get Many  | Retrieve multiple records    |
| Update    | Update an existing record    |

## Development

```bash
# Install dependencies
npm install

# Build
npm run build

# Build in watch mode
npm run dev

# Lint
npm run lint

# Format
npm run format
```

To test locally, copy (or symlink) the `dist/` folder into your n8n custom extensions directory and start n8n:

```bash
export N8N_CUSTOM_EXTENSIONS="/path/to/n8n-nodes-leadtributor"
n8n start
```

## Resources

- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
- [leadtributor.cloud](https://leadtributor.cloud)
- [leadtributor API documentation](https://developer.leadtributor.cloud)

## License

[MIT](LICENSE)
npm package: @leadxhub/sdk
Description: Leadxhub SDK
Author: leadxhub
Latest version: 1.0.3

# @leadxhub/sdk

The `@leadxhub/sdk` is a JavaScript library that serves as the SDK for interacting with the Leadxhub API. This library provides a convenient interface for creating leads by making requests to the Leadxhub API.

## Installation

To use the Leadxhub SDK in your project, you can install it via npm or yarn.

```bash
npm install @leadxhub/sdk
```

or

```bash
yarn add @leadxhub/sdk
```

## Usage

### Initialization

To use the Leadxhub SDK, you need to initialize it with your API key.

```javascript
import { LeadxhubSDK } from '@leadxhub/sdk';

const apiKey = 'your_api_key';
const leadxhub = LeadxhubSDK(apiKey);
const leads = leadxhub().Leads;
```

### Creating a Lead

To create a lead, you can call the `create` method provided by the `Leads` module.

```javascript
const createLeadParams = {
  email: 'example@example.com',
  name: 'John Doe',
  metadata: { age: 25, occupation: 'Developer' },
  sessionId: '123456789',
};

try {
  const response = await leads.create(createLeadParams);
  console.log('Lead created successfully:', response);
} catch (error) {
  console.error('Error creating lead:', error);
}
```

## API Reference

### `LeadxhubSDK(apiKey: string)`

Initialize the Leadxhub SDK with your API key.

- **Parameters:**
  - `apiKey` (string): Your Leadxhub API key.

- **Returns:**
  A function with modules, such as `Leads`, for interacting with the Leadxhub API.

### `Leads`

Module for managing leads.

#### `create(params: CreateLeadParams): Promise<Response>`

Create a lead with the specified parameters.

- **Parameters:**
  - `params` (CreateLeadParams): An object containing lead creation parameters (email, name, metadata, sessionId).

- **Returns:**
  A Promise that resolves with the API response.

## Contributing

If you would like to contribute to the Leadxhub SDK, please follow the guidelines in the [CONTRIBUTING.md](CONTRIBUTING.md) file.

## License

This project is licensed under the [MIT License](LICENSE).
npm package: @leaf-web/core
Description: Reasonable web components framework.
Author: Sam Zhang
Latest version: 0.2.15

# @leaf-web/core

**This document may be outdated. See [GitHub](https://github.com/samzhangjy/leafjs) for the latest README.**

![total downloads](https://badgen.net/npm/dt/@leaf-web/core)
![minzipped size](https://badgen.net/bundlephobia/minzip/@leaf-web/core)
![latest version](https://badgen.net/npm/v/@leaf-web/core)
![GitHub stars](https://badgen.net/github/stars/samzhangjy/leafjs)
![license](https://badgen.net/github/license/samzhangjy/leafjs)

A lightweight, fast web-components based frontend framework for the future.

## Introduction

Leafjs is a lightweight frontend framework built using web components and browser ES Modules.

Using web components allows you to create components natively - supported by most modern browsers. Unlike React and Vue, Leafjs's component system is totally built on top of the web component system.

And just like React, Leafjs implements a simple reactivity system that allows two-way binding, just like most frameworks do.

## Getting started

Use `create-leafjs-app` to get started:

```bash
$ npx create-leafjs-app my-app
$ # or
$ yarn create leafjs-app my-app
```

Then `cd` into your project directory and run `npm run dev` to start a development server.

## Documentation

Please refer to <https://leafjs.samzhangjy.com/>.

## Licensing

Leafjs is licensed under the MIT License. See `LICENSE` for details.
npm package: @leaf-x/ali-cloud-gateway
Description: Ali cloud gateway.
Author: sound shell
Latest version: 2.1.10

# Gateway

Ali cloud gateway.

## Installation

> npm install @leaf-x/ali-cloud-gateway --save

## Parameters

| Name      |  Default Value | Description                               |
| :-------- | -------------: | :---------------------------------------- |
| appKey    | Required field | Gateway authorization application key.    |
| appSecret | Required field | Gateway authorization application secret. |
| stage     |        RELEASE | Gateway runtime environment.              |
| timeout   |           3000 | Set the global request timeout.           |
| headers   |                | Set the global request headers.           |

## Use

```typescript
import {gateway} from '@leaf-x/ali-cloud-gateway';

const {request,socket} = gateway({
  appKey: '2135455621223',
  appSecret: 'MjEzNTQ1NTYyMTIyMw==',
  stage: "RELEASE,
});

// Request
await request('https://www.leaf-x.app/').then(result=> console.info(result));

// Socket
socket.connect();

socket.on('OPEN', (success: string) => {
// do something
});

socket.on('CLOSE', (success: string) => {
// do something
});

socket.on('MESSAGE', (message: string) => {
 // do something
});

socket.on('ERROR', (error: Record<string, unknown>) => {
// do something
});

socket.on('SIGN_UP', (success: string) => {
// do something
});

socket.on('SIGN_OUT', (success: string) => {
// do something
});

socket.on('HEARTBEAT', (success: string) => {
// do something
});

SOCKET.on('RECONNECT', (success: string) => {
// do something
});

SOCKET.on('SEND', (data: Record<string, unknown>) => {
// do something
});

socket.send("https://www.leaf-x.app/");

socket.close();
```

## React Native

> npm install @leaf-x/ali-cloud-gateway --save
> npm install react-native-url-polyfill --save

```typescript
import 'react-native-url-polyfill/auto';
```

### [react-native-crypto](https://github.com/tradle/react-native-crypto)

> npm install --save react-native-crypto

#### install peer deps

> npm install --save react-native-randombytes
> react-native link react-native-randombytes # on RN >= 0.60, instead do: cd iOS && pod install

#### install latest rn-nodeify

> npm install --save-dev rn-nodeify

#### install node core shims and recursively hack package.json files

#### in ./node_modules to add/update the "browser"/"react-native" field with relevant mappings

> ./node_modules/.bin/rn-nodeify --hack --install

#### rn-nodeify will create a shim.js in the project root directory

```typescript
// index.ios.js or index.android.js
// make sure you use `import` and not require!
import './shim.js';
import crypto from 'crypto';
// ...the rest of your code
```
npm package: @leaf-x/ali-cloud-serverless
Description: Ali cloud serverless.
Author: sound shell
Latest version: 2.10.4

# Ali Cloud Serverless

Ali cloud serverless access.

## Installation

> npm install @leaf-x/ali-cloud-serverless --save

## Parameters

| Name            | Type    | Default Value | Description                                                                                                                  |
| :-------------- | :------ | :------------ | :--------------------------------------------------------------------------------------------------------------------------- |
| accountId       | String  | Required      | Ali cloud account id.                                                                                                        |
| accessId        | String  | Required      | Ali cloud access id.                                                                                                         |
| accessSecretKey | String  | Required      | Ali cloud access key.                                                                                                        |
| region          | String  | Required      | Serverless region,for example: cn-chengdu.                                                                                   |
| timeout         | Number  | 30000         | Request timeout time in milliseconds.                                                                                        |
| qualifier       | String  | LATEST        | Serverless version alias.                                                                                                    |
| internal        | Boolean | true          | Whether to use intranet requests.                                                                                            |
| secure          | Boolean | false         | Whether to enable request protection, <br>if enabled https requests will be used, otherwise http requests will be used.</br> |
| version         | String  | 2016-08-15    | Serverless api version.                                                                                                      |

## Use

```typescript
import serverless from '@leaf-x/ali-cloud-serverless';

const {invoke, warmUp} = serverless({
  accountId: '89785723912113',
  accessId: 'ODk3ODU3MjM5MTIxMTM=',
  accessSecretKey: 'MTU4MzczNDMyNzMzMg==',
  region: 'cn-chengdu',
});

const invokeResult = invoke({
  serviceName: 'snowflake',
  functionName: 'IndexSnowflake',
  event: {
    type: 'GATEWAY',
    data: {
      queryParameters: {
        name: 'snowflake',
      },
    },
  },
}).then(result => console.info(result));

const warmUpResult = warmUp('snowflake', [
  {type: 'GATEWAY', functionName: 'snowflake'},
]).then(result => console.info(result));
```
npm package: @leaf-x/fetch
Description: Provide some utility wrappers for fetch.
Author: sound shell
Latest version: 2.10.1

# Fetch

Provide some utility wrappers for fetch.

## Installation

> npm install @leaf-x/fetch --save

## Use

```typescript
import fetch from '@leaf-x/fetch';

await fetch('https://www.leaf-x.com').then(result => {
  console.info(result);
});
```
npm package: @leaf-x/id
Description: Leaf-x project distributed id generation.
Author: sound shell
Latest version: 0.2.1

# Snowflake

Twitter snowflake algorithm, using TypeScript implementation.

## Installation

> npm install @leaf-x/snowflake --save

## Parameters

| Name         | Type   | Default Value | Description      |
| :----------- | :----- | :------------ | :--------------- |
| dataCenterId | Number | 0             | Data center id.  |
| workerId    | Number | 0             | Work machine id. |
| twEpoch      | Number | Required      | Start timestamp. |

## Usage

```typescript
import * as snowflake from '@leaf-x/snowflake'

const generateId = snowflake({
  dataCenterId: 0,
  workerId: 0,
  twEpoch: 1583734327332
})

const id = generateId()

console.info(id)
```
npm package: @leaf-x/snowflake
Description: Twitter snowflake algorithm, TypeScript implementation.
Author: sound shell
Latest version: 2.1.3

# Snowflake

Twitter snowflake algorithm, TypeScript implementation.

## Installation

> npm install @leaf-x/snowflake --save

## Params

| Name          | Type   | Default Value | Description                                        |
| :------------ | :----- | :------------ | :------------------------------------------------- |
| dataCenterId  | Number | 0             | Data center ID, value range 0-31.                  |
| workMachineId | Number | 0             | Work machine ID, value range 0-31.                 |
| twEpoch       | Number | Required      | Timestamp of the start of the snowflake algorithm. |

## Use

```typescript
import snowflake from '@leaf-x/snowflake';

const newId = snowflake({
  dataCenterId: 0,
  workMachineId: 0,
  twEpoch: 1583734327332,
});

const id = newId();

console.info(id);
```
npm package: @leaf-x/we-chat-pay
Description: WeChat payment V3.0.0 API.
Author: sound shell
Latest version: 1.3.3

# WeChatPay

WeChat pay V3 API.

## Installation

> npm install @leaf-x/we-chat-pay --save

## Parameters

| Name                  | Type   | Default Value                 | Description                       |
| :-------------------- | :----- | :---------------------------- | :-------------------------------- |
| appId                 | String |                               | WeChat app ID.                    |
| publicAppId           | String |                               | WeChat public ID.                 |
| merchantId            | String | Required                      | Merchant ID.                      |
| merchantKey           | String | Required                      | Merchant key.                     |
| schema                | string | WECHATPAY2-SHA256-RSA2048     | Encryption algorithm mode.        |
| privateKey            | String | Required                      | Private key.                      |
| publicCertificatePath | String |                               | Public key certificate path.      |
| publicCertificateDir  | String |                               | Public key certificate directory. |
| serialNo              | String | Required                      | Certificate number.               |
| url                   | String | https://api.mch.weixin.qq.com | Api url address.                  |
| timeout               | Number | 3000                          | Timeout time, in milliseconds.    |

## Use

```typescript
import {weChat} from '@leaf-x/we-chat-pay';

const pay = weChat({
  appId: 'wx3fb4x113xx8i',
  merchantId: '2362183',
  merchantKey: '123db752cf2c6955122d26d5',
  serialNo: '6D22333S311033394317A3332C444F31112371F',
  privateKey: fs.readFileSync(
    path.join(__dirname, '../public/certificate/private_key.pem'),
    'ascii'
  ),
  publicCertificateDir: path.join(__dirname, '../public/certificate/we_chat'),
});

const result = await pay.getAppPay({
  description: 'test',
  outTradeNo: '2133455555111233567',
  timeExpire: new Date(),
  notifyUrl: 'https://dev.api.leaf-x.com/v3/notifies',
  amount: {total: 1, currency: 'CNY'},
  sceneInfo: {payerClientIp: '127.0.0.0'},
});

console.info(result);
```
npm package: @leafac/caddy
Description: Install Caddy easily into any Node.js project
Author: Leandro Facchinetti
Latest version: 1.0.5
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<!--
Inspired by https://github.com/RecuencoJones/caddy-npm, but supports any version of Caddy.

TODO: Let the package.json specify a range? But then I’d have to reimplement .lock logic.

npx @leafac/caddy file-server


npm i @leafac/caddy
npx caddy (didn’t work on Windows, had to do .\node_modules\.bin\caddy)


  "caddy": "2.4.5", on package.json

-->
npm package: @leafac/express-async-handler
Description: Use asynchronous handlers in Express with good TypeScript support
Author: Leandro Facchinetti
Latest version: 0.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<!--
  // TODO:
  // https://github.com/Abazhenov/express-async-handler/pull/42
  // https://github.com/Abazhenov/express-async-handler
  // https://github.com/reactjs/server-components-demo/blob/2d9fb948b7073f5f07e22d71350422ee9e1cc7f3/server/api.server.js#L44-L52
  // https://github.com/lynxtaa/express-better-async-wrap/blob/master/src/index.ts
  // https://github.com/Greenfields/express-async-wrap / https://unpkg.com/browse/@types/express-async-wrap@1.0.0/
-->
npm package: @leafac/monitor
Description: Radically Straightforward Monitoring
Author: Leandro Facchinetti
Latest version: 2.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

## Changelog

### 2.0.0 · 2022-12-05

- Modified the structure of the configuration file to support the notion of different monitors having different email configurations.

### 1.0.1 · 2022-11-22

- Fixed executable shebang so that `npx @leafac/monitor` works.

### 1.0.0 · 2022-11-22

- Basic functionality of monitoring & alerting.
npm package: @leafac/node
Description: Utilities for Node.js
Author: Leandro Facchinetti
Latest version: 0.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ⚠️ WORK IN PROGRESS ⚠️

<!--
- Boilerplate for application (spinning up multiple processes, and so forth).
- Build system.
-->
npm package: @leafac/tagged-template
Description: Radically Straightforward Tagged Templates
Author: Leandro Facchinetti
Latest version: 0.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ⚠️ WORK IN PROGRESS ⚠️

<!--
- Differences between `@leafac/tagged-template` and `tagged-template-noop`
  - Type only accepts `string` or `string[]` in substitutions
  - `string[]` are `.join("")`ed
-->
npm package: @leafchage/gsql
Description: It is for using Google Spreadsheet like SQL.
Latest version: 0.0.4

# gsql

It is for using Google Spreadsheet like SQL.

## How to Use

### Example SpreadSheet

![example spreadsheet](./docs/img/dummy_spreadsheet.png)

### Code

```ts
const gsql = new GSQLManager('' /*{your spreadsheet id}*/);
const db = gsql.database;
const users = db.run(
  // ↓ SELECT first_name, email from user where id in (1, 2);
  select()
    .column('first_name', 'email') // first line is column name
    .from('user') //sheet name
    .where(inn('id', ['1', '2'])).query,
);
users.forEach((user) => {
  console.log(user['first_name'], user['email']);
});
// Morena mkyte0@webmd.com
// Darryl dlande1@aol.com
```

## ToDo

- [ ] Select
  - [x] WHERE A = 10
  - [x] WHERE A IN(10, 20)
  - [x] WHERE 1 = 1 AND 1 = 1
  - [x] WHERE 1 = 1 OR 1 = 1
  - [x] WHERE NOT 1 = 1
  - [ ] WHERE A < 10
  - [ ] WHERE A <= 10
  - [ ] WHERE A > 10
  - [ ] WHERE A >= 10
  - [ ] WHERE BETWEEN A AND B
  - [ ] WHERE Like
  - [ ] Join other table
- [ ] Insert
- [ ] Update
- [ ] Delete
npm package: @leafcuttr/libgraphit-core
Description: Core framework-agnostic library for rendering Grafana panels with Chart.js
Latest version: 0.0.5

# @leafcuttr/libgraphit-core

The core framework-agnostic library for rendering Grafana panels with Chart.js.

## Installation

```bash
npm install @leafcuttr/libgraphit-core chart.js chartjs-plugin-datasource-prometheus chartjs-adapter-date-fns date-fns
```

## Usage

```typescript
import { GrafanaRenderer } from '@leafcuttr/libgraphit-core';

const canvas = document.getElementById('chart') as HTMLCanvasElement;
const panelJson = { /* your Grafana panel JSON */ };
const options = {
  prometheusUrl: 'http://localhost:9090',
  theme: 'light'
};

const result = await GrafanaRenderer.renderPanel(canvas, panelJson, options);
```

## API Reference

### GrafanaRenderer

Main class for rendering Grafana panels.

#### Methods

- `constructor(canvas: HTMLCanvasElement, options: GrafanaRendererOptions)`
- `render(panelJson: GrafanaPanel): Promise<RendererResult>`
- `update(options?: Partial<GrafanaRendererOptions>): void`
- `destroy(): void`
- `static renderPanel(canvas, panelJson, options): Promise<RendererResult>`

### GrafanaJsonParser

Utility class for parsing Grafana panel JSON.

#### Methods

- `static parsePanel(panelJson: GrafanaPanel): ParsedPanel`
- `static validatePanel(panelJson: any): boolean`

### ChartConfigMapper

Utility class for mapping parsed panels to Chart.js configurations.

#### Methods

- `static mapToChartConfig(panel: ParsedPanel, options: GrafanaRendererOptions): PrometheusChartConfig`
- `static applyTheme(config: PrometheusChartConfig, theme: 'light' | 'dark'): PrometheusChartConfig`

## Supported Panel Types

- `timeseries` - Time series line charts
- `graph` - Legacy graph panels (mapped to line charts)
- `stat` - Single stat panels (mapped to doughnut charts)
- `gauge` - Gauge panels (mapped to doughnut charts)
- `table` - Table panels (basic support)

## License

MIT
npm package: @leafcuttr/libgraphit-svelte
Description: Svelte adapter for Grafana Chart.js Renderer
Latest version: 0.1.6

# @leafcuttr/libgraphit-svelte

Svelte adapter for the Grafana Chart.js Renderer.

## Installation

```bash
npm install @leafcuttr/libgraphit-svelte @leafcuttr/libgraphit-core chart.js chartjs-plugin-datasource-prometheus chartjs-adapter-date-fns date-fns
```

## Usage

### Component Usage

```svelte
<script>
  import { GrafanaPanel } from '@leafcuttr/libgraphit-svelte';
  import panelData from './my-panel.json';
</script>

<GrafanaPanel
  panelJson={panelData}
  prometheusUrl="http://localhost:9090"
  theme="light"
  width="100%"
  height="400px"
/>
```

### Action Usage

```svelte
<script>
  import { grafanaAction } from '@leafcuttr/libgraphit-svelte';
  
  const params = {
    panelJson: { /* panel JSON */ },
    options: {
      prometheusUrl: 'http://localhost:9090',
      theme: 'light'
    }
  };
</script>

<canvas use:grafanaAction={params}></canvas>
```

## Component Props

### GrafanaPanel

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `panelJson` | `GrafanaPanel` | required | The Grafana panel JSON configuration |
| `prometheusUrl` | `string` | required | URL of the Prometheus server |
| `timeRange` | `{from: string, to: string}` | `undefined` | Time range for queries |
| `theme` | `'light' \| 'dark'` | `'light'` | Chart theme |
| `refreshInterval` | `number` | `undefined` | Auto-refresh interval in milliseconds |
| `width` | `string` | `'100%'` | Chart container width |
| `height` | `string` | `'400px'` | Chart container height |
| `class` | `string` | `''` | Additional CSS classes |

## CSS Custom Properties

The component supports CSS custom properties for theming:

```css
.my-chart {
  --bg-color: #ffffff;
  --border-color: #e0e0e0;
  --text-color: #333333;
  --text-muted: #6c757d;
  --accent-color: #007bff;
  --error-color: #dc3545;
}
```

## License

MIT
npm package: @leafiy/mongoose-redis
Description: Mongoose Cache: Integrated Redis caching for Mongoose queries.
Author: @leafiy
Latest version: 1.1.0

Mongoose Cache: Integrated Redis caching for Mongoose queries.

Best Performance Mongoose caching module that works exactly how you would expect it to, with the latest version of Mongoose.

# Installation

Install via NPM

```js
npm install mongoose-redis --save
```


# Example

```js

var mongoose = require('mongoose');
var MongooseCache = require('mongoose-redis');

```
Config mongoose-redis cache
```js

var cache = MongooseCache(mongoose, "redis://127.0.0.1:6379");

```


```js

var docs = await Post.find({ stt: 1 }).sort({ crt: -1 })
.limit(30)
.cache(120) // cache 120 seconds
.select({ tl: 1, lth:1, views:1, img: 1, slug: 1})

```
You can also pass a custom key into the .cache() method, which you can then use later to clear the cached content.

```js

app.get('/detail/:id', async (req, res)=> {
    var _id = req.params.id;  
    var info = await Post.findOne({ slug: _id, stt: 1 })
            .cache(120, _id); // custom cache key by id
                
});

```
npm package: @leaflet-extensions/locatecontrol
Description: A useful control to geolocate the user with many options. Used by osm.org and mapbox among many others.
Author: Nikolay Naumenkov
Latest version: 0.0.4

# @leaflet-extensions/locatecontrol

This is a package created from [leaflet.locatecontrol](https://github.com/domoritz/leaflet-locatecontrol).

[Documentation & Demo](https://github.com/domoritz/leaflet-locatecontrol#readme)

## License

Licensed under the [MIT License](./LICENSE).
npm package: @leafletui/react-native-view-image
Description: React Native modal component for viewing images as a sliding gallery
Author: LeafletUI, Anayo Oleru
Latest version: 0.0.4

# React Native View Image
React Native Image and Video Viewing component Library for IOS and Android. With this component, you can view multiple images and videos and slide through them. 

Support for Expo managed, Expo bare, and React Native CLI.

- 🔥Pinch zoom for both iOS and Android
- 🔥Double tap to zoom for both iOS and Android
- 🔥Supports swipe-to-close animation
- 🔥Custom header and footer components
- 🔥Video on the slide
- 🔥Uses VirtualizedList to optimize image loading and rendering

### View demo here 

https://youtu.be/lTKgSrqjMZ4

## Installation

```bash
yarn add @leafletui/react-native-view-image
```

or

```bash
npm i @leafletui/react-native-view-image
```

```js
import ImageView from "@leafletui/react-native-view-image";

const ViewImage = () => {

  const [open, setOpen] = React.useState(false);

const openImages = [
  { 
    uri: "https://images.unsplash.com/photo-1601824772624-9375c6f20701?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTd8fHNwbGFzaHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=800&q=60"
  }
  
  ];

return (
<ImageView
  images={openImages}
  imageIndex={0}
  visible={open}
  onRequestClose={() => setOpen(false)}
  navigateToVideo={navigateToVideo}
/>
  )
};
```
npm package: @leafnet/calculatorview-react
Description: ICU Tools and Calculator components
Author: Nikolas Stylianides, nstylianides@leafnet.com.cy
Latest version: 1.9.1

# Introduction
Used in internal projects. Not ment 

## Install
```
npm install @leafnet/calculatorview-react
```
## Data
Add data in ```assets``` folder and configure webpack.config.js as follows
```
  devServer: {
    ...,
    static: ["assets"],
  },
```
## Use
```
import ReactDOM from "react-dom/client";
import { LfMortalityCalculatorComplex } from "@leafnet/calculatorview-react";
import { useEffect, useState } from "react";

const root = ReactDOM.createRoot(document.getElementById("root"));

const RootElement = () => {
  const [dataFromInternet, setDataFromInternet] = useState();

  useEffect(() => {
    const loadData = async () => {
      let data = await fetch("/sofa.json");
      data = await data.json();
      console.log(data);
      setDataFromInternet(data);
    };
    loadData();
  }, []);

  return (
    dataFromInternet && (
      <>
        <LfMortalityCalculatorComplex
          dataFromInternet={dataFromInternet}
          isHidden={false}
          handleEvent={null}
        ></LfMortalityCalculatorComplex>
      </>
    )
  );
};
root.render(<RootElement />);
```
npm package: @leafphp/docs-theme
Description: The design system for Leaf PHP.
Author: Michael Darko
Latest version: 0.1.4

# Vue Theme

This is the [VitePress](https://vitepress.vuejs.org/) theme for the official Vue documentation at `vuejs.org`.

Please note this theme is solely dedicated for `vuejs.org` and isn't meant to be used as a content-neutral theme. It does **not** follow semver and may contain hard-coded logic specific to the Vue documentation.

## Development Setup

This repo can be developed on its own since it is a self-contained VitePress theme. Make sure to use [pnpm](https://pnpm.io/) as the package manager when installing deps. A demo app is available in `/demo` and can be run with `npm run dev`:

```bash
$ pnpm install
$ npm run dev
```

## Developing with Real Content

To work on this theme in the context of the `vuejs.org` website requires cloning both repos and linking the theme into the docs repo:

1. Clone repositories:

   ```bash
   git clone git@github.com:vuejs/docs.git
   git clone git@github.com:vuejs/theme.git
   ```

2. Link theme into docs repo:

   ```bash
   # In ./theme
   pnpm install
   # Make @vue/theme available for global linking
   pnpm link --global

   # in ./docs
   pnpm install
   # Link teme
   pnpm link --global @vue/theme
   ```

3. Start VitePress server:

   ```bash
   # in ./docs
   pnpm run dev
   ```

### Available Scripts

Here is the list of available scripts that can be used during the development.

```bash
# Boot local dev server.
$ npm run dev

# Build demo, then serve locally. This is for testing
# production build in the local environment.
$ npm run serve

# Run lint via Prettier.
$ npm run lint

# Run type check via tsc.
$ npm run type
```

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2021-present Evan You
npm package: @leafphp/vite-plugin
Description: Leaf plugin for Vite.
Author: Michael Darko-Duodu
Latest version: 0.2.1

# Leaf Vite Plugin

[Vite](https://vitejs.dev) is a modern frontend build tool that provides an extremely fast development environment and bundles your code for production.

This plugin configures Vite for use with a Leaf server.
npm package: @leafs/app
Description: vue全家桶的逻辑性封装，开箱即用，持续功能拓展
Latest version: 0.2.19
Deprecated: false

# LEAF 框架
vue全家桶的逻辑性封装，开箱即用，持续功能拓展   

`内部试用预览版，暂只适用于本公司内部管理台项目使用`


# feature
- 内置管理台模板
- 内置权限机制
- 内置mixin、util
- 业务开发目录约束，自动发现全局实例注册

# 生态相关
- leaf 脚手架模板
- leaf-cli
- leaf-ui 响应式组件
- 常用业务模板平台

# 开发相关

-. 发布： npm run pub

Copyright (c) 2022
npm package: @leafs/cli
Description: leaf-cli
Author: Leaf
Latest version: 1.1.3

# leaf-cli

1. 全局安装leaf命令 

```
npm install -g @leafs/cli

```

### 命令

#### 创建管理台项目模板

1. 创建项目

```
leaf create [your project]
```

2. 选择 admin 项目

3. 启动leaf框架

```
leaf start
```

4. 升级leaf框架

```
leaf update
```

#### 创建electron项目

1. 创建项目

```
leaf create [your project]
```

2. 选择 electron 项目模板

3. 启动项目

```
npm run dev
```

4. 打包应用

```
npm run build:demo

```

#### 部署管理台项目

1. 项目根目录下生成配置文件

```
leaf deploy init
```

2. 部署项目

```
leaf deploy <env>
```

env: 环境参数

3. 查询备份tags

```
leaf deploy tag -e <env>
```

env: 环境参数

4. 项目回滚

```
leaf deploy rollback -e <env> -t <tag>
```

env: 环境参数
tag: 标签参数
npm package: @leafs/style
Description: another theme for element-ui
Author: jinye
Latest version: 1.0.6

## 组件上云样式解决方案

基于 Element Ui 的主题重置方案，简单好用的组件上云样式包，直接引入项目，即刻生效。

```js
npm i @leafs/style 

import '@leafs/style/index.css'
或
import '@leafs/style/yanyi.css'
```
npm package: @leafs/test
Description: vue全家桶的逻辑性封装，开箱即用，持续功能拓展
Latest version: 0.2.19
Deprecated: false

# LEAF 框架
vue全家桶的逻辑性封装，开箱即用，持续功能拓展   

`内部试用预览版，暂只适用于本公司内部管理台项目使用`


# feature
- 内置管理台模板
- 内置权限机制
- 内置mixin、util
- 业务开发目录约束，自动发现全局实例注册

# 生态相关
- leaf 脚手架模板
- leaf-cli
- leaf-ui 响应式组件
- 常用业务模板平台

# 开发相关

-. 发布： npm run pub

Copyright (c) 2022