{"id":18354672,"url":"https://github.com/nextbitlabs/onepunch","last_synced_at":"2026-02-28T20:04:09.588Z","repository":{"id":39660054,"uuid":"239974381","full_name":"nextbitlabs/onepunch","owner":"nextbitlabs","description":":boom: Command-line interface to create presentations using web technology.","archived":false,"fork":false,"pushed_at":"2023-03-04T06:00:43.000Z","size":1398,"stargazers_count":14,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-03T21:46:30.679Z","etag":null,"topics":["cli","css","html","onepunch","pdf","pdf-presentations","presentations","slide","slides","web-technologies"],"latest_commit_sha":null,"homepage":"https://github.com/nextbitlabs/onepunch","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextbitlabs.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}},"created_at":"2020-02-12T09:33:20.000Z","updated_at":"2024-04-14T10:07:31.000Z","dependencies_parsed_at":"2025-04-06T12:31:56.317Z","dependency_job_id":null,"html_url":"https://github.com/nextbitlabs/onepunch","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/nextbitlabs/onepunch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextbitlabs%2Fonepunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextbitlabs%2Fonepunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextbitlabs%2Fonepunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextbitlabs%2Fonepunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextbitlabs","download_url":"https://codeload.github.com/nextbitlabs/onepunch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextbitlabs%2Fonepunch/sbom","scorecard":{"id":682288,"data":{"date":"2025-08-11","repo":{"name":"github.com/nextbitlabs/onepunch","commit":"ed01fbd5b4308d2647d4c4419e92c19763c4106f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 2/17 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"47 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T23:34:36.172Z","repository_id":39660054,"created_at":"2025-08-21T23:34:36.172Z","updated_at":"2025-08-21T23:34:36.172Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29951101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","css","html","onepunch","pdf","pdf-presentations","presentations","slide","slides","web-technologies"],"created_at":"2024-11-05T22:04:50.960Z","updated_at":"2026-02-28T20:04:09.564Z","avatar_url":"https://github.com/nextbitlabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onepunch\n\n**onepunch** is a command-line interface to create PDF presentations using web technology.\n\n**onepunch** is designed for designers, it does not provide any default style.\nDesigners can write CSS files and link them in the `index.html`.\n\n### Prerequisites\n\nTo use **onepunch**, you should have installed **node** and **npm** in your system.\nPlease follow the [official instructions](https://www.npmjs.com/get-npm).\n\n### Install\n\nInstall **onepunch** globally with the following command:\n\n```sh\n$ npm install -g @nextbitlabs/onepunch\n```\n\nPlease note that onepunch makes use of [puppeteer](https://github.com/puppeteer/puppeteer/), which will download chromium.\nThis is necessary to print the PDF file.\n\nUpdate **onepunch** to the latest release with:\n\n```sh\n$ npm update -g @nextbitlabs/onepunch\n```\n\n### Create a project\n\n```sh\n$ onepunch init [-n directory-name]\n```\n\nThe command above creates the directory `directory-name` with all the files needed to bootstrap the presentation.\n\nThe configuration file `onepunch.json` contains configuration parameters, with the following available:\n- `width` and `height`, numeric: slide width and height in pixels;\n- `progress`, string: available `line`, to show a progress line at the bottom of the page, or `none`, to suppress it;\n- `date`, string: presentation date, used by tags `\u003cspan data-onepunch=\"date\"\u003e\u003c/span\u003e` along the presentation;\n- `slideNumber`, bool: whether to visualize the slide number in tags `\u003cspan data-onepunch=\"slide-number\"\u003e\u003c/span\u003e`.\n\n### View the presentation\n\nInside the project directory, run:\n\n```sh\n$ onepunch serve [-i htmlfile]\n```\n\nThe command above starts a local server and opens the browser, use the arrow keys to see the next and previous slides.\nFlag `-i` (or `--input`) specifies the HTML file to open, it defaults to \"index.html\".\n\n### Print the PDF\n\nInside the project directory, run:\n\n```sh\n$ onepunch print [-i htmlfile] [-o pdffile]\n```\n\nFlag `-i` (or `--input`) specifies the HTML file to print, it defaults to \"index.html\".\nFlag `-o` (or `--output`) specifies the name of the PDF file in output, it defaults to \"index.pdf\".\n\n### Update\nUpdate **onepunch** to the latest release with:\n\n```sh\n$ npm update -g @nextbitlabs/onepunch\n```\n\nTo align the `src` directory of a past presentation to the latest release of **onepunch**,\nfirst update **onepunch** itself with the command above, then use:\n\n```sh\n$ onepunch update\n```\nThis will make any new feature available to the current presentation.\nPlease note that any custom change inside directory `src` will be overwritten.\n\n### Create custom styles\n\nEach slide is created by means of tag `article`, for example:\n\n```html\n\u003cmain\u003e\n\n  \u003c!-- Slide 1 --\u003e\n  \u003carticle\u003e\n    \u003cheader\u003e\n      \u003ch1\u003eMy Presentation Title\u003c/h1\u003e\n    \u003c/header\u003e\n  \u003c/article\u003e\n\n  \u003c!-- Slide 2 --\u003e\n  \u003carticle\u003e\n    \u003cheader\u003e\n      \u003ch1\u003eMy Presentation Title\u003c/h1\u003e\n      \u003cp\u003eWe use web technology to create PDF presentations.\u003c/p\u003e\n    \u003c/header\u003e\n  \u003c/article\u003e\n\n  ...\n\n\u003c/main\u003e\n```\n\nAs usual, designers can define CSS classes to apply custom style.\nFor example, the following class defines a specific grid layout:\n\n```css\n.layout-1 {\n  display: grid;\n  grid-template-rows: minmax(50px, max-content) auto 50px;\n  grid-template-columns: 100%;\n  grid-template-areas:\n    \"A\"\n    \"B\"\n    \"C\";\n}\n```\n\nand can be used in the following way:\n\n```html\n\u003carticle class=\"layout-1\"\u003e\n  \u003cheader style=\"grid-area: A;\"\u003e\n    ...\n  \u003c/header\u003e\n  \u003csection style=\"grid-area: B;\"\u003e\n    ..\n  \u003c/section\u003e\n  \u003cfooter  style=\"grid-area: C;\"\u003e\n    ...\n  \u003c/footer\u003e\n\u003c/article\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextbitlabs%2Fonepunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextbitlabs%2Fonepunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextbitlabs%2Fonepunch/lists"}