# Getting Started

> Install and configure @anymux/indexeddb.

Source: https://anymux-docs.n.yatsyk.com/docs/indexeddb/getting-started

# Getting Started

## Installation

```bash
pnpm add @anymux/indexeddb
```

## Basic Usage

```ts
import { IndexedDbFileSystem } from "@anymux/indexeddb";

const fs = new IndexedDbFileSystem({ dbName: "my-app-fs" });

// Write a file
await fs.writeFile("/notes.txt", new TextEncoder().encode("Hello!"));

// Read it back
const content = await fs.readFile("/notes.txt");

// List directory
const entries = await fs.readDir("/");
```
