{"id":18258605,"url":"https://github.com/whizzes/mince","last_synced_at":"2026-05-02T03:07:51.333Z","repository":{"id":167999621,"uuid":"596400020","full_name":"whizzes/mince","owner":"whizzes","description":"Mince is a browser utility to reduce image sizes before sending them through HTTP requests using WASM and Rust","archived":false,"fork":false,"pushed_at":"2023-05-28T23:46:45.000Z","size":2675,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T23:26:42.408Z","etag":null,"topics":["compression","image","management","resizing","rust","wasm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@whizzes/mince","language":"Rust","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/whizzes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_MIT","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-02-02T05:02:14.000Z","updated_at":"2023-05-27T05:55:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dba4b0f-0393-4097-97ca-d604ba18f1b1","html_url":"https://github.com/whizzes/mince","commit_stats":null,"previous_names":["whizzes/mince"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/whizzes/mince","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizzes%2Fmince","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizzes%2Fmince/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizzes%2Fmince/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizzes%2Fmince/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whizzes","download_url":"https://codeload.github.com/whizzes/mince/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whizzes%2Fmince/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["compression","image","management","resizing","rust","wasm"],"created_at":"2024-11-05T10:33:00.223Z","updated_at":"2026-05-02T03:07:51.306Z","avatar_url":"https://github.com/whizzes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mince\nMince comes from \"mincing\" which means taking something that is roughly chopped and then chopping it finely\n\n\u003e **Warning** This package is under heavy development\n\n## Usage\n\n1. Install package\n\n```bash\nnpm install @whizzes/mince\n```\n\n2. Initialize WASM Module\n\n```ts\nimport init from \"@whizzes/mince\";\n```\n\n3. Then use the `Mince` class\n\n```ts\nimport { Mince } from \"@whizzes/mince\";\n\nconst resizeImage = (file: File): Promise\u003cFile\u003e =\u003e {\n    const mince: Mince = await Mince.fromFile(file);\n    const resized: Mince = mince.resize(100, 100);\n    const file: File = resized.toFile();\n\n    // The resulting file is an instance of the Browser's native `File` object\n    const url = URL.createObjectURL(file);\n\n    document.getElementById('image').src = url;\n\n    return file;\n}\n```\n\n## Development\n\n1. Install `wasm-pack`\n\n```bash\ncargo install wasm-pack\n```\n\n## Geckodriver\n\nhttps://github.com/rustwasm/wasm-pack/blob/master/src/test/webdriver/geckodriver.rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhizzes%2Fmince","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhizzes%2Fmince","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhizzes%2Fmince/lists"}