{"id":30043228,"url":"https://github.com/edwardsharp/peedeeeff","last_synced_at":"2025-08-07T04:57:11.279Z","repository":{"id":301057599,"uuid":"1008030155","full_name":"edwardsharp/peedeeeff","owner":"edwardsharp","description":"just a lil' pdf -\u003e webp converter \u0026 carousel web-component for viewing!","archived":false,"fork":false,"pushed_at":"2025-07-10T02:45:41.000Z","size":411967,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T05:47:49.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://edwardsharp.github.io/peedeeeff/","language":"JavaScript","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/edwardsharp.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,"zenodo":null}},"created_at":"2025-06-24T23:17:36.000Z","updated_at":"2025-07-10T02:45:44.000Z","dependencies_parsed_at":"2025-06-25T00:36:49.238Z","dependency_job_id":null,"html_url":"https://github.com/edwardsharp/peedeeeff","commit_stats":null,"previous_names":["edwardsharp/peedeeeff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edwardsharp/peedeeeff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsharp%2Fpeedeeeff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsharp%2Fpeedeeeff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsharp%2Fpeedeeeff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsharp%2Fpeedeeeff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwardsharp","download_url":"https://codeload.github.com/edwardsharp/peedeeeff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwardsharp%2Fpeedeeeff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269201299,"owners_count":24377460,"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-07T02:00:09.698Z","response_time":73,"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":[],"created_at":"2025-08-07T04:57:08.481Z","updated_at":"2025-08-07T04:57:11.257Z","avatar_url":"https://github.com/edwardsharp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PEE-DEE-EFF\n\njust a lil' pdf -\u003e webp converter \u0026 carousel web-component for viewing!\n\n ![P E E  D E E  E F F](icon.png)\n\n## quickstart\n\nopen `index.html` in your browser! get a handle on the different view options by fiddle'n with the controlz.\n\n### gen your own\n\n```sh\n./pdf2webp.sh path/to/some.pdf\n```\n\nnow there should be .webp files in `gen/` (one for each page of yr pdf).\n\nedit `really-simple.html` and change the `base-path=\"gen/whatever-folder-of-webp-images\"`\n\nnote: .webp images need to follow format `page-000.web` (where 000 is the page number).\n\nif u wanna use this, copy `pee-dee-eff.js` to where ever you host yr other stuff. then on whatever page include the web-component tag and a `\u003cscript /\u003e` (u could just copy/paste pee-dee-eff.js and inline it in a `\u003cscript\u003e` on yr page) like:\n\n```html\n\u003cpee-dee-eff\n    base-path=\"example/undoinganddoing\"\n    pages-per-view=\"4\"\n    direction=\"horizontal\"\n    loop=\"true\"\n    first-last-single=\"false\"\n    background=\"black\"\n\u003e\n\u003c/pee-dee-eff\u003e\n\n\u003cscript src=\"pee-dee-eff.js\"\u003e\u003c/script\u003e\n```\n\n### web component props\n\n| attribute            | type      | options / example values          | default        | required | description                                                                              |\n| -------------------- | --------- | --------------------------------- | -------------- | -------- | ---------------------------------------------------------------------------------------- |\n| `base-path`          | `string`  | `\"./examples/undoinganddoing\"`    | `\".\"`          | yes      | directory where image files like `page-000.webp`, `page-001.webp`, etc. are loaded from. |\n| `pages-per-view`     | `number`  | `1`, `2`, `4`, `6`, etc.          | `2`            | no       | number of images shown per slide. determines the grid layout automatically.              |\n| `direction`          | `string`  | `\"horizontal\"`, `\"vertical\"`      | `\"horizontal\"` | no       | chooses between swipe-to-slide and scroll-down-to-browse modes.                          |\n| `loop`               | `boolean` | `\"true\"`                          | `false`        | no       | whether to loop back to the first slide after the last one, and vice versa.              |\n| `first-last-single` | `boolean` | `\"true\"`                          | `false`        | no       | not currently used in logic, but may be intended for showing single pages at start/end.  |\n| `background`         | `string`  | `\"white\"`, `\"#eeddee\"`, `\"black\"` | `\"white\"`      | no       | background color of each image cell in the grid.                                         |\n\n### pwa \u0026\u0026 cache\n\n- web app Mmanifest for \"Add to Home Screen\" support\n- offline-first image loading with network fallback\n- background caching of images as they load\n\n### generating icons \u0026 favicon\n\na lil' icon generator:\n\n1. open `generate-icons.html`\n2. open `generate-favicon.html`\n2. download png and favicon! 🥹\n\n---\nmade with 💖 in nyc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardsharp%2Fpeedeeeff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwardsharp%2Fpeedeeeff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwardsharp%2Fpeedeeeff/lists"}