---
title: LiteSVM
description:
  Lightning-fast Solana program testing with an in-process VM. Test your
  programs faster without network overhead or validator processes.
---

LiteSVM is a lightweight library for testing Solana programs that works by
creating an in-process Solana VM optimized for program developers. Unlike other
testing approaches that spin up separate validator processes, LiteSVM embeds the
VM inside your tests, making them execute much faster. In a further break from
tradition, it has an ergonomic API with sane defaults and extensive
configurability for those who want it.

## Getting Started

<Cards>
  <Card
    title="Getting Started"
    href="/docs/tools/litesvm/getting-started"
    description="Install LiteSVM and write your first tests."
  />
  <Card
    title="Why LiteSVM"
    href="/docs/tools/litesvm/core-concepts"
    description="Learn why you would want to use LiteSVM for testing."
  />
</Cards>

## Rust

<Cards>
  <Card
    title="Testing Your Program"
    href="/docs/tools/litesvm/testing-your-program"
    description="Learn how to test your own Solana program."
  />
  <Card
    title="Examples"
    href="/docs/tools/litesvm/examples"
    description="Copy-paste solutions for common scenarios and full repository examples."
  />
  <Card
    title="API Reference"
    href="/docs/tools/litesvm/api-reference"
    description="Learn advanced features and custom configurations."
  />
  <Card
    title="Additional Crates"
    href="/docs/tools/litesvm/additional-crates/testing-with-litesvm-utils"
    description="Helper crates for utils, SPL tokens, the loader, and Anchor testing."
  />
</Cards>

## TypeScript

<Cards>
  <Card
    title="Getting Started"
    href="/docs/tools/litesvm/typescript/getting-started"
    description="Use LiteSVM through @solana/kit in your TypeScript tests."
  />
  <Card
    title="Token Testing"
    href="/docs/tools/litesvm/typescript/tokens"
    description="Test SPL tokens with the tokenProgram() plugin."
  />
  <Card
    title="API Reference"
    href="/docs/tools/litesvm/typescript/api-reference"
    description="Learn advanced features and custom configurations."
  />
  <Card
    title="Examples"
    href="/docs/tools/litesvm/typescript/examples"
    description="Copy-paste solutions for common scenarios."
  />
</Cards>

## Resources

- [crates.io](https://crates.io/crates/litesvm) - The LiteSVM Rust crate
- [npm](https://www.npmjs.com/package/@solana/kit-plugin-litesvm) - The
  @solana/kit LiteSVM plugin
- [GitHub](https://github.com/LiteSVM/litesvm) - View the source code
