open-index/open-npm huggingface dataset:
npm package: @klauss-m/eslint-config
Description: Custom eslint configuration using airbnb's styleguide
Author: Klauss Marques
Latest version: 1.0.0

# @klauss-m/prettier-config

## Why?

I want to have an easy access to all my configurations.

## Installation and configuration

### Typescript without react:

- Install:

```bash
yarn add eslint @klauss-m/eslint-config @typescript-eslint/eslint-plugin  @typescript-eslint/parser eslint-config-airbnb-base eslint-config-airbnb-typescript eslint-config-prettier eslint-plugin-import eslint-plugin-jest -D
```

- Extend:

You need to set this on your eslint config:

```json

{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "extends": [
    "@klauss-m/eslint-config/typescript"
  ]
}
```

### Typescript with react:

- Install:

```bash
yarn add eslint @klauss-m/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jest -D
```

- Extend:

You need to set this on your eslint config:

```json
{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "extends": [
    "@klauss-m/eslint-config/typescript-react"
  ]
}
```

### Javascript without react:

- Install:

```bash
yarn add eslint @klauss-m/eslint-config @babel/core @babel/eslint-parser @babel/preset-env eslint-config-airbnb-base eslint-config-prettier eslint-plugin-jest eslint-plugin-import -D
```

- Extends:

You need to set this on your eslint config:

```json
{
  "root": true,
  "parser": "@babel/eslint-parser",
  "parserOptions": {
    "requireConfigFile": false,
    "babelOptions": {
      "presets": [
        "@babel/preset-env"
      ]
    }
  },
  "extends": [
    "@klauss-m/eslint-config/javascript"
  ]
}
```

You need to have a `.babelrc.json` on your root with this:

```json
{
  "presets": [
    [
      "@babel/preset-env",
      {
        "useBuiltIns": "usage",
        "corejs": 3
      }
    ]
  ]
}
```

### Javascript with react:

- Install:

```bash
yarn add eslint @klauss-m/eslint-config @babel/core @babel/eslint-parser @babel/preset-env eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jest -D
```

- Extend:

you need to set this on your eslint config:

```json
{
  "root": true,
  "parser": "@babel/eslint-parser",
  "parserOptions": {
    "requireConfigFile": false,
    "babelOptions": {
      "presets": [
        "@babel/preset-env"
      ]
    }
  },
  "extends": [
    "@klauss-m/eslint-config/javascript-react"
  ]
}
```

You need to have a `.babelrc.json` on your root with this:

```json
{
  "presets": [
    [
      "@babel/preset-env",
      {
        "useBuiltIns": "usage",
        "corejs": 3
      }
    ]
  ]
}
```
npm package: @klave/as-json
Description: The only JSON library you'll need for AssemblyScript. SIMD enabled
Author: Jairus Tanaka
Latest version: 1.0.0-alpha.2

<h5 align="center">
  <pre>
<span style="font-size: 0.8em;">     ██ ███████  ██████  ███    ██        █████  ███████
     ██ ██      ██    ██ ████   ██       ██   ██ ██     
     ██ ███████ ██    ██ ██ ██  ██ █████ ███████ ███████
██   ██      ██ ██    ██ ██  ██ ██       ██   ██      ██
 █████  ███████  ██████  ██   ████       ██   ██ ███████
 </span>
    AssemblyScript - v1.0.0-alpha.2
  </pre>
</h5>

## Installation

```bash
npm install json-as@1.0.0-alpha.2
```

Add the `--transform` to your `asc` command (e.g. in package.json)

```bash
--transform json-as
```

Alternatively, add it to your `asconfig.json`

```
{
  // ...
  "options": {
    "transform": ["json-as"]
  }
}
```

If you'd like to see the code that the transform generates, run with `JSON_DEBUG=true`

## Usage

```js
import { JSON } from "json-as";

// @json or @serializable work here
@json
class Vec3 {
  x: f32 = 0.0;
  y: f32 = 0.0;
  z: f32 = 0.0;
}

@json
class Player {
  @alias("first name")
  firstName!: string;
  lastName!: string;
  lastActive!: i32[];
  // Drop in a code block, function, or expression that evaluates to a boolean
  @omitif((age) => age < 18)
  @omitif('this.age <= 0')
  age!: i32;
  @omitnull()
  pos!: Vec3 | null;
  isVerified!: boolean;
}

const player: Player = {
  firstName: "Emmet",
  lastName: "West",
  lastActive: [8, 27, 2022],
  age: 23,
  pos: {
    x: 3.4,
    y: 1.2,
    z: 8.3
  },
  isVerified: true
};

const stringified = JSON.stringify<Player>(player);

const parsed = JSON.parse<Player>(stringified);
```

Classes can even have inheritance. Here's a nasty example

```js
@json
class Base {}

@json
class Vec1 extends Base {
  x: f32 = 1.0;
}
@json
class Vec2 extends Vec1 {
  y: f32 = 2.0;
}
@json
class Vec3 extends Vec2 {
  z: f32 = 3.0;
}

const arr: Base[] = [
  new Vec1(),
  new Vec2(),
  new Vec3()
];

const serialized = JSON.stringify(arr);
// [{"x":1.0},{"x":1.0,"y":2.0},{"y":2.0,"x":1.0,"z":3.0}]
const parsed = JSON.parse<Base[]>(serialized);
```

You can also add it to your `asconfig.json`

```json
{
  // ...
  "options": {
    "transform": ["json-as/transform"]
  }
}
```

If you use this project in your codebase, consider dropping a [star](https://github.com/JairusSW/as-json). I would really appreciate it!

## Notes

If you want a feature, drop an issue (and again, maybe a star). I'll likely add it in less than 7 days.

## Contact

- [Email](mailto:me@jairus.dev)
- [GitHub](https://github.com/JairusSW)
- [Discord](discord.com/users/600700584038760448)

## Issues

Please submit an issue to https://github.com/JairusSW/as-json/issues if you find anything wrong with this library
npm package: @klave/compiler
Description: Klave AssemblyScript compiling wrapper
Author: Florian Guitton
Latest version: 1.0.9

# @klave/compiler

The `@klave/compiler` is a Node.js package designed to facilitate the development and deployment of honest applications on the Klave platform. It streamlines the process of compiling AssemblyScript code into WebAssembly (WASM), ensuring seamless integration with Klave's secure and privacy-focused infrastructure.

## Features

- **AssemblyScript to WASM Compilation**: Transforms your AssemblyScript code into optimized WebAssembly binaries suitable for deployment on Klave.
- **Integration with Klave SDK**: Works in tandem with the Klave SDK to provide a cohesive development experience.
- **Command-Line Interface (CLI)**: Offers a straightforward CLI for compiling and managing your projects.

## Installation

To install `@klave/compiler`, use your preferred package manager:

```bash
# Using npm
npm install @klave/compiler --save-dev

# Using yarn
yarn add @klave/compiler --dev
```

## Usage

This package is meant to be used by the Klave platform and is unlikely to find widespread use out of that.

### Programmatic API

You can also use `@klave/compiler` programmatically within your Node.js scripts:

```javascript
const { createCompiler } = require('@klave/compiler');

createCompiler()
  .then((compiler: CompilerHost) => {
    console.log('Handle compilation...');
  })
  .catch((error) => {
    console.error('Compilation failed:', error);
  });
```

## Prerequisites

- **Node.js**: Ensure that Node.js >=24 is installed on your system. You can download it from the [official website](https://nodejs.org/).
- **AssemblyScript**: Familiarity with AssemblyScript is recommended for developing applications on Klave. Learn more about AssemblyScript [here](https://www.assemblyscript.org/).

## Resources

- **Klave Documentation**: For comprehensive guides and tutorials on developing and deploying applications on Klave, visit the [Klave Documentation](https://docs.klave.com/).
- **Klave Platform Repository**: Explore the source code and contribute to the Klave platform on GitHub: [klave-network/platform](https://github.com/klave-network/platform).

## License

This project is licensed under the MIT License. See the [LICENSE](https://github.com/klave-network/platform/blob/main/LICENSE.md) file for details.

---

For any questions or support, please refer to the [Klave Documentation](https://docs.klave.com/) or contact the maintainers through the [Klave Platform Repository](https://github.com/klave-network/platform).
npm package: @klave/id
Description: A library providing utilities for connecting with Klave ID
Author: Florian Guitton
Latest version: 0.0.6

# @klave/id

Utilities for connecting with Klave ID.

## Overview

`@klave/id` is a JavaScript/TypeScript library that provides utilities to easily integrate and interact with Klave ID authentication and identity services in your applications.

## Features

- Simple API for connecting with Klave ID
- Helper functions for authentication flows
- TypeScript support

## Installation

```bash
npm install @klave/id
```

or

```bash
yarn add @klave/id
```

## Usage

```js
import { KlaveID } from '@klave/id';

const MyAppPage: React.FC = () => {
  const handleSuccess = (token) => {
    console.log(`My JWT: ${token}`)
  }
  return <KlaveID applicationId="..." onSuccess={handleSuccess} />
}
```

## License

MIT

## Contributing

Contributions are welcome! Please open issues or submit pull requests.

## Support

For questions or support, please contact the maintainers or open an issue.
npm package: @klave/sdk
Description: Klave Honest Apps helpers and definitions
Author: Florian Guitton
Latest version: 0.18.0

# Klave SDK

The Klave SDK is a powerful toolset designed to facilitate the development of honest applications on the Klave platform. It provides developers with the necessary resources to create, deploy, and manage applications that leverage Klave's secure and decentralized infrastructure.

## Features

- **Application Scaffolding**: Quickly set up new applications with predefined templates and structures.
- **Ledger Integration**: Utilize a robust tamperproof ledger for efficient secure data storage and retrieval.
- **Subscriptions and Notifications**: Implement real-time query monitoring and event-driven automation within your applications.
- **Secure Communications**: Ensure encrypted interactions between end-user devices and Klave nodes.
- **Cryptographic Support**: Access built-in cryptographic functions for secure computations and data integrity.
- **Web Interactions**: Integrate with external web services via HTTPS, enabling functionalities like API calls and email dispatch.
- **Cross-Application and Cross-Cluster Communications**: Facilitate seamless interactions between different applications and clusters within the Klave ecosystem.
- **Branching and Transaction Management**: Manage complex transaction workflows, including nested transactions and conditional operations.
- **AI Integration**: Leverage support for AI model inference, with plans to include model training capabilities in the future.

## Prerequisites

Before installing the Klave SDK, ensure that the following software is installed on your system:

- [Node.js](https://nodejs.org/) >=24
- [Git](https://git-scm.com/)

You will need a [Klave](https://klave.com) account to deploy your application using this SDK

## Installation

To install the Klave SDK, use the following command:

```bash
# Using npm
npm install @klave/sdk --save-dev

# Using yarn
yarn add @klave/sdk --dev
```

## Getting Started

It is recommended to obtain this SDK by using the `create-on-klave` tool to scaffold a fonctioning honest appliation right away

```bash
yarn create on-klave
```

This command will generate a new application after asking a few questions with the necessary configuration files and directory structure.

## Documentation

For comprehensive guides and API references, visit the [Klave Documentation](https://docs.klave.com/).

## Contributing

We welcome contributions to the Klave SDK. Please refer to the [Klave Platform GitHub Repository](https://github.com/klave-network/platform) for guidelines on how to contribute.

## License

This project is licensed under the MIT License. See the [LICENSE](https://github.com/klave-network/platform/blob/main/LICENSE.md) file for details.

## Support

If you encounter any issues or have questions, please reach out through our [Discord community](https://discord.gg/klave) or open an issue on GitHub.

---

*Note: This README provides an overview of the Klave SDK's capabilities and usage. For detailed information and updates, please refer to the official documentation.*
npm package: @klayfee/js
Description: Provides JS client for Klayfee.com, a fee delegation service for Klaytn blockchain.
Author: Kompose Inc
Latest version: 1.0.1

# @klayfee/js [![Build Status](https://travis-ci.com/kompose-app/klayfee-js.svg?branch=master)](https://travis-ci.com/kompose-app/klayfee-js) [![npm](https://img.shields.io/npm/v/@klayfee/js)](https://www.npmjs.com/package/@klayfee/js)

<a href="https://klayfee.com"><img src="https://cl.ly/ad82f43bd2e4/banner.png" width="700px"/></a>

This package is an official CommonJS / Node.js module for a fee delegation service for [Klaytn](https://klaytn.com)network, Klayfee. Please note that this is the first public preview, API might change in future.

**Other packages**

* [klayfee-go](https://github.com/kompose-app/klayfee-go)

### Installation

First, get the package:

```
$ npm install --save @klayfee/js

or

$ yarn add @klayfee/js
```

### Usage

```js
var Klayfee = require('@klayfee/js')

// baobabClient initilizes a client for Baobab testnet,
// when using ClientCypress please provide real API key.
var baobabClient = new Klayfee.ClientBaobab({
    apiKey: 'any'
});

// sign a desired transaction with private key of sender, using Caver.js
let { rawTransaction } = await caver.klay.accounts.signTransaction({
    type: 'FEE_DELEGATED_VALUE_TRANSFER',
    from: senderAddress,
    to: toAddress,
    gas: '300000',
    value: caver.utils.toPeb('0.00001', 'KLAY'),
}, senderPrivateKey)

// finally, submit the transaction to fee delegation service using the client
var result = await baobabClient.sendRawTx(rawTransaction)
console.log(result)
```

### License

MIT