# michaelb/sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages

Repository: https://github.com/michaelb/sniprun
Canonical: https://ross.abutalabs.com/products/sniprun
Language: Rust
License: MIT
License Family: permissive
Topics: code, neovim, runner, languages, interpreter, compiled-language, interpreted-language, partial-evaluators, neovim-plugin, plugin, code-runner, lua, rust, hacktoberfest
Last push: 2026-07-29T19:45:05+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 60, longevity 100
- inputs: {"age_days": 2207, "days_push": 35, "days_rel": 188, "gap_med": 70.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1708, forks 53 (observed 2026-08-28T04:05:25.506396+00:00)

## What it is
Sniprun is a Neovim plugin written in Lua and Rust that runs selected lines or blocks of code independently of the rest of the file, supporting many interpreted and compiled languages. It displays results via virtual text, floating windows, terminals, or notifications, offering REPL-like and Jupyter-notebook-like behavior inside the editor.

## Use cases
- run a code snippet in neovim without saving the file
- quickly test lines of python or rust inside my editor
- jupyter-like notebook workflow in neovim
- run selected visual block of code and see output as virtual text
- REPL-style iterative development for multiple languages
- partially evaluate compiled language code without full project build

## When to choose
- you use Neovim and want fast snippet-by-snippet code execution
- you want REPL-like feedback for interpreted and compiled languages without leaving the editor
- you need flexible result display (virtual text, floating window, terminal, notifications)

## When to avoid
- you use an editor other than Neovim or Vim
- you need full project builds, debugging, or test-suite execution rather than snippet evaluation
- your language is not among the supported interpreters/compilers

## Facets
- artifact type: plugin
- maturity: active
- function: interpreter, developer-tools, cli
- domain: developer-tools, text-editors, programming-languages
- platform: editor-plugin, cross-platform
- tags: neovim, code-runner, repl, jupyter-like, lua, rust

## Member repositories
- michaelb/sniprun (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.506396+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-30T03:37:01.387418+00:00, confidence not recorded.
  - readme: https://github.com/michaelb/sniprun (fetched 2026-08-28T04:05:25.506396+00:00, sha f704db654546)
- Data as of 2026-08-30T08:39:29.467469+00:00.
