open-index/open-npm huggingface dataset:
npm package: @ondc-sdk/api-server
Description: Express API server for ONDC portals with direct SDK integration
Latest version: 0.1.0

# @ondc-sdk/api-server

Express API server for ONDC portals with direct SDK integration.

## Installation

```bash
pnpm add @ondc-sdk/api-server
```

## Features

- Express server with health endpoint
- API routes for seller operations
- Agent service integration
- Cart and checkout functionality

## Usage

```typescript
import { createServer } from '@ondc-sdk/api-server';

const app = createServer({
  port: 3001,
});

app.listen();
```

## API Endpoints

- `GET /health` - Health check
- `POST /api/cart` - Add item to cart
- `PUT /api/cart/:itemId` - Update cart item
- `POST /api/checkout` - Initiate checkout

## License

MIT
npm package: @ondc-sdk/gateway
Description: MCP-first gateway bridging AI agents with ONDC network
Latest version: 0.1.0

# @ondc-sdk/gateway

ONDC Gateway with MCP server and webhook support.

## Installation

```bash
pnpm add @ondc-sdk/gateway
```

## Features

- **MCP Server**: Model Context Protocol server with ONDC tools
- **Webhook Handler**: Receive and process ONDC webhooks
- **ONDC Client**: Protocol client for ONDC operations
- **Mock Gateway**: Testing utilities

## Usage

### MCP Server

```typescript
import { MCPServer } from '@ondc-sdk/gateway';

const server = new MCPServer({
  port: 3000,
});
await server.start();
```

### Webhook Handler

```typescript
import { WebhookServer } from '@ondc-sdk/gateway';

const webhook = new WebhookServer({
  port: 3001,
  onMessage: (data) => console.log(data),
});
await webhook.start();
```

## License

MIT
npm package: @ondc-sdk/seller-sdk
Description: ONDC seller SDK for AI agent integration
Latest version: 0.1.0

# @ondc-sdk/seller-sdk

Seller SDK for ONDC protocol operations.

## Installation

```bash
pnpm add @ondc-sdk/seller-sdk
```

## Features

- **Search**: Search for products across ONDC network
- **Select**: Select items from search results
- **Init**: Initialize order
- **Confirm**: Confirm order

## Usage

```typescript
import { SellerClient } from '@ondc-sdk/seller-sdk';

const client = new SellerClient({
  gatewayUrl: 'https://gateway.ondc.gov',
  subscriberId: 'your-subscriber-id',
  privateKey: 'your-private-key',
});

// Search products
const results = await client.search({
  query: 'groceries',
  city: 'std:080',
});
```

## License

MIT
npm package: @ondc-sdk/shared
Description: Shared types, crypto, and utilities for ONDC SDK
Latest version: 0.1.1

# @ondc-sdk/shared

Shared utilities, types, and validation for ONDC UCP SDK.

## Installation

```bash
pnpm add @ondc-sdk/shared
```

## Features

- **Crypto**: Ed25519 signing and verification
- **Validation**: JSON schema validation for ONDC/UCP
- **Types**: TypeScript types for ONDC Beckn protocol
- **Config**: Environment configuration loader

## Usage

```typescript
import { signRequest, validateSchema } from '@ondc-sdk/shared';
import type { BecknContext } from '@ondc-sdk/shared';

// Sign a request
const signed = await signRequest(request, privateKey);

// Validate schema
const valid = await validateSchema(data, 'ucp');
```

## License

MIT