open-index/open-npm huggingface dataset:
npm package: @open-matrix/tree-domain
Description: Headless CQRS domain actor for tree-structured state management
Latest version: 0.1.1

# @open-matrix/tree-domain

Tree data domain actor for Matrix — hierarchical data management on the pub/sub bus.

Part of the [Matrix](https://github.com/hypnotranz/matrix-work-harness) actor system.

## Install

```bash
npm install @open-matrix/tree-domain
```

## License

MIT
npm package: @open-measure/capi
Description: Server-side conversion API for Open Measure
Latest version: 0.1.1

# @open-measure/capi

Server-side Conversions API support for Open Measure.

## Installation

```bash
npm install @open-measure/capi
```

## Usage

```typescript
import { hashEmail, hashPhone, hashUserData } from '@open-measure/capi'

// Hash PII before sending to ad platforms
const hashedEmail = hashEmail('user@example.com')
const hashedPhone = hashPhone('+1-555-123-4567')

// Or hash all user data at once
const userData = hashUserData({
  email: 'user@example.com',
  phone: '+1-555-123-4567',
})
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/cli
Description: Non-interactive CLI for Open Measure
Latest version: 0.1.1

# @open-measure/cli

CLI tool for Open Measure - scaffolding, validation, and diagnostics.

## Installation

```bash
npm install -g @open-measure/cli
# or use with npx
npx open-measure <command>
```

## Commands

### init

Initialize Open Measure in your project:

```bash
npx open-measure init --dest ga4,meta --framework next
```

### doctor

Check your Open Measure configuration:

```bash
npx open-measure doctor
```

### validate

Validate tracking implementation in your codebase:

```bash
npx open-measure validate --src ./src
```

### create-destination

Scaffold a new destination plugin:

```bash
npx open-measure create-destination my-platform
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/dest-ga4
Description: Google Analytics 4 destination for Open Measure
Latest version: 0.1.1

# @open-measure/dest-ga4

Google Analytics 4 destination for Open Measure.

## Installation

```bash
npm install @open-measure/dest-ga4 @open-measure/web
```

## Usage

```typescript
import { createTracker } from '@open-measure/web'
import { ga4 } from '@open-measure/dest-ga4'

const tracker = createTracker({
  destinations: [
    ga4({ measurementId: 'G-XXXXXXXXXX' }),
  ],
})

tracker.track('purchase', {
  transaction_id: 'order_123',
  value: 99.99,
  currency: 'USD',
})
```

## Configuration

```typescript
ga4({
  measurementId: 'G-XXXXXXXXXX', // Required
  debug: false,                   // Enable debug mode
})
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/dest-gtm
Description: Google Tag Manager dataLayer destination for Open Measure
Latest version: 0.1.1

# @open-measure/dest-gtm

Google Tag Manager dataLayer destination for Open Measure.

## Installation

```bash
npm install @open-measure/dest-gtm @open-measure/web
```

## Usage

```typescript
import { createTracker } from '@open-measure/web'
import { gtm } from '@open-measure/dest-gtm'

const tracker = createTracker({
  destinations: [
    gtm({ containerId: 'GTM-XXXXXX' }),
  ],
})

// Events are pushed to dataLayer as om_<event_name>
tracker.track('purchase', {
  transaction_id: 'order_123',
  value: 99.99,
})
// Pushes: { event: 'om_purchase', om_transaction_id: 'order_123', ... }
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/dest-meta
Description: Meta Pixel destination for Open Measure
Latest version: 0.1.1

# @open-measure/dest-meta

Meta (Facebook) Pixel destination for Open Measure.

## Installation

```bash
npm install @open-measure/dest-meta @open-measure/web
```

## Usage

```typescript
import { createTracker } from '@open-measure/web'
import { meta } from '@open-measure/dest-meta'

const tracker = createTracker({
  destinations: [
    meta({ pixelId: '1234567890' }),
  ],
})

tracker.track('purchase', {
  transaction_id: 'order_123',
  value: 99.99,
  currency: 'USD',
})
```

## Configuration

```typescript
meta({
  pixelId: '1234567890', // Required
  debug: false,          // Enable debug mode
})
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/dest-posthog
Description: PostHog destination for Open Measure
Latest version: 0.1.1

# @open-measure/dest-posthog

PostHog destination for Open Measure.

## Installation

```bash
npm install @open-measure/dest-posthog @open-measure/web
```

## Usage

```typescript
import { createTracker } from '@open-measure/web'
import { posthog } from '@open-measure/dest-posthog'

const tracker = createTracker({
  destinations: [
    posthog({ apiKey: 'phc_XXXXXXXXXX' }),
  ],
})

tracker.track('purchase', {
  transaction_id: 'order_123',
  value: 99.99,
})
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/mcp
Description: MCP server for AI-assisted analytics integration
Latest version: 0.1.1

# @open-measure/mcp

MCP (Model Context Protocol) server for Open Measure - AI tool integration.

## Installation

```bash
npm install @open-measure/mcp
```

## Usage

Use with Claude Desktop, Cursor, or other MCP-compatible AI tools.

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/next
Description: Next.js integration for Open Measure
Latest version: 0.1.1

# @open-measure/next

Next.js integration for Open Measure with automatic page tracking.

## Installation

```bash
npm install @open-measure/next
```

## Usage

```tsx
// app/layout.tsx
import { OpenMeasureProvider } from '@open-measure/next'
import { ga4 } from '@open-measure/dest-ga4'

export default function Layout({ children }) {
  return (
    <html>
      <body>
        <OpenMeasureProvider
          destinations={[ga4({ measurementId: 'G-XXXXXXXXXX' })]}
        >
          {children}
        </OpenMeasureProvider>
      </body>
    </html>
  )
}
```

```tsx
// components/checkout.tsx
'use client'
import { useTracker } from '@open-measure/next'

export function CheckoutButton({ orderId, total }) {
  const { track } = useTracker()

  const handlePurchase = () => {
    track('purchase', {
      transaction_id: orderId,
      value: total,
      currency: 'USD',
    })
  }

  return <button onClick={handlePurchase}>Complete Purchase</button>
}
```

## Features

- Automatic page view tracking on route changes
- SSR-safe
- Re-exports all hooks from `@open-measure/react`

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/qa
Description: QA toolkit for Open Measure
Latest version: 0.1.1

# @open-measure/qa

QA toolkit for Open Measure - event inspector and validation.

## Installation

```bash
npm install @open-measure/qa
```

## Usage

```typescript
import { createInspector } from '@open-measure/qa'
import { createTracker } from '@open-measure/web'

// Create inspector
const inspector = createInspector()

// Add to tracker
const tracker = createTracker({
  destinations: [inspector.destination],
})

// Track events
tracker.track('purchase', { transaction_id: 'tx-1', value: 99 })

// Inspect captured events
console.log(inspector.getEvents())
console.log(inspector.getEventsByName('purchase'))

// Clear for next test
inspector.clear()
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/react
Description: React hooks and provider for Open Measure
Latest version: 0.1.1

# @open-measure/react

React hooks and provider for Open Measure.

## Installation

```bash
npm install @open-measure/react @open-measure/web
```

## Usage

```tsx
import { OpenMeasureProvider, useTracker } from '@open-measure/react'
import { ga4 } from '@open-measure/dest-ga4'

// Wrap your app
function App() {
  return (
    <OpenMeasureProvider
      destinations={[ga4({ measurementId: 'G-XXXXXXXXXX' })]}
    >
      <MyComponent />
    </OpenMeasureProvider>
  )
}

// Use in components
function MyComponent() {
  const { track } = useTracker()

  return (
    <button onClick={() => track('button_click', { label: 'cta' })}>
      Click me
    </button>
  )
}
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-measure/web
Description: Core analytics tracker with plugin architecture
Latest version: 0.1.1

# @open-measure/web

Core analytics tracker with plugin architecture.

## Installation

```bash
npm install @open-measure/web
```

## Usage

```typescript
import { createTracker } from '@open-measure/web'
import { ga4 } from '@open-measure/dest-ga4'
import { meta } from '@open-measure/dest-meta'

const tracker = createTracker({
  destinations: [
    ga4({ measurementId: 'G-XXXXXXXXXX' }),
    meta({ pixelId: '1234567890' }),
  ],
})

// Track events
tracker.track('purchase', {
  transaction_id: 'order_123',
  value: 99.99,
  currency: 'USD',
})

// Page views
tracker.page()

// Identify users
tracker.identify('user_123', { email: 'user@example.com' })

// Consent management
tracker.consent({ analytics: true, marketing: false })
```

## Documentation

See the [full documentation](https://github.com/Noster91/measurly#readme) for more details.

## License

MIT
npm package: @open-mercato/client
Description: Typed API client for the Open Mercato platform, generated directly from the monorepo's OpenAPI specification. Full product docs live at https://docs.openmercato.com and the hosted API explorer is available at https://demo.openmercato.com/docs/api. Project
Latest version: 0.3.5

# @open-mercato/client

Typed API client for the Open Mercato platform, generated directly from the monorepo's OpenAPI specification. Full product docs live at https://docs.openmercato.com and the hosted API explorer is available at https://demo.openmercato.com/docs/api. Project homepage: https://github.com/open-mercato/open-mercato.

## Installation

```bash
npm install @open-mercato/client
```

## Usage

```ts
import { createOpenMercatoClient } from '@open-mercato/client'

const client = createOpenMercatoClient({
  baseUrl: 'https://api.your-mercato.com/api',
  accessToken: async () => process.env.OPEN_MERCATO_TOKEN,
})

const { data, error } = await client.GET('/customers/customers/people', {
  params: { query: { page: 1, pageSize: 20 } },
})

if (error) throw new Error(error.message ?? 'Request failed')
console.log('people', data?.items)
```

The call above is fully typed: `data` is inferred from the OpenAPI definition for `/customers/customers/people`. You can also extract the generated type for explicit reuse:

```ts
import type { operations } from '@open-mercato/client'

type ListPeopleResponse = operations['customers_get_customers_customers_people']['responses']['200']['content']['application/json']
```

To discover every available operation name, inspect `keyof operations`:

```ts
import type { operations } from '@open-mercato/client'

type OperationName = keyof operations
// hover OperationName to see strings like 'auth_get_auth_users', 'customers_post_customers_customers_people', etc.
```

### Base URL resolution

If `baseUrl` is omitted the client tries, in order, `OPEN_MERCATO_API_BASE_URL`, `NEXT_PUBLIC_API_BASE_URL`, `NEXT_PUBLIC_APP_URL`, `APP_URL`, then defaults to `http://localhost:3000/api`.

### Authentication

Pass a string or async function via `accessToken`. Values are normalized to `Authorization: Bearer <token>` automatically. You may also register custom `Middleware` when creating the client for advanced flows (retry, tracing, etc.).

## Regenerating types locally

```bash
yarn client:generate
```

This script builds the OpenAPI document from enabled modules, normalizes recursive schemas, and re-runs `openapi-typescript` to refresh `src/generated/openapi.types.ts`.

## Publishing to npm

1. Ensure artifacts are up to date: `yarn client:generate && yarn workspace @open-mercato/client build`.
2. From repo root, publish the workspace:
   ```bash
   npm publish packages/client --access public
   ```
   (Or use `yarn npm publish --access public --workspace @open-mercato/client`).
3. Tag/commit as needed for release automation.

> The package's `files` entry only ships `dist/` and `src/generated/`, so remember to run `tsc` before publishing.