open-index/open-npm huggingface dataset:
npm package: @negebauer/js-template
Description: A js project template
Author: Nicolas Gebauer
Latest version: 1.0.1

# @negebauer/js-template

A js project template.

## Libraries

- eslint: Linter
  - @negebauer/eslint-config-base: My base linter config
- prettier: For formatting code
  - @negebauer/prettier-config: My prettier config
- jest: For running tests
- nodemon: For development
- prettier-package-json: For formatting package.json
- standard-version: For releasing with a CHANGELOG and automatic versioning with conventional commit messages

## Other

- ci: Configured to run in CircleCI
- `config.js`: File where env variables are loaded
npm package: @negebauer/prettier-config
Description: My personal Prettier config
Author: Nicolas Gebauer
Latest version: 1.0.3

# `@negebauer/prettier-config`

> My personal [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
npm i -D @negebauer/prettier-config
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@negebauer/prettier-config"
}
```
npm package: @negebauer/routes-helper
Description: Helper for creating routes object and building paths from them
Author: Nicolas Gebauer
Latest version: 1.0.0

# Routes helper <!-- omit in TOC -->

Helper functions for creating a routes object with deeply nested routes and path generators using [`path-to-regexp`](https://github.com/pillarjs/path-to-regexp)

- [Development](#development)

## Development

- Clone the repository `git clone https://github.com/nested/routes-helper.git`
- Install dependencies `yarn`
- Make changes
- Run tests `yarn test`
npm package: @negev/cli
Description: Run loadtests against your GraphQL backend
Author: Marcel Haupenthal @marhaupe
Latest version: 0.0.1-alpha.5

# @negev/cli

[![npm version](https://img.shields.io/npm/v/@negev/cli)](https://img.shields.io/npm/v/@negev/cli)
[![Build Status](https://travis-ci.com/marhaupe/negev-cli.svg?branch=master)](https://travis-ci.com/marhaupe/negev-cli)

> Benchmark your GraphQL servers with ease.

## Installation

```bash
npm install -g @negev/cli
```

![Demo](.github/demo.gif)

# Why

Common loadtesting tools expect you to read documentation, write configuration files or hack together multline bash scripts. `negev` doesn't. Just run the `negev` command and answer some questions. (Don't worry, you still can write bash scripts - scroll down further for an example).

Additionally, most of them weren't written with GraphQL in mind, while this one exclusively serves the purpose of loadtesting GraphQL servers, for example:

- _Proper error detection_: GraphQL queries that run into errors will commonly still have a 200 response, with the distinction that their body contains the `errors` field. Since most tools written for plain REST servers simply look at the HTTP statuscode of each response, they wouldn't even detect that something went wrong.
- _Schema validation_: If you're querying something that isn't in your schema, negev won't even start loadtesting, saving you valuable time.

# Usage

```bash
$ negev --help

Benchmark your GraphQL servers with ease.

USAGE
  $ negev

OPTIONS
  -H, --headers=headers                    request header. can be set multiple times. example: -H="Content-Type: application/json"
  -c, --concurrencyLimit=concurrencyLimit  the limit of concurrent requests
  -d, --duration=duration                  the total duration of the loadtest
  -e, --endpoint=endpoint                  the endpoint to test
  -h, --help                               show CLI help
  -n, --numberRequests=numberRequests      the number of requests to send
  -q, --query=query                        the query to use
  -r, --rateLimit=rateLimit                the limit of requests per second
  -v, --version                            show CLI version

EXAMPLES
  $ negev    # Will run the command in prompt-mode
  $ negev -e="http://localhost:4000" -q="{ books { author } }"   # Will immediately start a loadtest with the given configuration
```

# Output

```bash
Summary:
 Total requests:      1000
 Loadtest duration:   823 ms
 Slowest:             57 ms
 Fastest:             21 ms
 Average:             40.02 ms
 Requests/sec:        1215.07

Histogram:
  21 ms: 1
  25 ms: 4
  29 ms: 23
  33 ms: 153
  37 ms: 242
  41 ms: 246
  45 ms: 202
  49 ms: 95
  53 ms: 26
  57 ms: 8
  61 ms: 0

Latency Distribution:
  10% in 28 ms
  25% in 36 ms
  50% in 31 ms
  75% in 43 ms
  90% in 48 ms
  95% in 50 ms
  99% in 54 ms

Error distribution:
 Successes   1000
 Errors      0
```
npm package: @negev/core
Description: loadtest your graphql servers
Author: marhaupe
Latest version: 0.0.1-alpha.2

# @negev/core

[![npm version](https://badge.fury.io/js/%40negev%2Fcore.svg)](https://badge.fury.io/js/%40negev%2Fcore)
[![Build Status](https://travis-ci.com/marhaupe/graphql-loadtest.svg?branch=master)](https://travis-ci.com/marhaupe/graphql-loadtest)
[![codecov](https://codecov.io/gh/marhaupe/negev/branch/master/graph/badge.svg?flag=core)](https://codecov.io/gh/marhaupe/negev)

> Benchmark your GraphQL servers with ease.

## Installation

```bash
npm install @negev/core
```

## Usage

### Config

Depending on your configuration, you can execute a loadtest that runs for a certain amount of time (by setting `duration`) or one that sends a specified amount of requests (by setting `numberRequests`). Note that if both fields are present, `numberRequests` will be ignored.

| Parameter        | Default      | Description                                            |
| ---------------- | ------------ | ------------------------------------------------------ |
| endpoint         | **Required** | The endpoint to test                                   |
| query            | **Required** | The query / mutation to send                           |
| headers          | None         | The headers attached to each request                   |
| rateLimit        | None         | The limit for how many requests are sent per second    |
| concurrencyLimit | 50           | The limit for how many concurrent requests can be sent |
| duration         | 15           | The duration (in seconds) of the loadtest.             |
| numberRequests   | 500          | The count of how many total requests are sent.         |

### Example - `numberRequests`

```js
import { executeLoadtest } from '@negev/core';

const loadtestResult = await executeLoadtest({
  endpoint: 'https://example.com/query',
  query: '{ books { author } }',
  headers: {
    'Content-type': 'application/json',
  },
  numberOfRequests: 1000,
});
```

### Example - `duration`

```js
import { executeLoadtest } from '@negev/core';

const loadtestResult = await executeLoadtest({
  endpoint: 'https://example.com/query',
  query: '{ books { author } }',
  headers: {
    'Content-type': 'application/json',
  },
  duration: 15,
});
```
npm package: @negiz/compound
Description: A utility for creating compound components with full TypeScript type safety
Author: Amangaliyev Magiyar
Latest version: 0.1.1

# @negiz/compound

<p align="center">
  <strong>A utility for creating compound components with full TypeScript type safety</strong><br />
  <em>Build flexible, composable React components with ease</em>
</p>

<p align="center">
  <a href="https://npmjs.org/package/@negiz/compound">
    <img src="https://img.shields.io/npm/v/@negiz/compound?style=flat&colorA=000000&colorB=000000" alt="Version">
  </a>
  <a href="https://github.com/mag1yar/negiz/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/mag1yar/negiz?style=flat&colorA=000000&colorB=000000" alt="License">
  </a>
  <a href="https://bundlephobia.com/package/@negiz/compound">
    <img src="https://img.shields.io/bundlephobia/minzip/@negiz/compound?style=flat&colorA=000000&colorB=000000" alt="Bundle Size">
  </a>
</p>

A lightweight, zero-dependency utility for creating compound components in React. Perfect for building design systems and reusable UI components with maximum flexibility and type safety.

## Features

- 🔒 **Full TypeScript Support** - Complete type inference and safety
- 🪶 **Zero Dependencies** - No external dependencies, just React
- 📦 **Tiny Bundle** - Minimal footprint, tree-shakeable
- 🎯 **Simple API** - One function to create compound components
- 🔍 **DevTools Friendly** - Proper display names for React DevTools
- ⚡ **Performance** - No runtime overhead, just composition

## Installation

```bash
# Using npm
npm install @negiz/compound

# Using yarn
yarn add @negiz/compound

# Using pnpm
pnpm add @negiz/compound
```

## Basic Usage

```tsx
import { createCompound } from '@negiz/compound';

// 1. Define your individual components
function CardRoot({ children, className = '' }) {
  return <div className={`card ${className}`}>{children}</div>;
}

function CardHeader({ children }) {
  return <header className="card-header">{children}</header>;
}

function CardBody({ children }) {
  return <div className="card-body">{children}</div>;
}

function CardFooter({ children }) {
  return <footer className="card-footer">{children}</footer>;
}

// 2. Create compound component
const Card = createCompound(
  CardRoot,
  {
    Header: CardHeader,
    Body: CardBody,
    Footer: CardFooter,
  },
  { displayName: 'Card' },
);

// 3. Use it with full flexibility
function App() {
  return (
    <Card className="my-card">
      <Card.Header>
        <h2>Card Title</h2>
      </Card.Header>
      <Card.Body>
        <p>This is the card content.</p>
      </Card.Body>
      <Card.Footer>
        <button>Action</button>
      </Card.Footer>
    </Card>
  );
}
```

<!-- ## Documentation

For complete documentation, examples, and integration guides:
[https://mag1yar.github.io/negiz/packages/compound](https://mag1yar.github.io/negiz/packages/compound) -->

## License

MIT
npm package: @negrel/denoload-assert
Description: Fork of assert module from deno_std for denoload
Latest version: 0.1.0

# `assert` - Deno standard library assert module.

This module is a fork of [`deno_std/assert@0.204.0`](https://github.com/denoland/deno_std/tree/0.204.0).

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run mod.ts
```

This project was created using `bun init` in bun v1.0.4. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @negrel/denoload-metrics
Description: Metrics package for denoload.
Latest version: 0.2.0

# @negrel/denoload-metrics

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.0.4. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @negrel/http_ece
Description: An implementation of HTTP Encrypted Content-Encoding scheme (RFC 8188).
Latest version: 0.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `http_ece` - HTTP Encrypted Content-Encoding for Deno & web browsers

![license MIT badge](https://img.shields.io/github/license/negrel/http_ece)
![code size badge](https://img.shields.io/github/languages/code-size/negrel/http_ece)

This library is an implementation of HTTP Encrypted Content-Encoding
scheme([RFC 8188](https://datatracker.ietf.org/doc/html/rfc8188)).

## Implemented schemes

This crate implements only the published Web Push Encryption scheme
(`aes128gcm`), and **not** the legacy scheme from earlier drafts.

It does not support, and we have no plans to ever support, the obsoletes
`aesgmc` and `aesgcm128` schemes from earlier drafts.

## Usage

```ts
import * as ece from "https://deno.land/x/http_ece@v0.0.5/mod.ts";

const input = new TextEncoder().encode("I am the walrus");
const secret = new TextEncoder().encode("my_secret");
const encrypted = await ece.encrypt(input, secret);

const decrypted = await ece.decrypt(encrypted, secret);

console.log(new TextDecoder().decode(decrypted));
// output: I am the walrus
```

Package is also available as `@negrel/http_ece` on NPM.

## Features

- `aes128gcm` encryption and decryption
- custom padding strategy supported
- Web browser compatible

## TODO

- [ ] Support the
      [Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)

## Contributing

If you want to contribute to `http_ece` to add a feature or improve the code
contact me at [negrel.dev@protonmail.com](mailto:negrel.dev@protonmail.com),
open an [issue](https://github.com/negrel/http_ece/issues) or make a
[pull request](https://github.com/negrel/http_ece/pulls).

## :stars: Show your support

Please give a :star: if this project helped you!

[![buy me a coffee](.github/bmc-button.png)](https://www.buymeacoffee.com/negrel)

## :scroll: License

MIT © [Alexandre Negrel](https://www.negrel.dev/)
npm package: @negrel/mep
Description: MEP is a mathematical expression parser written in TypeScript.
Latest version: 0.3.0

<div>
	<a src="https://standardjs.com">
		<img src="https://cdn.rawgit.com/standard/standard/master/badge.svg" alt="standardjs badge">
	</a>
	<a href="https://github.com/negrel/ringo/raw/master/LICENSE">
		<img src="https://img.shields.io/badge/license-MIT-green">
	</a>
</div>

# :heavy_division_sign: - MEP is a dependency free mathematical expression parser written in TypeScript.

## Why ?

I needed an **extensible** mathematical expression parser for
[1Calc](https://github.com/OG-Suite/1calc)

This package does the following:

- Lex mathematical expressions with **custom** operations, constants and
  functions into tokens
- Parse tokens and return an
  [RPN](https://en.wikipedia.org/wiki/Reverse_Polish_notation) array of
  `numbers` / `Operation`.
- Compute an [RPN](https://en.wikipedia.org/wiki/Reverse_Polish_notation) array
  and return the result

## Installation

Using ES modules:

```js
import * mep from "https://deno.land/x/http_ece@v0.1.0/mod.ts";
```

Using npm:

```shell
$ npm install @negrel/mep
```

You can now import `mep` as an ES modules or a CommonJS module.

## Exemple

```js
import { compute, registerConstant } from "@negrel/mep";
// or
// const { compute, registerConstant } = require('@negrel/mep')

console.log("Result:", compute("log2(5 * 65 + cos(PI ^ 2))"));
// Result: 8.340283256791498

registerConstant("PI2", Math.PI ** 2);
console.log("Result:", compute("log2(5 * 65 + cos(PI2))"));
// Result: 8.340283256791498
```

### Contributing

If you want to contribute to MEP to add a feature or improve the code contact me
at [negrel.dev@protonmail.com](mailto:negrel.dev@protonmail.com), open an
[issue](https://github.com/negrel/MEP/issues) or make a
[pull request](https://github.com/negrel/MEP/pulls).

## :stars: Show your support

Please give a :star: if this project helped you!

[![buy me a coffee](.github/images/bmc-button.png)](https://www.buymeacoffee.com/negrel)

#### :scroll: License

MIT © [Alexandre Negrel](https://www.negrel.dev)