Terminal OpenAPI documentation viewer π
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)
$ go install github.com/lusingander/topi@latest
(require Go 1.18+)
$ topi <path>
path
can be local file path or remote URL.
common keybindings for all pages
Key | Description |
---|---|
Backspace | back to perv page |
Ctrl+c | quit |
? | show help 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 |
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 |
MIT