Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lusingander/topi

Terminal OpenAPI documentation viewer 🐐
https://github.com/lusingander/topi

bubbletea go openapi openapi-specification openapi3 tui

Last synced: about 2 months ago
JSON representation

Terminal OpenAPI documentation viewer 🐐

Awesome Lists containing this project

README

        

# topi

Terminal OpenAPI documentation viewer 🐐

## About

> topi is still under development... 🐐

topi is the documentation viewer for OpenAPI v3 definitions in the terminal.

(This image show https://github.com/github/rest-api-description)

## Installation

`$ go install github.com/lusingander/topi@latest`

(require Go 1.18+)

## Usage

`$ topi `

> `path` can be local file path or remote URL.

### Keybindings

#### Common

common keybindings for all pages

|Key|Description|
|-|-|
|Backspace|back to perv page|
|Ctrl+c|quit|
|?|show help page|

#### List page

keybindings for list-syle pages

|Key|Description|
|-|-|
|j|cursor down|
|k|cursor up|
|f l|next page|
|b h|prev page|
|g|go to start|
|G|go to end|
|/|Enter filtering mode|
|Enter|(default) select item, (filtering) apply filter|
|Esc|(filtering) cancel filter, (filter applied) remove filter|

#### Document page

keybindings for document pages

|Key|Description|
|-|-|
|j|page down one line|
|k|page up one line|
|f|page down|
|b|page up|
|d|half page down|
|u|half page up|
|Tab|select link|
|x|open selecting link|

specific to the credits page

|Key|Description|
|-|-|
|t|toggle credits list|

## License

MIT