# TypeScript SDK

> For the complete TypeScript SDK documentation, please visit our GitHub repository:

# TypeScript SDK

For the complete TypeScript SDK documentation, please visit our GitHub repository:

**[📦 @streamsdk/typescript on GitHub →](https://github.com/streampayments/streamsdk-typescript)**

## Quick Links

- **[Installation & Quick Start](https://github.com/streampayments/streamsdk-typescript#installation)**
- **[API Documentation](https://github.com/streampayments/streamsdk-typescript#api-documentation)**
- **[Code Examples](https://github.com/streampayments/streamsdk-typescript/tree/main/examples)**
- **[npm Package](https://www.npmjs.com/package/@streamsdk/typescript)**

## Overview

The Stream TypeScript SDK provides a complete Node.js/TypeScript interface for:

- 🔐 Secure API Key authentication
- 👥 Customer (Consumer) management
- 📦 Product catalog management
- 💳 Payment link creation
- 🔄 Subscription handling
- 🧾 Invoice generation
- 🎟️ Coupon & discount management

## Installation

```bash
npm install @streamsdk/typescript
```

## Quick Example

```typescript

const client = StreamSDK.init(process.env.STREAM_API_KEY!);

const result = await client.createSimplePaymentLink({
  name: "Monthly Subscription",
  amount: 99.99,
  consumer: {
    email: "customer@example.com",
    name: "Ahmad Ali",
    phone: "+966501234567",
  },
  product: {
    name: "Premium Plan",
    price: 99.99,
  },
  successRedirectUrl: "https://yourapp.com/success",
  failureRedirectUrl: "https://yourapp.com/failure",
});

console.log("Payment URL:", result.paymentUrl);
```

For complete documentation, examples, and API reference, visit the [GitHub repository](https://github.com/streampayments/streamsdk-typescript).

## Related SDKs

- **[Express.js SDK](/sdks/express)** - Framework adapter for Express.js applications
- **[API Reference](/api)** - REST API documentation
