open-index/open-npm huggingface dataset:
npm package: @karmared/api
Description: ## Install
Latest version: 0.0.2

# Karma API

## Install

```js
# npm install @karmared/api
```
or
```js
# yarn add @karmared/api
```

## Use

If you know email and password:
```js
import Karma from "@karmared/api"

const EMAIL = "example@mail.com", PASSWORD = "...";

const karma = await Karma.login(EMAIL, PASSWORD)
```

or if you know bearer token:
```js
import Karma from "@karmared/api"

const BEARER_TOKEN = "..."

const karma = new Karma({token: BEARER_TOKEN})
```

### Requests

You can see all requests on site [https://my.karma.red/graphql](https://my.karma.red/graphql).

```js
const query = `
{
  viewer {
    id
  }
}`

const response = await karma.request(query)
console.log(response) // {data: {viewer: {id: "..."}}}
```
npm package: @karmared/logger
Description: ## Use dotenv variables ``` LOGSTASH_APP_NAME=karma-logger LOGSTASH_MSG_TYPE=nodejs-logger LOG_LEVEL=info STDOUT_LOG_FORMAT=< simple | logstash >
Author: Nikolay Nozdrin-Plotnitsky
Latest version: 1.1.0

# Logger for nodejs service

## Use dotenv variables
```
LOGSTASH_APP_NAME=karma-logger
LOGSTASH_MSG_TYPE=nodejs-logger
LOG_LEVEL=info
STDOUT_LOG_FORMAT=< simple | logstash >

FILE_LOG=true
FILE_LOG_PATH=debug.log

```
npm package: @karmasoc/graphql-client
Description: GraphQL client transport for accounts
Author: David Yahalomi
Latest version: 0.1.0-beta.11

# @accounts/graphql

*Client side graphql transport for accounts suite*

[![npm](https://img.shields.io/npm/v/@accounts/graphql.svg?maxAge=2592000)](https://www.npmjs.com/package/@accounts/graphql) [![Circle CI](https://circleci.com/gh/js-accounts/graphql.svg?style=shield)](https://circleci.com/gh/js-accounts/graphql) [![Coverage Status](https://coveralls.io/repos/github/js-accounts/graphql/badge.svg?branch=master)](https://coveralls.io/github/js-accounts/graphql?branch=master) ![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)

## Note

This package is under active development and just starting to take shape.
npm package: @karmic/core
Description: A transport agnostic API framework
Latest version: 0.5.1

# @karmic/core

[![Version](https://img.shields.io/npm/v/@karmic/core.svg)](https://www.npmjs.com/package/@karmic/core)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Fcore)](https://david-dm.org/rafamel/karmic?path=packages%2Fcore)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/core.svg)](https://snyk.io/test/npm/@karmic/core)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/core.svg)](https://www.npmjs.com/package/@karmic/core)

> A transport agnostic API framework.

## Install

[`npm install @karmic/core`](https://www.npmjs.com/package/@karmic/core)
npm package: @karmic/http-adapter
Description: Karmic HTTP REST adapter
Latest version: 0.5.1

# @karmic/http-adapter

[![Version](https://img.shields.io/npm/v/@karmic/http-adapter.svg)](https://www.npmjs.com/package/@karmic/http-adapter)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Fhttp-adapter)](https://david-dm.org/rafamel/karmic?path=packages%2Fhttp-adapter)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/http-adapter.svg)](https://snyk.io/test/npm/@karmic/http-adapter)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/http-adapter.svg)](https://www.npmjs.com/package/@karmic/http-adapter)

> *Karmic* HTTP REST adapter.

## Install

[`npm install @karmic/http-adapter`](https://www.npmjs.com/package/@karmic/http-adapter)
npm package: @karmic/intercepts
Description: A collection of Karmic intercept factories
Latest version: 0.5.1

# @karmic/intercepts

[![Version](https://img.shields.io/npm/v/@karmic/intercepts.svg)](https://www.npmjs.com/package/@karmic/intercepts)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Fintercepts)](https://david-dm.org/rafamel/karmic?path=packages%2Fintercepts)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/intercepts.svg)](https://snyk.io/test/npm/@karmic/intercepts)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/intercepts.svg)](https://www.npmjs.com/package/@karmic/intercepts)

> A collection of *Karmic* intercept factories.

## Install

[`npm install @karmic/intercepts`](https://www.npmjs.com/package/@karmic/intercepts)
npm package: @karmic/rest
Description: Karmic REST common package
Latest version: 0.5.1

# @karmic/rest

[![Version](https://img.shields.io/npm/v/@karmic/rest.svg)](https://www.npmjs.com/package/@karmic/rest)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Frest)](https://david-dm.org/rafamel/karmic?path=packages%2Frest)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/rest.svg)](https://snyk.io/test/npm/@karmic/rest)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/rest.svg)](https://www.npmjs.com/package/@karmic/rest)

> *Karmic* REST common package.

## Install

[`npm install @karmic/rest`](https://www.npmjs.com/package/@karmic/rest)
npm package: @karmic/rpc
Description: Karmic RPC common package
Latest version: 0.5.1

# @karmic/rpc

[![Version](https://img.shields.io/npm/v/@karmic/rpc.svg)](https://www.npmjs.com/package/@karmic/rpc)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Frpc)](https://david-dm.org/rafamel/karmic?path=packages%2Frpc)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/rpc.svg)](https://snyk.io/test/npm/@karmic/rpc)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/rpc.svg)](https://www.npmjs.com/package/@karmic/rpc)

> *Karmic* RPC common package.

## Install

[`npm install @karmic/rpc`](https://www.npmjs.com/package/@karmic/rpc)
npm package: @karmic/ws-adapter
Description: Karmic WebSockets RPC adapter
Latest version: 0.5.1

# @karmic/ws-adapter

[![Version](https://img.shields.io/npm/v/@karmic/ws-adapter.svg)](https://www.npmjs.com/package/@karmic/ws-adapter)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Fws-adapter)](https://david-dm.org/rafamel/karmic?path=packages%2Fws-adapter)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/ws-adapter.svg)](https://snyk.io/test/npm/@karmic/ws-adapter)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/ws-adapter.svg)](https://www.npmjs.com/package/@karmic/ws-adapter)

> *Karmic* WebSockets RPC adapter.

## Install

[`npm install @karmic/ws-adapter`](https://www.npmjs.com/package/@karmic/ws-adapter)
npm package: @karmic/ws-client
Description: Karmic WebSockets RPC client
Latest version: 0.5.1

# @karmic/ws-client

[![Version](https://img.shields.io/npm/v/@karmic/ws-client.svg)](https://www.npmjs.com/package/@karmic/ws-client)
[![Build Status](https://img.shields.io/travis/rafamel/karmic/master.svg)](https://travis-ci.org/rafamel/karmic)
[![Coverage](https://img.shields.io/coveralls/rafamel/karmic/master.svg)](https://coveralls.io/github/rafamel/karmic)
[![Dependencies](https://img.shields.io/david/rafamel/karmic.svg?path=packages%2Fws-client)](https://david-dm.org/rafamel/karmic?path=packages%2Fws-client)
[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/@karmic/ws-client.svg)](https://snyk.io/test/npm/@karmic/ws-client)
[![License](https://img.shields.io/github/license/rafamel/karmic.svg)](https://github.com/rafamel/karmic/blob/master/LICENSE)
[![Types](https://img.shields.io/npm/types/@karmic/ws-client.svg)](https://www.npmjs.com/package/@karmic/ws-client)

> *Karmic* WebSockets RPC client.

## Install

[`npm install @karmic/ws-client`](https://www.npmjs.com/package/@karmic/ws-client)
npm package: @karnak19/openapi-codegen-cli
Description: OpenAPI Codegen cli
Author: Basile Vernouillet
Latest version: 3.0.1

# OpenAPI Codegen

## Getting started

1. Add a `openapi-codegen.config.ts` at the root of your project

```ts
// openapi-codegen.config.ts
import { defineConfig } from "@openapi-codegen/cli";
import {
  generateSchemaTypes,
  generateReactQueryComponents,
} from "@openapi-codegen/typescript";

export default defineConfig({
  example: {
    from: {
      source: "github",
      owner: "fabien0102",
      repository: "openapi-codegen",
      ref: "main",
      specPath: "examples/spec.yaml",
    },

    // can be overridden from cli
    outputDir: "src/queries",

    to: async (context) => {
      const filenamePrefix = "example";

      // Generate all the schemas types (components & responses)
      const { schemasFiles } = await generateSchemaTypes(context, {
        filenamePrefix,
      });

      // Generate all react-query components
      await generateReactQueryComponents(context, {
        filenamePrefix,
        schemasFiles,
      });
    },
  },
});
```

2. Expose openapi-codegen in your `package.json`

```diff
--- a/package.json
+++ b/package.json
   "scripts": {
+    "gen": "openapi-codegen",
   }
```

3. Run the generator (`example` is the config key defined in the step 1)

```bash
$ yarn gen example
```

4. Start playing! 🥳