# @aitube/engine

*The engine powering AiTube.at*

## ATTENTION

AiTube is currently in heavy development, and for the moment
the engine is reserved for *internal use by AiTube itself*.

We are sorry for any inconvenience this might cause.

## Installation

To install the package, run the following command:

```bash
npm install @aitube/engine
```

## Getting Started

```typescript
import {
  getCharacterPrompt,
  getCharacterReferencePrompt,
  getPositivePrompt,
  getSpeechBackgroundAudioPrompt,
  getSpeechForegroundAudioPrompt,
  getVideoPrompt,
  deduplicate,
  deduplicatePrompt,
  renderShotToStoryboard,
  renderShotToVideo,
  segmentCategoryPromptPriority,
  type VideoRenderer,
  type StoryboardRenderer,
  type VideoFirstFrameExtractor
} from '@aitube/engine'

```

## Build Instructions

Install [Bun](https://bun.sh/)

Run the following commands:

```bash
bun install

bun run build
```

To publish:

```bash
bun run build

bun run build:declaration

bun run publish
```

## Contributing

We welcome contributions! Please feel free to submit a pull request.

## License

This package is under the MIT License. See `LICENSE` file for more details.
