open-index/open-npm huggingface dataset:
npm package: @khulnasoft/auth-js
Description: Official client library for Khulnasoft Auth
Author: Khulnasoft
Latest version: 0.0.0

# `auth-js`

An isomorphic JavaScript client library for the [Khulnasoft Auth](https://github.com/khulnasoft/auth) API.

## Docs

- Using `auth-js`: https://khulnasoft.com/docs/reference/javascript/auth-signup
- TypeDoc: https://khulnasoft.github.io/auth-js/v2

## Quick start

Install

```bash
npm install --save @khulnasoft/auth-js
```

Usage

```js
import { AuthClient } from '@khulnasoft/auth-js'

const GOTRUE_URL = 'http://localhost:9999'

const auth = new AuthClient({ url: GOTRUE_URL })
```

- `signUp()`: https://khulnasoft.io/docs/reference/javascript/auth-signup
- `signIn()`: https://khulnasoft.io/docs/reference/javascript/auth-signin
- `signOut()`: https://khulnasoft.io/docs/reference/javascript/auth-signout

### Custom `fetch` implementation

`auth-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

```js
import { AuthClient } from '@khulnasoft/auth-js'

const AUTH_URL = 'http://localhost:9999'

const auth = new AuthClient({ url: AUTH_URL, fetch: fetch })
```

## Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/khulnasoft)

![Watch this repo](https://gitcdn.xyz/repo/khulnasoft/monorepo/master/web/static/watch-repo.gif 'Watch this repo')
npm package: @khulnasoft/cdk
Description: Define your observability as code using the AWS CDK
Author: KhulnaSoft DevSec
Latest version: 0.0.46

# Kengine CDK
[![Documentation][docs_badge]][docs]
[![Latest Release][release_badge]][release]
[![License][license_badge]][license]

Kengine CDK offers the most effective approach to adding observability to a serverless CDK application.


```typescript
kengine.Config.init(stack, {
  apiKey: 'xxxxxx',
});

new Alert("service-errors", {
  parameters: {
    query: {
      filters: [
        filter.inArray("LogLevel", ["ERROR", "WARN"]),
      ],
    },
    channels: [{ type: "slack", targets: ["kengine-alerts"] }]
  },
});
```

## Installation

```
npm i @khulnasoft/cdk
```
## Usage

Get your kengine api key from the [Kengine console](https://console.kengine.khulnasoft.com) or using the [Kengine CLI](https://kengine.khulnasoft.com/docs/cli/install) with the command `kengine iam`. 

```typescript
// Initialize Config, you must do this in a construct before adding querys, alerts and dashboards.
kengine.Config.init(stack, {
  apiKey: 'xxxxxx',
});

// Create Query
const query = new kengine.Query("ColdStarts", {
  description: "optional",
  parameters: {
    datasets: [
      "lambda-logs",
    ],
    calculations: [
      max("@initDuration"),
      p90("@initDuration"),
      min("@initDuration"),
    ],
    filters: [
      eq("@type", "REPORT"),
    ],
  }
});

// Add an alert
query.addAlert({
  enabled: true,
  parameters: {
    frequency: '30mins',
    threshold: gt(500),
    window: '1 hour',
  },
  channels: [{ targets: ['kengine-alerts'], type: 'slack' }],
});

// Create Dashboard
new kengine.Dashboard('ServiceHealth', {
  parameters: {
    widgets: [{ query, type: WidgetType.TIMESERIES}],
  },
});
```

## License

&copy; Kengine Limited, 2023

Distributed under MIT License (`The MIT License`).

See [LICENSE](LICENSE) for more information.

<!-- Badges -->

[docs]: https://kengine.khulnasoft.com/docs/
[docs_badge]: https://img.shields.io/badge/docs-reference-blue.svg?style=flat-square
[release]: https://github.com/khulnasoft/cdk/releases/latest
[release_badge]: https://img.shields.io/github/release/khulnasoft/cdk.svg?style=flat-square&ghcache=unused
[license]: https://opensource.org/licenses/MIT
[license_badge]: https://img.shields.io/github/license/khulnasoft/cdk.svg?color=blue&style=flat-square&ghcache=unused