apisnip
TUI for trimming OpenAPI specifications
TLDR
SYNOPSIS
apisnip input [output]
DESCRIPTION
apisnip is a terminal user interface for selectively trimming OpenAPI specifications. It presents an interactive list of all API endpoints where you can toggle which ones to keep, then generates a smaller specification file containing only the selected endpoints with all necessary $ref references and components preserved.
Written in Rust using Ratatui, apisnip supports both JSON and YAML formats, fuzzy search with weighted scoring, HTTP method syntax highlighting, automatic theme detection, mouse support, and smart grouping of selected endpoints at the top of the list.
PARAMETERS
input
Local file path or remote URL to an OpenAPI specification (required)output
Output file path (default: apisnip.out.yaml)
CAVEATS
Output preserves the original specification structure and ordering. Only endpoints can be selectively included; component schemas are automatically resolved based on selected endpoint references.
HISTORY
apisnip was created by Michiel Roos (Tuurlijk) as an open-source Rust project under the MIT license.

