open-index/open-npm huggingface dataset:
npm package: @gridkit/plugins
Description: Official plugins for GridKit Enhanced
Latest version: 1.0.0-alpha.1

# @gridkit/plugins

> **Official plugins for GridKit Enhanced** — enterprise features out of the box

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![npm](https://img.shields.io/npm/v/@gridkit/plugins)](https://www.npmjs.com/package/@gridkit/plugins)

## Installation

```bash
npm install @gridkit/plugins @gridkit/tanstack-adapter
```

## Quick Start

```tsx
import { createEnhancedTable } from '@gridkit/tanstack-adapter'
import { auditLogPlugin, analyticsPlugin, exportPlugin } from '@gridkit/plugins'

const table = createEnhancedTable(tanstackTable, {
  plugins: [
    auditLogPlugin({ destination: '/api/audit' }),
    analyticsPlugin({ provider: 'mixpanel', autoTrack: true }),
    exportPlugin({ formats: ['csv', 'xlsx', 'pdf'] })
  ]
})
```

## Available Plugins

### Audit Log 📝

GDPR/HIPAA/SOX compliant audit logging.

```tsx
auditLogPlugin({
  destination: '/api/audit',
  events: ['row:create', 'row:update', 'row:delete'],
  pii: { mask: ['email', 'ssn'] }
})
```

---

### Analytics 📊

Track interactions with Mixpanel, Amplitude, GA.

```tsx
analyticsPlugin({
  provider: 'mixpanel',
  autoTrack: true,
  customEvents: { 'row:select': 'Table Row Selected' }
})
```

---

### Export 📤

Export to CSV, Excel, PDF, JSON.

```tsx
exportPlugin({
  formats: ['csv', 'xlsx', 'pdf'],
  includeFilteredOnly: true
})

// Usage: table.exportToCSV()
```

---

### Collaboration 👥

Real-time collaboration via WebSockets.

```tsx
collaborationPlugin({
  wsUrl: 'wss://api.example.com/collab',
  showCursors: true
})
```

---

### Offline 📴

Offline-first with background sync.

```tsx
offlinePlugin({
  storage: 'indexeddb',
  syncStrategy: 'background'
})
```

---

### Access Control 🔐

Role-based access control.

```tsx
accessControlPlugin({
  roles: ['admin', 'editor', 'viewer'],
  permissions: {
    admin: ['create', 'read', 'update', 'delete'],
    viewer: ['read']
  }
})
```

---

## Create Custom Plugin

```tsx
const myPlugin = {
  metadata: {
    id: 'my-plugin',
    name: 'My Plugin',
    version: '1.0.0'
  },
  initialize: async (config, context) => {
    context.eventBus.on('row:update', handleRowUpdate)
  },
  destroy: async () => {}
}

table.registerPlugin(myPlugin)
```

## Documentation

- 📖 [Full Documentation](https://github.com/gridkit/gridkit/tree/main/packages/plugins)
- 🎯 [Interactive Demo](https://github.com/gridkit/gridkit/tree/main/apps/demo-article)

## Related Packages

| Package | Description |
|---------|-------------|
| [@gridkit/tanstack-adapter](https://www.npmjs.com/package/@gridkit/tanstack-adapter) | Main adapter |
| [@gridkit/core](https://www.npmjs.com/package/@gridkit/core) | Core engine |

## License

MIT — see [LICENSE](https://github.com/gridkit/gridkit/blob/main/LICENSE)

---

**GitHub:** [github.com/gridkit/gridkit](https://github.com/gridkit/gridkit)
npm package: @gridland/bun
Description: Bun-native terminal runtime for [Gridland](https://gridland.io) — run React TUI apps in your terminal via Bun's FFI bridge to the OpenTUI rendering engine.
Latest version: 0.2.55

# @gridland/bun

Bun-native terminal runtime for [Gridland](https://gridland.io) — run React TUI apps in your terminal via Bun's FFI bridge to the OpenTUI rendering engine.

This is the package you install when you want your React app to render in an actual terminal (as opposed to the browser, which uses `@gridland/web`). It ships with platform-specific native binaries as optional dependencies so only the right one for your OS/arch is downloaded.

## Requirements

- [Bun](https://bun.sh) 1.0 or later (terminal runtime needs Bun's FFI support)

## Install

```bash
bun add @gridland/bun
```

## Usage

```tsx
// src/app.tsx
import { createCliRenderer } from "@gridland/bun"

function App() {
  return (
    <box border padding={1}>
      <text>Hello from the terminal</text>
    </box>
  )
}

createCliRenderer(<App />)
```

```bash
bun src/app.tsx
```

## Compile to a standalone binary

No runtime required — users don't need Bun, Node, or npm installed:

```bash
bun build --compile src/app.tsx --outfile my-app
./my-app
```

## Supported platforms

- macOS (x64, arm64)
- Linux (x64, arm64)

## Documentation

Full docs at [gridland.io/docs](https://gridland.io/docs)

Source: [github.com/thoughtfulllc/gridland](https://github.com/thoughtfulllc/gridland)