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

# Get Started with Chonkie

> Get started with Chonkie

Using Chonkie takes two simple steps: First, install the package. Next, start chunking!

<Info>
  This page covers Chonkie Open Source. To get started with our API, visit the
  [API Reference](/api/common/introduction).
</Info>

## Installation

### Python

<CodeGroup>
  ```bash pip theme={"system"}
  pip install chonkie
  ```

  ```bash uv theme={"system"}
  uv add chonkie
  ```
</CodeGroup>

<Note>
  Want more features? Install everything with `pip install "chonkie[all]"`. See
  [Installation](/oss/installation) for more options.
</Note>

### JavaScript

Install the core package for local chunking

<CodeGroup>
  ```bash npm theme={"system"}
  npm install @chonkiejs/core
  ```

  ```bash pnpm theme={"system"}
  pnpm add @chonkiejs/core
  ```

  ```bash bun theme={"system"}
  bun add @chonkiejs/core
  ```

  ```bash yarn theme={"system"}
  yarn add @chonkiejs/core
  ```
</CodeGroup>

<Note>
  Chonkie JS provides local support for TokenChunker, SentenceChunker, RecursiveChunker, FastChunker, TableChunker, SemanticChunker, and CodeChunker. Other chunkers are available through the API.
</Note>

## CHONK! 🦛✨

<CodeGroup>
  ```python Python theme={"system"}
  # First import the chunker you want from Chonkie
  from chonkie import TokenChunker

  # Initialize the chunker
  chunker = TokenChunker() # defaults to using character tokenizer

  # Here's some text to chunk
  text = """Woah! Chonkie, the chunking library is so cool!"""

  # Chunk some text
  chunks = chunker(text)

  # Access chunks
  for chunk in chunks:
    print(f"Chunk: {chunk.text}")
    print(f"Tokens: {chunk.token_count}")
  ```

  ```javascript JavaScript theme={"system"}
  // First import the chunker you want from Chonkie
  import { RecursiveChunker } from "@chonkiejs/core";

  // Create a chunker
  const chunker = await RecursiveChunker.create({
    chunkSize: 512,
    minCharactersPerChunk: 24,
  });

  // Chunk your text
  const chunks = await chunker.chunk(
    "Woah! Chonkie, the chunking library is so cool!"
  );

  // Use the chunks
  for (const chunk of chunks) {
    console.log(chunk.text);
    console.log(`Tokens: ${chunk.tokenCount}`);
  }
  ```
</CodeGroup>
