open-index/open-npm huggingface dataset:
npm package: @dcl/analytics-component
Description: Analytics component for core components library
Latest version: 0.2.8

# Analytics Component (`@dcl/analytics-component`)

A component for sending analytics events to an external API.

## Features

- Send analytics events with environment context
- Error handling and logging
- Configurable API endpoint and authentication

## Usage

```typescript
import { createAnalyticsComponent } from '@dcl/analytics-component'

const analytics = await createAnalyticsComponent(
  { fetch, logs },
  'service-name',
  'prd',
  'https://api.analytics.com/events',
  'your-api-token'
)

await analytics.sendEvent({
  event: 'user_action',
  body: { userId: '123', action: 'click' }
})
```
npm package: @dcl/schema-validator-component
Description: Schema validator component for core components library
Latest version: 0.2.2

# Schema Validator Component (`@dcl/schema-validator-component`)

A component that exposes a middleware to be used to validate JSON schemas in HTTP bodies.

## Features

- Validation of AJV schemas.

## Usage

```typescript
import { createSchemaValidatorComponent } from '@dcl/schema-validator-component'

const schema = {
  type: 'object',
  properties: {
    aTestProp: {
      type: 'string'
    }
  },
  required: ['aTestProp']
}

const { withSchemaValidatorMiddleware } = createSchemaValidatorComponent(schema)

router.post('/v1/test', withSchemaValidatorMiddleware(schema))
```
npm package: @dcodegroup-au/dcode-chat-vue
Description: Frontend vue components for the dcode-laravel-chat package
Latest version: 1.0.21

## Dcode Chat Vue

Vue package for Dcode Chat.

## Local development

Use `pnpm run playground` to start the local playground environment

## NPM

To install the package, run:

```bash
npm install @dcodegroup-au/dcode-chat-vue
```

Published on NPM as `@dcodegroup-au/dcode-chat-vue`.

## CI

as long as a commit message contains one of the following a new release should be published.

- fix: — triggers a patch release (e.g., bug fixes)
- feat: — triggers a minor release (e.g., new features)
- BREAKING CHANGE: in the commit body or ! after type (e.g., feat!:) — triggers a major release