{"id":26053618,"url":"https://github.com/curvednebula/apibake-js","last_synced_at":"2025-08-15T22:37:56.496Z","repository":{"id":190844047,"uuid":"683452181","full_name":"curvednebula/apibake-js","owner":"curvednebula","description":"Convert OpenAPI to PDF.","archived":false,"fork":false,"pushed_at":"2024-05-20T19:20:36.000Z","size":542,"stargazers_count":32,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T01:34:29.599Z","etag":null,"topics":["openapi","openapi-documentation","openapi3","pdf-generation"],"latest_commit_sha":null,"homepage":"https://curvednebula.com/apibake","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curvednebula.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-08-26T16:09:46.000Z","updated_at":"2025-07-20T08:29:44.000Z","dependencies_parsed_at":"2024-05-20T20:35:06.101Z","dependency_job_id":"a9b0f44e-223e-427b-9286-3a46f9e1a6ef","html_url":"https://github.com/curvednebula/apibake-js","commit_stats":null,"previous_names":["curvednebula/api-docbaker-js"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/curvednebula/apibake-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curvednebula%2Fapibake-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curvednebula%2Fapibake-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curvednebula%2Fapibake-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curvednebula%2Fapibake-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curvednebula","download_url":"https://codeload.github.com/curvednebula/apibake-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curvednebula%2Fapibake-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270639016,"owners_count":24620645,"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-15T02:00:12.559Z","response_time":110,"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":["openapi","openapi-documentation","openapi3","pdf-generation"],"created_at":"2025-03-08T07:43:24.220Z","updated_at":"2025-08-15T22:37:56.471Z","avatar_url":"https://github.com/curvednebula.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApiBake\n\nConvert OpenAPI spec to PDF. Supports OpenAPI 3.0.0+ json and yaml.\n\n## Quick Start\n\nNode.js 16+ required.\n\n```\nnpm install -g apibake\n\napibake \u003copenapi.json|.yaml|folder-name\u003e [\u003cfile-or-folder2\u003e \u003cfile-or-folder3\u003e ...] [\u003coptions\u003e]\n```\n\n**Options:**\n\n```\n --out \u003cstring\u003e: Output PDF file name.\n --title \u003cstring\u003e: Document title.\n --subtitle \u003cstring\u003e: Document sub title.\n --separate-schemas: When multiple API files parsed, create separate schemas section for each.\n --footer \u003cstring\u003e: Defines content of common page footer. Options: \"page-number\". To turn off: \"\".\n --config \u003cstring\u003e: Path to apibake-config.json. See --export-config.\n --export-config: Save default config into json file for editing.\n -h: Show this help.\n```\n\n## Examples\n\nSpecify title and subtitle for your PDF:\n\n```\napibake openapi.json --title 'REST API Spec' --subtitle 'created with ApiBake'\n```\n\nCombine several OpenAPI specs into one PDF:\n\n```\napibake api1.json api2.yaml --title 'REST API Spec'\napibake dir/with/openapi-specs --title 'REST API Spec'\n```\n\n## Custom config: fonts, colors, page margins.\n\nTo modify default apibake config - first export it into a file:\n\n```\napibake --export-config\n```\n\nModify apibake-config.json and tell apibake to use it:\n\n```\napibake openapi.json --config apibake-config.json\n```\n\nPDF default fonts can be specified by their names:\n\n - Courier\n - Courier-Bold\n - Courier-Oblique\n - Courier-BoldOblique\n - Helvetica\n - Helvetica-Bold\n - Helvetica-Oblique\n - Helvetica-BoldOblique\n - Symbol\n - Times-Roman\n - Times-Bold\n - Times-Italic\n - Times-BoldItalic\n - ZapfDingbats\n\nAlternatively, external font files can be specified. Supported font formats: TrueType (.ttf), OpenType (.otf), WOFF, WOFF2, TrueType Collection (.ttc), and Datafork TrueType (.dfont) fonts.\n\nExample:\n\n```\n{\n  \"font\": {\n    \"baseSize\": 10,\n    \"main\": {\n      \"norm\": {\n        \"face\": \"fonts/Roboto-Regular.ttf\"\n      },\n      \"bold\": {\n        \"face\": \"fonts/Roboto-Bold.ttf\"\n      },\n      \"italic\": {\n        \"face\": \"fonts/Roboto-Italic.ttf\"\n      }\n    },\n    \"mono\": {\n      \"norm\": {\n        \"face\": \"Courier\"\n      },\n      \"bold\": {\n        \"face\": \"Courier-Bold\"\n      },\n      \"italic\": {\n        \"face\": \"Courier-Oblique\"\n      }\n    }\n  },\n  ...\n}\n```\n\nNote: if font file is a collection (.ttc) - then font style must be also specified. Example:\n\n```\n \"font\": {\n    \"main\": {\n      \"norm\": {\n        \"face\": \"fonts/Roboto.ttc\",\n        \"style\": \"Roboto-Regular\"\n      },\n      \"bold\": {\n        \"face\": \"fonts/Roboto.ttc\",\n        \"style\": \"Roboto-Bold\"\n      },\n    },\n    ...\n }\n```\n\n# MIT License\n\nCopyright (c) 2023 CurvedNebula.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurvednebula%2Fapibake-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurvednebula%2Fapibake-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurvednebula%2Fapibake-js/lists"}