open-index/open-npm huggingface dataset:
npm package: @flypigeon/node
Description: Node.js SDK for sending and managing Pigeon notifications.
Latest version: 0.1.1

# @flypigeon/node

Node.js SDK for the Pigeon Notifications API.

## Install

```bash
npm install @flypigeon/node
```

## Basic Usage

```ts
import { Pigeon } from '@flypigeon/node'

const pigeon = new Pigeon({
  apiKey: process.env.PIGEON_API_KEY!,
  baseUrl: 'https://api.your-domain.com',
})

await pigeon.send({
  userId: 'user-123',
  type: 'welcome',
  title: 'Welcome!',
})
```
npm package: @flypigeon/react
Description: React SDK for realtime Pigeon notifications with SSE and hooks.
Latest version: 0.1.1

# @flypigeon/react

React SDK for Pigeon Notifications.

Includes:
- `PigeonProvider`
- `useNotifications`
- `NotificationBell`

## Install

```bash
npm install @flypigeon/react @flypigeon/shared react react-dom
```

## Basic Usage

```tsx
import '@flypigeon/react/styles.css'
import { PigeonProvider, useNotifications } from '@flypigeon/react'

function App() {
  return (
    <PigeonProvider
      apiUrl="https://api.your-domain.com"
      tokenProvider={async () => 'jwt-token'}
    >
      <Content />
    </PigeonProvider>
  )
}

function Content() {
  const { notifications, unreadCount } = useNotifications()
  return <div>{unreadCount} unread</div>
}
```

The `NotificationBell` styles are shipped in `@flypigeon/react/styles.css`, so import that once in your app entrypoint.