open-index/open-npm huggingface dataset:
npm package: @talak-web3/orgs
Description: Organization and team management for Web3 applications.
Author: Dagim Abebe
Latest version: 1.0.2
Deprecated: This package is deprecated. Import types directly from @talak-web3/types instead. This package will be removed in the next major version.

# @talak-web3/orgs

Organization and team management for Web3 applications.

## Installation

```bash
npm install @talak-web3/orgs
# or
yarn add @talak-web3/orgs
# or
pnpm add @talak-web3/orgs
```

## Features

### Organization Management

```typescript
import { createOrgManager } from '@talak-web3/orgs';

const orgs = createOrgManager();

// Create organization
const org = await orgs.create({
  name: 'My DAO',
  description: 'A decentralized organization',
});

// Add members
await orgs.addMember(org.id, {
  address: '0x1111111111111111111111111111111111111111',
  role: 'admin',
});
```

### Role-Based Access

```typescript
// Define roles
const roles = {
  admin: ['*'],
  member: ['read', 'propose'],
  guest: ['read'],
};

// Check permissions
const canPropose = await orgs.hasPermission(org.id, user.address, 'propose');
```

### Treasury Management

```typescript
// Get treasury balance
const balance = await orgs.getTreasuryBalance(org.id);

// Create proposal
const proposal = await orgs.createProposal({
  orgId: org.id,
  title: 'Fund Project X',
  amount: '1000',
  token: 'USDC',
});
```

## License

MIT
npm package: @talak-web3/plugins
Description: Plugin system for extending talak-web3 functionality.
Author: Dagim Abebe
Latest version: 1.0.2

# @talak-web3/plugins

Plugin system for extending talak-web3 functionality.

## Installation

```bash
npm install @talak-web3/plugins
# or
yarn add @talak-web3/plugins
# or
pnpm add @talak-web3/plugins
```

## Creating a Plugin

```typescript
import { definePlugin } from '@talak-web3/plugins';

const myPlugin = definePlugin({
  name: 'my-plugin',
  version: '1.0.0',
  
  setup(context) {
    // Plugin initialization
    context.on('auth:login', (user) => {
      console.log(`User ${user.address} logged in`);
    });
    
    return {
      // Expose plugin API
      customMethod: () => {
        // Your logic here
      },
    };
  },
});

export default myPlugin;
```

## Using Plugins

```typescript
import { createTalakClient } from 'talak-web3';
import myPlugin from './my-plugin';

const client = createTalakClient({
  plugins: [myPlugin],
});

// Use plugin API
client.plugins['my-plugin'].customMethod();
```

## Official Plugins

- `@talak-web3/plugin-siwe` - SIWE authentication
- `@talak-web3/plugin-gasless` - Gasless transactions
- `@talak-web3/plugin-multisig` - Multi-signature support

## License

MIT
npm package: @talak-web3/realtime
Description: Real-time updates via WebSocket for blockchain events.
Author: Dagim Abebe
Latest version: 1.0.2

# @talak-web3/realtime

Real-time updates via WebSocket for blockchain events.

## Installation

```bash
npm install @talak-web3/realtime
# or
yarn add @talak-web3/realtime
# or
pnpm add @talak-web3/realtime
```

## Usage

```typescript
import { createRealtimeClient } from '@talak-web3/realtime';

const realtime = createRealtimeClient({
  url: 'wss://ws.talak.dev',
});

// Subscribe to new blocks
realtime.subscribe('block', (block) => {
  console.log('New block:', block.number);
});

// Subscribe to address transactions
realtime.subscribe('transactions', {
  address: '0x1111111111111111111111111111111111111111',
}, (tx) => {
  console.log('New transaction:', tx.hash);
});

// Subscribe to contract events
realtime.subscribe('events', {
  address: '0x1111111111111111111111111111111111111111',
  event: 'Transfer',
}, (event) => {
  console.log('Transfer:', event);
});
```

## Features

- Automatic reconnection
- Event filtering
- Multi-chain support
- Typed events

## License

MIT
npm package: @talak-web3/templates
Description: Programmatic project templates used by **`@talak-web3/cli`** when you run `talak-web3 init`. Each template is a map of relative file paths to file contents (strings).
Author: Dagim Abebe
Latest version: 1.0.1

# @talak-web3/templates

Programmatic project templates used by **`@talak-web3/cli`** when you run `talak-web3 init`. Each template is a map of relative file paths to file contents (strings).

## What’s included

- **`nextjs`** — Minimal `package.json` with Next.js, React, and `@talak-web3/core` / `@talak-web3/hooks`, plus a starter `talak-web3.config.ts`.
- **`hono`** — Minimal `package.json` with Hono and `@talak-web3/core`.

## Usage (library)

```ts
import { Templates } from '@talak-web3/templates';

const pkg = Templates.nextjs.files['package.json'];
```

The CLI merges these files into the target directory when initializing a project.

## Development

```bash
pnpm --filter @talak-web3/templates build
pnpm --filter @talak-web3/templates typecheck
```

## License

MIT
npm package: @talak-web3/test-utils
Description: Testing utilities for talak-web3 packages
Author: Dagim Abebe
Latest version: 1.0.2

# @talak-web3/test-utils

Shared testing utilities for the talak-web3 monorepo: factories, mocks, and small helpers so packages can test auth, sessions, and async flows consistently.

## Installation

```bash
pnpm add -D @talak-web3/test-utils
```

## Exports

- **Factories** — `createMockWallet`, `generateWalletAddress`, `createMockSiweMessage`, `generateSiweMessage`, `createMockSession`, `createMockTokenPair`
- **Mocks** — `MockRedis`, `createMockRedis`, `MockNonceStore`, `MockRefreshStore`, `MockRevocationStore`
- **Helpers** — `setupTestContext`, `createTestContext`, `generateTestKeys`, `generateTestSecret`, `waitFor`, `sleep`, `retryAsync`, `expectError`, `expectAuthError`
- **Types** — `MockWallet`, `MockSession`, `TestContext`

## Example

```ts
import { createMockWallet, setupTestContext } from '@talak-web3/test-utils';

const wallet = createMockWallet();
const ctx = await setupTestContext();
```

## Development

```bash
pnpm --filter @talak-web3/test-utils build
pnpm --filter @talak-web3/test-utils test
```

## License

MIT