{"id":49513345,"url":"https://github.com/optidash-ai/optidash-node","last_synced_at":"2026-05-01T21:05:55.444Z","repository":{"id":57315786,"uuid":"263743815","full_name":"optidash-ai/optidash-node","owner":"optidash-ai","description":"The official Node integration for Optidash API","archived":false,"fork":false,"pushed_at":"2020-07-01T19:58:46.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T07:37:55.331Z","etag":null,"topics":["image-analysis","image-manipulation","image-optimization","image-processing","image-resizing","optidash"],"latest_commit_sha":null,"homepage":"https://optidash.ai","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/optidash-ai.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}},"created_at":"2020-05-13T21:10:13.000Z","updated_at":"2021-07-14T06:59:47.000Z","dependencies_parsed_at":"2022-09-18T20:52:48.029Z","dependency_job_id":null,"html_url":"https://github.com/optidash-ai/optidash-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/optidash-ai/optidash-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optidash-ai%2Foptidash-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optidash-ai%2Foptidash-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optidash-ai%2Foptidash-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optidash-ai%2Foptidash-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optidash-ai","download_url":"https://codeload.github.com/optidash-ai/optidash-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optidash-ai%2Foptidash-node/sbom","scorecard":{"id":711205,"data":{"date":"2025-08-11","repo":{"name":"github.com/optidash-ai/optidash-node","commit":"138d3ab2f87e6df1f7cec4052169a83fc244efe8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-22T08:14:59.114Z","repository_id":57315786,"created_at":"2025-08-22T08:14:59.114Z","updated_at":"2025-08-22T08:14:59.114Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["image-analysis","image-manipulation","image-optimization","image-processing","image-resizing","optidash"],"created_at":"2026-05-01T21:05:54.694Z","updated_at":"2026-05-01T21:05:55.430Z","avatar_url":"https://github.com/optidash-ai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://optidash.ai\"\u003e\u003cimg src=\"media/logotype.png\" alt=\"Optidash\" width=\"143\" height=\"45\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nOptidash is a modern, AI-powered image optimization and processing API.\u003cbr\u003eWe will drastically speed-up your websites and save you money on bandwidth and storage.\n\u003c/p\u003e\n\n---\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003eThe official Node integration for the Optidash API.\u003c/strong\u003e\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/optidash?style=flat\u0026color=success\"/\u003e\n\u003cimg src=\"https://img.shields.io/node/v/optidash?style=flat\u0026color=success\"/\u003e\n\u003cimg src=\"https://img.shields.io/snyk/vulnerabilities/npm/optidash@1.0.2?style=flat\u0026color=success\"/\u003e\n\u003cimg src=\"https://img.shields.io/github/issues-raw/optidash-ai/optidash-node?style=flat\u0026color=success\"/\u003e\n\u003cimg src=\"https://img.shields.io/npm/l/optidash?style=flat\u0026color=success\"/\u003e\n\u003cimg src=\"https://img.shields.io/twitter/follow/optidashAI?label=Follow%20Us\u0026style=flat\u0026color=success\u0026logo=twitter\"/\u003e\n\u003c/p\u003e\n\n---\n\n### Documentation\nSee the [Optidash API docs](https://docs.optidash.ai/).\n\n### Installation\n```bash\n$ npm install optidash --save\n```\n\n### Quick examples\nOptidash API enables you to provide your images for optimization in two ways - by uploading them directly to the API ([Image Upload](https://docs.optidash.ai/requests/image-upload)) or by providing a publicly available image URL ([Image Fetch](https://docs.optidash.ai/requests/image-fetch)).\n\nYou may also choose your preferred [response method](https://docs.optidash.ai/introduction#choosing-response-method-and-format) on a per-request basis. By default, the Optidash API will return a [JSON response](https://docs.optidash.ai/responses/json-response-format) with rich metadata pertaining to input and output images. Alternatively, you can use [binary responses](https://docs.optidash.ai/responses/binary-responses). When enabled, the API will respond with a full binary representation of the resulting (output) image. This Node module exposes two convenience methods for interacting with binary responses: `.toFile()` and `.toBuffer()`.\n\n#### Image upload\nHere is a quick example of uploading a local file for optimization and processing. It calls `.toJSON()` at a final step and instructs the API to return a JSON response.\n\n```js\nconst Optidash = require(\"optidash\");\n\n// Pass your Optidash API Key to the constructor\nconst opti = new Optidash(\"your-api-key\");\n\n// Upload an image from disk, resize it to 100 x 75,\n// automatically enhance, and adjust sharpness parameter\nopti.upload(\"path/to/input.jpg\")\n    .optimize({\n        compression: \"medium\"\n    })\n    .resize({\n        width: 100,\n        height: 75\n    })\n    .auto({\n        enhance: true\n    })\n    .adjust({\n        unsharp: 10\n    })\n    .toJSON((err, meta) =\u003e {\n        if (err) {\n            return console.log(err);\n        }\n\n        // You'll find the full JSON metadata within the `meta` object\n        if (meta.success) {\n            console.log(meta.output.url);\n        } else {\n            console.log(meta.message);\n        }\n    });\n```\n\n#### Image fetch\nIf you already have your source visuals publicly available online, we recommend using Image Fetch by default. That way you only have to send a JSON payload containing image URL and processing steps. This method is also much faster than uploading a full binary representation of the image.\n\n```js\nconst Optidash = require(\"optidash\");\n\n// Pass your Optidash API Key to the constructor\nconst opti = new Optidash(\"your-api-key\");\n\n// Provide a publicly available image URL with `.fetch()` method,\n// apply Gaussian blur using highly optimized PNG as the output format.\n// We'll also use `.toFile()` method and stream the output image to disk\nopti.fetch(\"https://www.website.com/image.jpg\")\n    .optimize({\n        compression: \"medium\"\n    })\n    .filter({\n        blur: {\n            mode: \"gaussian\",\n            value: 10\n        }\n    })\n    .output({\n        format: \"png\"\n    })\n    .toFile(\"path/to/output.png\", (err, meta) =\u003e {\n        if (err) {\n            return console.log(err);\n        }\n\n        // You'll find the full JSON metadata within the `meta` object\n        if (meta.success) {\n            console.log(meta.output.url);\n        } else {\n            console.log(meta.message);\n        }\n    });\n```\n\n### License\nThis software is distributed under the MIT License. See the [LICENSE](LICENSE) file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptidash-ai%2Foptidash-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptidash-ai%2Foptidash-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptidash-ai%2Foptidash-node/lists"}