Optic
OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
⚡️ **Keep OpenAPI spec accurate** with automatic schema testing and patches The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2018. It has gained significant community traction with 1,533 stars and 93 forks on GitHub. Key topics include: api-documentation, api-linter, apis, documentation, openapi.
Optic - OpenAPI made easy
🧠 Generate OpenAPI from test traffic
⚡️ Keep OpenAPI spec accurate with automatic schema testing and patches
🤩 Catch Breaking Changes and apply Lint Rules with the same tool
Optic supports $ref and OpenAPI specs split across multiple files. It always
Read Documentation
Demos
https://github.com/user-attachments/assets/b386bb42-39a5-4db0-aea5-c2399588ebb0
https://github.com/user-attachments/assets/bb6af098-6e91-4636-b88c-1c9bc586cce0
https://github.com/user-attachments/assets/1b07bfd9-364c-4bbe-baeb-493bed392cdf
Install
bashnpm install -g @useoptic/optic
⏭️ Get Started!
License
Optic is MIT Licensed
Contributors
Showing top 12 contributors by commit count.