open-index/open-npm huggingface dataset:
npm package: @stablyai/playwright-reporter
Description: A custom Playwright reporter for StablyAI
Author: StablyAI
Latest version: 1.3.4
Deprecated: broken workspace dependency, use 1.3.5

# @stablyai/playwright-reporter

A Playwright reporter that streams test results to the StablyAI platform in real-time.

## Installation

```bash
npm install @stablyai/playwright-reporter
# or
pnpm add @stablyai/playwright-reporter
```

## Usage

### Basic Configuration

```typescript
// playwright.config.ts
import { defineConfig } from "@playwright/test";
import { stablyReporter } from "@stablyai/playwright-reporter";

export default defineConfig({
  reporter: [
    ["list"], // Built-in terminal output
    stablyReporter({
      apiKey: process.env.STABLY_API_KEY,
      projectId: process.env.STABLY_PROJECT_ID,
    }),
  ],
});
```

### Environment Variables

```bash
# .env
STABLY_API_KEY=your-api-key-here           # Your StablyAI API key
STABLY_PROJECT_ID=your-project-id          # Your project ID
```

**Getting your credentials:**

1. Log in to your StablyAI account at [https://app.stably.ai](https://app.stably.ai).
2. Click your profile picture in the top-right corner.
3. Select **Manage Team** from the menu.
4. Open the **Team API Keys** section.
5. Click **New API Key** and copy both the API key
6. Add them as environment variables:

   ```
   STABLY_API_KEY=your-api-key-here
   STABLY_PROJECT_ID=your-project-id
   ```

_Keep your API key secure. Never share it publicly or commit it to source control._

## Example

See the [example](./example) directory for a complete working example:

```bash
cd example
npx playwright test
```
npm package: @stablyai/playwright-test
Description: Playwright Test wrapper with Stably AI matchers
Latest version: 2.1.13

<p align="center">
  <a href="https://stably.ai">
    <h3 align="center">Stably</h3>
  </a>
</p>

<p align="center">
  Code. Ship. 
Test.

</p>

<p align="center">
  <a href="https://docs.stably.ai/"><strong>Documentation</strong></a> ·
  <a href="https://stably.ai/"><strong>Homepage</strong></a>
</p>
<br/>

# Stably Playwright Test

This package extends Playwright to add new AI functionality.
To get started quickly, please see [AI-assisted setup guide](https://docs.stably.ai/getting-started/sdk-setup-guide). Otherwise continue to read below.

## Installation

We assume you already have Playwright installed. If so you can run:

```shell
npm install @stablyai/playwright-test
```

## SDK

### Setup

Make sure you also get your [api-key](https://auth.stably.ai/account/api_keys) to use the AI features.
Either set the `STABLY_API_KEY` environment variable or programtically call `setApiKey` from `"@stablyai/playwright-test"`

### Usage

1. Replace "@playwright/test" with "@stablyai/playwright-test"
   1. Ex: imports should look like: import { test, expect } from "@stablyai/playwright-test";
2. Simply run tests with `npx playwright test` as you would normally using Playwright

### New Methods

The SDK adds new methods with AI visual assertions, full agent mode, and text extraction. See our [docs](https://docs.stably.ai/stably-sdk/ai-assertions) for more information.

It also includes Google auth bootstrap for test contexts:

```typescript
import { test } from "@stablyai/playwright-test";

test("authenticated flow", async ({ context, page }) => {
  await context.authWithGoogle({
    email: "qa@example.com",
    password: process.env.GOOGLE_TEST_PASSWORD!,
    otpSecret: process.env.GOOGLE_TEST_OTP_SECRET!,
  });

  // Need help obtaining the Google OTP secret?
  // https://docs.stably.ai/stably2/auth/google-otp-secret-helper

  await page.goto("https://myaccount.google.com");
});
```

## Stably Playwright Reporter

The [Stably Playwright Reporter](https://docs.stably.ai/reports-analytics#reports-and-analytics) also comes bundled with this package. Most users will find value in using this reporter for recording test results and having AI diagnostics.

### Setup

First, ensure you have your `STABLY_API_KEY` (secret). If you don't have it, you can get it [here](https://auth.stably.ai/account/api_keys).
Second, ensure that you have your Stably project ID (not a secret). You can get this from your web-app dashboard under settings

In your `playwright.config.ts/js` file add:

```typescript
import { defineConfig } from '@playwright/test';
import { stablyReporter } from '@stablyai/playwright-test';

export default defineConfig({
  ..., // your other config options go here
  reporter: [
    ..., // (optional) other reporters go here
    stablyReporter({ apiKey: process.env.STABLY_API_KEY, projectId: 'abc123' }), // 👈 Stably Reporter
  ]
})
```
npm package: @stablyhq/stably
Description: Stably JS SDK for the web
Latest version: 1.0.2

![Stably Banner](./banner.png)

<h1 align="center"><pre>@stablyhq/stably-node-sdk</pre></h1>

<p align="center">
  <a href="https://www.npmjs.com/package/@mux/mux-node"><img src="https://img.shields.io/npm/v/@stablyhq/stably" title="NPM" /></a>
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/@stablyhq/stably">NPM</a>
</p>

# Installation
`npm install @stablyhq/stably --save`
or
`yarn add @stablyhq/stably`

# Usage

**1) Initialize**

```node
import { Analytics } from 'stablyhq/stably'

const analytics = Analytics("YOUR_WRITE_KEY")
```
You can find your write key at https://app.stably.dev/

**2) Call**

Re-use the above analytics instance and call track with your event name:
```node
analytics.track("account_creation_start")
```

# Development
To build, you can run `npm run build`.

To have updated versions sent with the library, you'll want to first run `npm run gen`

To publish, you can run: `npm publish --access public`

# Contributing
Please feel free to open issues or pull requests. We love any feedback!