{"id":20759831,"url":"https://github.com/owsas/imageboss-js","last_synced_at":"2026-03-05T04:34:14.954Z","repository":{"id":40838128,"uuid":"133695518","full_name":"owsas/imageboss-js","owner":"owsas","description":"Typescript/Javascript API for Imageboss","archived":false,"fork":false,"pushed_at":"2023-01-06T03:35:14.000Z","size":1313,"stargazers_count":4,"open_issues_count":13,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-30T01:18:53.311Z","etag":null,"topics":["api","image","imageboss","javascript","reduce","sdk","size","typescript"],"latest_commit_sha":null,"homepage":null,"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/owsas.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}},"created_at":"2018-05-16T16:35:45.000Z","updated_at":"2021-10-31T16:11:26.000Z","dependencies_parsed_at":"2023-02-05T05:30:45.218Z","dependency_job_id":null,"html_url":"https://github.com/owsas/imageboss-js","commit_stats":null,"previous_names":["owsas/imageboss"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/owsas/imageboss-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fimageboss-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fimageboss-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fimageboss-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fimageboss-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owsas","download_url":"https://codeload.github.com/owsas/imageboss-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fimageboss-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30110441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"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":["api","image","imageboss","javascript","reduce","sdk","size","typescript"],"created_at":"2024-11-17T10:08:27.880Z","updated_at":"2026-03-05T04:34:14.921Z","avatar_url":"https://github.com/owsas.png","language":"TypeScript","funding_links":["https://patreon.com/owsas"],"categories":[],"sub_categories":[],"readme":"# ImageBoss Typescript/Javascript API\n\nThis is an unofficial API for interacting with [ImageBoss](https://imageboss.me/) image manipulation via Javascript.\n\n## Installation\n\n```\n$\u003e npm install --save imageboss-js\n```\n\nOr with Yarn:\n```\n$\u003e yarn add imageboss-js\n```\n\n## Usage\n\n```js\nconst { ImageBoss } = require('imageboss-js'); // es5 (node, webpack, browserify, rollup...)\n\nimport { ImageBoss } from 'imageboss-js'; // typescript or es6\n```\n\nAfter importing the library, you can start manipulating images using `getURL`. Let's check out an example:\n\n```ts\nImageBoss.source = 'myimages';\nconst converted = ImageBoss.getURL('/image.png', {\n  operation: 'cover',\n  width: 500,\n  height: 300,\n});\n```\n\n```ts\nconst converted = ImageBoss.getURL('/image.png', {\n  source: 'myimages',\n  operation: 'cover',\n  width: 500,\n  height: 300,\n});\n```\n\nIn this case, `converted` will get the value `\"https://img.imageboss.me/myimages/cover/300x200/image.png\"`\n\nYou can use all the operations supported by `ImageBoss`, like `cdn`, `width`, `height` or `cover`. All options like `format`, `gamma`, `trim` or `threshold` are also supported. Please check out the documentation of `ImageBoss` in order to learn more: https://imageboss.me/docs\n\n### More examples\n```ts\nconst path = '/image.png';\nImageBoss.source = 'myimages';\n\n// get image url using cover + options\nconst converted = ImageBoss.getURL(path, {\n  operation: 'cover:center',\n  width: 500,\n  height: 300,\n});\n\n// get image url with given width\nconst converted = ImageBoss.getURL(path, {\n  operation: 'width',\n  width: 300,\n});\n\n// get image url with given height\nconst converted = ImageBoss.getURL(path, {\n  operation: 'height',\n  height: 300,\n});\n\n// get image from a CDN, with compression,\n// orientation detection and progressive scans\nconst converted = ImageBoss.getURL(path, {\n  operation: 'cdn',\n});\n\n// using any of ImageBoss' options\nconst converted = ImageBoss.getURL(path, {\n  operation: 'width',\n  width: 700,\n  options: 'threshold:125'\n});\n\n// using multiple options\nconst converted = ImageBoss.getURL(path, {\n  operation: 'width',\n  width: 700,\n  options: 'blur:2,grayscale:true'\n});\n```\n\n## Dev mode\n\nClone this repo, and start adding your code in the `index.ts` file.\nWhen you are done, write the tests in the `index.test.ts` file. For testing, this repo works with [Jest](https://facebook.github.io/jest/).\n\n## Dev Features\n* Testing with Jest\n* Linting with TSLint\n* Works with Typescript\n* Coverage, thanks to Jest\n* Uses deterministic module resolving, with Yarn\n\n## Credits\n\nDeveloped by Juan Camilo Guarín Peñaranda,\nOtherwise SAS, Colombia\n2018\n\n## License\n\nMIT.\n\n## Support us on Patreon\n[![patreon](./repo/patreon.png)](https://patreon.com/owsas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Fimageboss-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowsas%2Fimageboss-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Fimageboss-js/lists"}