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

# Library Overview

> Overview of the functionalities in the Typescript Client Library

<Note>
  The Lume Typescript Client Library is currently in beta.
  Please reach out to our support team if you have any questions
  or feature requests, or encounter any bugs.
</Note>

## Introduction

The Lume Client Library is accessed via the entry class, `Lume`.

```js theme={null}
import { Lume } from "@lume-ai/typescript-sdk";

const lume: Lume = new Lume("api_key");
```

<Note>
  This Typescript library provides an overview of the classes, methods, and
  models of the Client Library. You can always refer to the ground truth in the
  package bundle itself after installing it.
</Note>

## Search Resources

The Lume Client Library provides methods to search through flows and runs using various filters.

### Search Flows

You can search for flows using the `searchFlows` method. This method accepts filters for name and tags.

```js theme={null}
const flowService = lume.flowService;
const flows = await flowService.searchFlows({
    name: 'example_pipeline',
    tags_filter: {"key":"color","value":"yellow"}
  });
```

For the `tags_filter`, you can chain multiple tags through our boolean operations. You can look for tags with the color yellow and blue.

```js theme={null}
const flows = await flowService.searchFlows({
    name: 'example_pipeline',
    tags_filter: {"or_":[{"key":"color","value":"blue"},{"key":"color","value":"yellow"}]}
  });
```

### Search runs

You can search for runs using the `searchRuns` method. This method accepts filters for name, tags, and version\_id.

```js theme={null}
const runs = await flow.searchRuns({
    tags_filter: {"key":"color","value":"yellow"}
  });
```

## More Information

Refer to the [Client Library Bundle Code](https://www.npmjs.com/package/@lume-ai/typescript-sdk?activeTab=code) to review the workflows and use the corresponding methods in the Typescript Client Library.
