open-index/open-npm huggingface dataset:
npm package: @klarvy/sdk-node
Description: Klarvy SDK for Node.js and Browser request aggregation
Author: Klarvy
Latest version: 0.1.4

# @klarvy/sdk-node

Klarvy SDK for Node.js and modern browsers. It aggregates outbound HTTP(S) requests by host+path and periodically reports them to the Klarvy SDK Service.

## Install

```bash
npm install @klarvy/sdk-node
```

## Quickstart (Node)

```ts
import { Klarvy } from "@klarvy/sdk-node";

// Use a server-side key from your environment
await Klarvy.init(process.env.KLARVY_API_KEY!);

// ... your app logic ...

await Klarvy.shutdown();
```

Tip: In Node, the SDK can auto-initialize if `KLARVY_API_KEY` is set in the environment (and optionally `KLARVY_SERVICE_URL`).

ESM note: If your server uses Node ESM (e.g., `"type": "module"` in `package.json`), import the Node build explicitly:

```ts
import { Klarvy } from "@klarvy/sdk-node/node";
```

## Quickstart (Browser)

Use a browser‑safe public key (`pk_live_...`). Do not expose server secrets in the browser.

```ts
import { Klarvy } from "@klarvy/sdk-node/browser";

// Obtain a browser key (pk_live_...) from the Klarvy dashboard
await Klarvy.init("pk_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXX");

// ... your app logic ...

await Klarvy.shutdown();
```

Notes:
- For frameworks with SSR (e.g., Next.js), import from `@klarvy/sdk-node/browser` in client-only code.
- The SDK flushes on visibility changes and page unload using `keepalive` where supported.

## Configuration

- `serviceBaseUrl` (default `https://sdk.klarvy.ai`) — SDK Service base URL
- `includeHosts` / `excludeHosts` — host allow/deny lists
- `debug` — verbose logs
- `maxUniqueTargets` — cap on unique host+path entries held in memory

The flush interval is controlled by the SDK Service via `/v1/sdk/config`.

## API calls made by the SDK

- `POST /v1/sdk/config` (headers: `X-Klarvy-Key`) → `{ flush_frequency_seconds }`
- `POST /v1/sdk/aggregations` (headers: `X-Klarvy-Key`) with body:
  ```json
  {
    "items": [ { "target": "api.openai.com/v1/chat/completions", "request_count": 673 } ],
    "client_flushed_at": "2025-01-01T12:34:56Z"
  }
  ```

## Import paths

- Node (CommonJS or transpiled): `import { Klarvy } from "@klarvy/sdk-node"`
- Node (ESM): `import { Klarvy } from "@klarvy/sdk-node/node"`
- Browser: `import { Klarvy } from "@klarvy/sdk-node/browser"`

Bundlers typically pick the right entry automatically. For client-only code and SSR setups, prefer the explicit `/browser` import; for Node ESM servers, prefer the explicit `/node` import.
npm package: @klasa/core
Description: wip-concept
Author: dirigeants
Latest version: 0.0.3
Deprecated: Klasa has been discontinued. Use at your own risk.

# @klasa/core
This is an early alpha discord library which will be the future core of the Klasa Bot framework. This implements a high-level stateful interface over @klasa/rest and @klasa/ws. You are bound to come across missing or broken code/types using this alpha library. (I even found some unintended types while writing this!) Please make issues and pull requests to further the development.

Simple ping client in typescript
```typescript
import { Client, ClientEvents } from '@klasa/core';
import config from './config.json';

const client = new Client()
	.on(ClientEvents.MessageCreate, async (message): Promise<void> => {
		if (message.author.bot) return;
		if (message.content.toLowerCase().startsWith('ping')) {
			const [response] = await message.channel.send(mb => mb.setContent('ping?'));
			await response.edit(mb => mb.setContent(`Pong! Took: ${response.createdTimestamp - message.createdTimestamp}ms`));
		}
	});

client.token = config.token;

client.connect();
```

Simple ping client in javascript
```javascript
const { Client } = require('@klasa/core');
const { token } = require('./config.json');

const client = new Client()
	.on('messageCreate', async (message) => {
		if (message.author.bot) return;
		if (message.content.toLowerCase().startsWith('ping')) {
			const [response] = await message.channel.send(mb => mb.setContent('ping?'));
			return response.edit(mb => mb.setContent(`Pong! Took: ${response.createdTimestamp - message.createdTimestamp}ms`));
		}
	});

client.token = token;

client.connect();
```
npm package: @klasa/querybuilder
Description: A SQL query builder to abstract databases.
Author: dirigeants
Latest version: 0.0.1
Deprecated: Klasa has been discontinued. Use at your own risk.

# QueryBuilder

QueryBuilder is a tool made to create and format SQL schemas based on their datatypes, though basic sanitization is
included in this library, you should use the driver's sanitizer when available.

This library provides an interface that allows Schema types to be translated into their best fitting database-specific
SQL datatypes and formatting.
npm package: @klasa/request-handler
Description: Run asynchronous tasks as soon as possible, or in chunks.
Author: dirigeants
Latest version: 0.0.3
Deprecated: Klasa has been discontinued. Use at your own risk.

# request-handler

[![Discord](https://discordapp.com/api/guilds/339942739275677727/embed.png)](https://klasa.js.org)
[![npm](https://img.shields.io/npm/v/@klasa/request-handler.svg?maxAge=3600)](https://www.npmjs.com/package/@klasa/request-handler)
[![npm](https://img.shields.io/npm/dt/@klasa/request-handler.svg?maxAge=3600)](https://www.npmjs.com/package/@klasa/request-handler)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/dirigeants/request-handler.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dirigeants/request-handler/alerts/)
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=dirigeants/request-handler)](https://dependabot.com)
[![David](https://img.shields.io/david/dirigeants/request-handler.svg?maxAge=3600)](https://david-dm.org/dirigeants/request-handler)
[![Patreon](https://img.shields.io/badge/donate-patreon-F96854.svg)](https://www.patreon.com/klasa)

## About

`@klasa/request-handler` is an abstracted utility made for [klasa]'s SettingsGateway, where in certain scenarios, many
entries have to be synchronized at arbitrarily any time. This tool helps reducing the database load by batching multiple
queries into chunks.

[klasa]: https://github.com/dirigeants/klasa
npm package: @klasa/rest
Description: Handles rest and ratelimits for pb.
Author: dirigeants
Latest version: 0.5.4
Deprecated: Klasa has been discontinued. Use at your own risk.

# @klasa/rest
This is a request handler for the discord api and is responsible for handling all ratelimits. This utilizes the latest headers for millisecond precision and hash bucket grouping. Because of that maximum throughput is possible without hard-coding any rates or limits. This library also features 100% unit test coverage.

Simple Example:
```typescript
import { REST, Routes } from '@klasa/rest';
import * as config from './config.json';

const rest = new REST();

rest.token = config.token;

rest.get(Routes.oauthApplication())
    .then(console.log);
```
npm package: @klasa/settings-gateway
Description: The centralized settings system designed for the Klasa framework.
Author: dirigeants
Latest version: 0.0.10
Deprecated: Klasa has been discontinued. Use at your own risk.

# SettingsGateway

SettingsGateway is a tool made to perform high-performance data persistence and cache management tasks while allowing
untrusted input to be safely parsed and processed before it goes to the database.
npm package: @klasbj/cra-template-scoped
Description: The base template for Create React App but in a scoped package.
Latest version: 0.0.2

# scoped-cra-template

This is the official base template for [Create React App](https://github.com/facebook/create-react-app) but published in a scoped NPM package.

If you don't specify a template (for example, `--template typescript`), this template will be used by default.

For more information, please refer to:

- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App.
npm package: @klaster_1/testcafe-repeat-test
Description: A tool to ergonomically repeat TestCafe tests
Author: Ilya Borisov
Latest version: 1.0.2

[![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)

# TestCafe repeat test

A tool to ergonomically repeat a specific TestCafe test and skip other tests. Useful for debugging unstable tests.

## Installation

```lang: shell
npm i @klaster_1/testcafe-repeat-test
```

## Usage notes

Test repeater only works if you use the globally available function and do not import it from TestCafe:

```
// Works
repeatTest(2)
test('Test', async t => {})
```

```
// Doesn't work
import {test} from 'testcafe'

repeatTest(2)
test('Test', async t => {})
```

## Examples:

```lang: typescript
import repeatTest from '@klaster_1/testcafe-repeat-test';

fixture`Demo`

repeatTest(3)
test('Demo', async (t) => {
  console.log('Hello world')
})

// Log:
// Default
// √ Demo 1
// √ Demo 2
// √ Demo 3
```

```lang: typescript
import repeatTest from '@klaster_1/testcafe-repeat-test';

fixture`Demo`

repeatTest(2, {rename: false})
test('Demo', async (t) => {
  console.log('Hello world')
})

// Log:
// Default
// √ Demo
// √ Demo
```
npm package: @klaudebot/suite
Description: Klaude — AI-powered Solana trading suite with paper trading, risk management, and real-time market scanning
Author: Klaude
Latest version: 0.1.0

# @klaudebot/suite

AI-powered Solana trading suite with paper trading, risk management, and real-time market scanning. Smart Safe for your OpenClaw agent.

## Install

```bash
npm install -g @klaudebot/suite
```

## Usage

```bash
# Start the server (frontend + API on one port)
klaude start

# Custom port
klaude start --port 8080

# Help
klaude --help
```

Open `http://localhost:3001` in your browser.

## Configuration

Environment variables (all optional):

| Variable | Default | Description |
|----------|---------|-------------|
| `PORT` | `3001` | Server port (or use `--port`) |
| `DATABASE_PATH` | `~/.klaude/klaude.db` | SQLite database location |
| `OPENAI_API_KEY` | — | Enables AI-powered trade decisions (falls back to rule-based) |

## Development

```bash
# Install all dependencies
npm install
cd backend && npm install && cd ..

# Frontend dev server
npm run dev

# Backend dev server (separate terminal)
cd backend && npm run dev
```

## Build

```bash
# Build frontend (out/) + backend (backend/dist/)
npm run build
```

## License

MIT
npm package: @klaudek/randomid-generator
Description: ## **Use** You can generate id of random signs which is as long as you wish. Just choose a number of signs.
Author: Klaudia Skóra
Latest version: 1.0.1

# **Random ID generator**

## **Use**
You can generate id of random signs which is as long as you wish. Just choose a number of signs.

## **Usage**

After installing this pack all you need is to import randomID from @klaudek/randomid-generator and give a number for function that would be a length of an id.
npm package: @klaudhaus/oxo
Description: Oxo is an open source standard for defining web development projects in terms of assets, templates, models, processes and stories.
Author: tstewart@klaudhaus.com
Latest version: 0.3.0

# Oxo

Oxo is an open source standard for defining web development projects in terms of assets, templates, models, processes and stories.

It is not a development library or framework by itself. To develop web apps, check out lit-app.
npm package: @klaudia-z/common-js-config
Description: Package containing configuration files for various libraries I use in my private projects.
Author: KlaudiaZ
Latest version: 2.0.0

# Vanilla JavaScript & ReactJS config package

## Usage:

### Babel:
Require the config file in babel.rc file in your project.

### Eslint:
1. Require either eslintBase.config or eslintReact.config in eslint.rc file in your project. 
2. Call the config function (optionally pass config parameters) and assign to module.exports.

#### Options:
##### eslintBase:
- (number) ecmaVersion (default: 6)
- (object) env: { browser: boolean (default: true), node: boolean (default: false) }

##### eslintReact:
- (number) ecmaVersion (default: 6)
- (boolean) jsx (default: true)
- (object) env: { browser: boolean (default: true), node: boolean (default: false) }

### Webpack:
1. Import desired config file as a function
2. Specify your app directory
3. Create an Aliases file containing a map of aliases, if you wish so
3. Call the imported config passing environtmental variables, the APP_DIR, and, optionally, aliases.

## Example usage:
https://github.com/KlaudiaZ/webpack-react-starter


## Planned features:
- Adding style linter