LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apisnip

TUI for trimming OpenAPI specifications

TLDR

Open a local OpenAPI spec file
$ apisnip [input.yaml]
copy
Trim and save to a specific output file
$ apisnip [input.yaml] [output.yaml]
copy
Open a remote OpenAPI spec from a URL
$ apisnip [https://petstore.swagger.io/v2/swagger.json] [output.yaml]
copy

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.

SEE ALSO

jq(1), yq(1), curl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid