opticdev/optic
OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.
{ "createdAt": "2018-03-02T17:02:50Z", "defaultBranch": "main", "description": "OpenAPI linting, diffing and testing. Optic helps prevent breaking changes, publish accurate documentation and improve the design of your APIs.", "fullName": "opticdev/optic", "homepage": "", "language": "TypeScript", "name": "optic", "pushedAt": "2025-08-10T23:03:56Z", "stargazersCount": 1511, "topics": [ "api-documentation", "api-linter", "apis", "documentation", "openapi", "openapi3", "swagger" ], "updatedAt": "2025-11-21T20:12:01Z", "url": "https://github.com/opticdev/optic"}
Optic - OpenAPI made easy
Section titled “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
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
Section titled “Install”npm install -g @useoptic/opticLicense
Section titled “License”Optic is MIT Licensed