{"id":29491944,"url":"https://github.com/zejnilovic/gh-openapi-preview","last_synced_at":"2026-05-08T07:31:31.821Z","repository":{"id":303244704,"uuid":"1014847543","full_name":"Zejnilovic/gh-openapi-preview","owner":"Zejnilovic","description":"A Chrome extension that adds an OpenAPI Preview tab to GitHub’s file view for OpenAPI specs","archived":false,"fork":false,"pushed_at":"2025-07-06T14:50:33.000Z","size":8,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-16T04:55:11.827Z","etag":null,"topics":["chrome-extension","github","openapi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zejnilovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-06T14:28:36.000Z","updated_at":"2025-07-06T14:50:37.000Z","dependencies_parsed_at":"2025-07-06T15:39:20.071Z","dependency_job_id":null,"html_url":"https://github.com/Zejnilovic/gh-openapi-preview","commit_stats":null,"previous_names":["zejnilovic/gh-openapi-preview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zejnilovic/gh-openapi-preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zejnilovic%2Fgh-openapi-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zejnilovic%2Fgh-openapi-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zejnilovic%2Fgh-openapi-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zejnilovic%2Fgh-openapi-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zejnilovic","download_url":"https://codeload.github.com/Zejnilovic/gh-openapi-preview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zejnilovic%2Fgh-openapi-preview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272013589,"owners_count":24858478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-extension","github","openapi"],"created_at":"2025-07-15T15:01:06.650Z","updated_at":"2026-05-08T07:31:31.728Z","avatar_url":"https://github.com/Zejnilovic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub OpenAPI Preview\n\nA Chrome extension that adds an **“OpenAPI Preview”** tab to GitHub’s file view for `.yaml|.yml|.json` OpenAPI specs. Click the tab to open a full-screen modal powered by [Swagger UI](https://swagger.io/tools/swagger-ui/).\n\n## Features\n\n- **Auto-detect** OpenAPI spec files (based on file extension and `openapi: x.y.z` header)\n- **Injects** a new tab alongside **Code** and **Blame** in GitHub’s file toolbar\n- **Renders** the spec in a modal dialog using Swagger UI\n- **Works** on both public and private GitHub repositories\n\n## Installation\n\n1. **Clone** this repository  \n   ```bash\n   git clone https://github.com/Zejnilovic/gh-openapi-preview.git\n   cd gh-openapi-preview\n2. **Fetch Swagger UI assets**\n   ```bash\n   git clone https://github.com/swagger-api/swagger-ui.git tmp-swagger\n   cp tmp-swagger/dist/swagger-ui-bundle.js .\n   cp tmp-swagger/dist/swagger-ui-standalone-preset.js .\n   cp tmp-swagger/dist/swagger-ui.css .\n   rm -rf tmp-swagger\n   ```\n3. **Load in Chrome**\n   * Open `chrome://extensions/`\n   * Enable **Developer mode**\n   * Click **Load unpacked** and select this folder\n\n## Usage\n\n1. Browse to any GitHub “blob” page ending in `.yaml`, `.yml`, or `.json`, for example:\n   `https://github.com/yourorg/yourrepo/blob/main/openapi.yaml`\n2. Click the **OpenAPI Preview** tab in the file toolbar.\n3. Explore your API spec in the Swagger UI modal. Close it with the **×** or by clicking outside the dialog.\n\n## Attribution\n\n* This extension uses **Swagger UI** for rendering your OpenAPI definitions.\n* Original project: [swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui)\n* Licensed under the **Apache 2.0 License** (see [LICENSE-2.0.txt](https://github.com/swagger-api/swagger-ui/blob/master/LICENSE)).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzejnilovic%2Fgh-openapi-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzejnilovic%2Fgh-openapi-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzejnilovic%2Fgh-openapi-preview/lists"}