$ show plutov/oq
oq is a terminal-based OpenAPI Specification viewer that allows users to visualize and navigate OpenAPI 3.0, 3.1, and 3.2 specifications in JSON or YAML format. The application reads OpenAPI specs from files or stdin, parses them using the libopenapi library, and presents the information in an interactive terminal UI with views for endpoints, components, and webhooks. Users can navigate using keyboard shortcuts, fold/unfold sections to see details, and cycle between different views. The architecture separates OpenAPI processing logic (in oas.go) from the terminal UI (built with bubbletea), demonstrating good separation of concerns.
The LLM identified 1 files worth highlighting for reuse:
This module handles all OpenAPI specification processing, extracting endpoints, components, and webhooks from the parsed OpenAPI document and formatting them for display. It demonstrates non-obvious skill in handling the complexities of the OpenAPI specification including references, different media types, schema resolution, and stable sorting. The code is well-separated from UI concerns, making it reusable in other Go applications that need to process and display OpenAPI specifications.