> ## Documentation Index
> Fetch the complete documentation index at: https://docs.creem.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Krema

> Unofficial TypeScript SDK for the Creem API with type-safe access to products, licenses, checkouts, and discounts.

## About Krema

Krema is an unofficial TypeScript SDK for the Creem API that provides type-safe access to Creem's payment features. It includes utilities for generating type definitions from your Creem products and managing checkouts, licenses, and discount codes.

### Features

* **Type Generation:** Generate TypeScript type definitions from your Creem API products
* **Checkout Sessions:** Create checkout sessions with type-safe product references
* **License Management:** Activate, validate, and deactivate licenses
* **Discount Codes:** Create and manage percentage and fixed-amount discount codes
* **CLI Tool:** Command-line interface for generating types
* **Configuration:** Support for `.env` files or `.kremarc` configuration file

### Stack

* TypeScript
* Creem API

***

## Resources

<CardGroup>
  <Card title="GitHub Repository" icon="github" href="https://github.com/emirsassan/krema">
    View the source code and documentation on GitHub.
  </Card>

  <Card title="Creem Integration" icon="credit-card" href="/code/sdks/typescript-core">
    Learn about Creem's payment integration.
  </Card>
</CardGroup>
