# mitsuhiko/insta

A snapshot testing library for rust

Repository: https://github.com/mitsuhiko/insta
Canonical: https://ross.abutalabs.com/products/insta
Homepage: https://insta.rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: snapshot-tests, rust, vscode-extension
Last push: 2026-08-17T11:02:19+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 88, longevity 100
- inputs: {"age_days": 2789, "days_push": 16, "days_rel": 83, "gap_med": 15, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2950, forks 157 (observed 2026-08-28T04:07:31.974743+00:00)

## What it is
Insta is a snapshot (approval) testing library for Rust that asserts values against managed reference snapshots. It includes a companion cargo-insta CLI for reviewing snapshots and a VS Code extension for editor support.

## Use cases
- snapshot test rust functions
- approval testing for complex values
- review changed snapshots interactively
- store inline snapshots in source files
- redact timestamps and random ids in test output
- snapshot test cli output
- serialize snapshots to  yaml toml

## When to choose
- you write rust and want to test large or frequently changing reference values
- you want jest-style snapshot testing in rust
- you need redactions for nondeterministic output
- you want an interactive snapshot review workflow

## When to avoid
- you need simple equality assertions on small values
- your project is not in rust
- you prefer property-based or example-based testing without managed reference files

## Facets
- artifact type: library
- maturity: stable
- function: testing, developer-tools
- domain: testing, developer-tools
- platform: rust, cli, editor-plugin
- tags: snapshot-testing, approval-tests, cargo-insta, vscode-extension, redactions, inline-snapshots

## Member repositories
- mitsuhiko/insta (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.974743+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:42.918033+00:00, confidence not recorded.
  - readme: https://github.com/mitsuhiko/insta (fetched 2026-08-28T04:07:31.974743+00:00, sha 9acd03010e47)
  - homepage: https://insta.rs (fetched 2026-08-29T09:47:58.273909+00:00, sha 804a2ec9a078)
  - site_page: https://insta.rs/docs (fetched 2026-08-29T09:47:58.282660+00:00, sha 4bcfa7bd8385)
  - site_page: https://insta.rs/docs/quickstart (fetched 2026-08-29T09:47:58.288046+00:00, sha bb140a92f1e4)
  - registry_crates: https://crates.io/api/v1/crates/insta (fetched 2026-08-29T09:47:58.290418+00:00, sha b0729b6a4f57)
  - site_page: https://insta.rs/changelog (fetched 2026-08-29T09:47:58.284664+00:00, sha 90e458d9f485)
- Data as of 2026-08-30T08:39:29.467469+00:00.
