---
title: Frustbite
description: Read audio metadata, waveforms and PCM from Dart, powered by Rust.
sidebar:
  label: Introduction
  order: 0
---

Frustbite opens an audio file or a byte buffer and tells you what is inside:
codec and stream info, tags, cover art, a waveform ready to draw, or the fully
decoded PCM. The work is done by a Rust crate through FFI and Dart build hooks,
or through WebAssembly in the browser. The Dart API is pure Dart.

:::note
Stage 1 is read-only. Frustbite supports Android, iOS, Linux, macOS, Windows
and the web. Editing, encoding and a CLI are on the roadmap.
:::

## Install

Add Frustbite to your `pubspec.yaml`:

```yaml
dependencies:
  frustbite: ^0.0.2
```

Native binaries ship inside the package and are picked by Dart build hooks, with no download at build time.

## Read an audio file

```dart
import 'package:frustbite/frustbite.dart';

final audio = Frustbite.fromFile('song.mp3');
try {
  print(audio.info);
  print(audio.tags.title);
  final peaks = audio.waveform(buckets: 200);
  print(peaks.channel(0).length);
} finally {
  audio.dispose();
}
```

## What next?

**[Getting started](/frustbite/getting-started)**

Install, open a source and read its info.

**[Reading audio](/frustbite/reading-audio)**

Info, tags, cover art, waveforms, decoding and async variants.

**[WebAssembly](/frustbite/webassembly)**

Use the byte-based API in browser applications.

**[Formats and build](/frustbite/formats-and-build)**

Supported formats, known limitations and the build options.
