{"id":15083919,"url":"https://github.com/notwoods/thumbor-es","last_synced_at":"2026-01-21T12:34:38.468Z","repository":{"id":248224403,"uuid":"828121201","full_name":"NotWoods/thumbor-es","owner":"NotWoods","description":"TypeScript Thumbor client for Node, Deno, Bun, \u0026 browsers","archived":false,"fork":false,"pushed_at":"2024-10-08T06:05:47.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T08:20:56.394Z","etag":null,"topics":["deno","image-processing","nodejs","thumbor","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@notwoods/thumbor-es","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotWoods.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":"2024-07-13T07:18:22.000Z","updated_at":"2024-10-08T06:05:50.000Z","dependencies_parsed_at":"2024-07-13T08:32:11.123Z","dependency_job_id":"3dab2855-8161-4b89-ac3c-888251644735","html_url":"https://github.com/NotWoods/thumbor-es","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"6ad5100531d451db87df11fb9852fa2c9064b9b1"},"previous_names":["notwoods/thumbor-es"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Fthumbor-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Fthumbor-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Fthumbor-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotWoods%2Fthumbor-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotWoods","download_url":"https://codeload.github.com/NotWoods/thumbor-es/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225989717,"owners_count":17556031,"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","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":["deno","image-processing","nodejs","thumbor","typescript"],"created_at":"2024-09-25T07:00:23.782Z","updated_at":"2026-01-21T12:34:38.436Z","avatar_url":"https://github.com/NotWoods.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# thumbor-es\n\n_TypeScript Thumbor client for Node, Deno, Bun, \u0026 browsers_\n\n[![JSR](https://jsr.io/badges/@notwoods/thumbor-es)](https://jsr.io/@notwoods/thumbor-es)\n\nTypeScript client for the\n[Thumbor image service](https://github.com/globocom/thumbor) which allows you to\nbuild URIs in an expressive fashion using a fluent API.\n\nThis library is fully compatible with all JS runtimes (using the\n[Web Cryptography API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)).\nIt's heavily based on Square's [Pollexor](https://github.com/square/pollexor)\nlibrary for Java.\n\nDocumentation for the different options and filters can be found in the JSDoc\nand [on JSR](https://jsr.io/@notwoods/thumbor-es/doc/filters).\n\n## Installation\n\n```sh\n# deno\ndeno add jsr:@notwoods/thumbor-es\n\n# npm\nnpm install thumbor-es\n```\n\n## Examples\n\n```ts\n// Without encryption:\nconst url = await buildThumborUrl({ image: \"http://example.com\" });\n\n// With encryption:\nconst url = await buildThumborUrl({ image: \"http://example.com\", key: \"key\" });\n```\n\n```ts\nconst url = await buildThumborUrl({\n  image: \"http://example.com/image.png\",\n  resize: { width: 48, height: 48 },\n});\n// Produces: /unsafe/48x48/example.com/image.png\n\nconst url = await buildThumborUrl({\n  image: \"http://example.com/image.png\",\n  crop: { top: 10, left: 10, bottom: 90, right: 90 },\n  resize: { width: 40, height: 40 },\n  smart: true,\n});\n// Produces: /unsafe/10x10:90x90/smart/40x40/example.com/image.png\n\nconst url = await buildThumborUrl({\n  image: \"http://example.com/image.png\",\n  crop: { top: 5, left: 5, bottom: 195, right: 195 },\n  resize: { width: 95, height: 95 },\n  align: { horizontal: \"bottom\", vertical: \"right\" },\n});\n// Produces: /unsafe/5x5:195x195/right/bottom/95x95/example.com/image.png\n\nconst url = await buildThumborUrl({\n  image: \"http://example.com/image.png\",\n  resize: { width: 200, height: 100 },\n  filters: [\n    roundCorner(10),\n    watermark(\n      await buildThumborUrl({\n        image: \"http://example.com/overlay1.png\",\n        resize: { width: 200, height: 100 },\n      }),\n    ),\n    watermark(\n      await buildThumborUrl({\n        image: \"http://example.com/overlay2.png\",\n        resize: { width: 50, height: 50 },\n      }),\n      { x: 75, y: 25 },\n    ),\n    quality(85),\n  ],\n});\n// Produces: /unsafe/200x100/filters:round_corner(10,255,255,255):watermark(/unsafe/200x100/example.com/overlay1.png,0,0,0):watermark(/unsafe/50x50/example.com/overlay2.png,75,25,0):quality(85)/example.com/background.png\n```\n\n## Comparison to other libraries\n\nthumbor-es has a JavaScript-style API with an options object, unlike other older\nlibraries using Java-style builder classes. It's also built with the latest\nbrowsers in mind, and is tinier, faster, and has 100% test coverage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotwoods%2Fthumbor-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotwoods%2Fthumbor-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotwoods%2Fthumbor-es/lists"}