{"id":26188435,"url":"https://github.com/34j/ag-psd-psdtool","last_synced_at":"2026-01-31T07:01:46.507Z","repository":{"id":285727025,"uuid":"958995162","full_name":"34j/ag-psd-psdtool","owner":"34j","description":"Export PSDTool(kit)-compatible PSD files with options (visible states) changed using ag-psd","archived":false,"fork":false,"pushed_at":"2026-01-30T14:03:52.000Z","size":25524,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T14:41:14.757Z","etag":null,"topics":["browser","nodejs","psd","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/34j.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-02T05:16:20.000Z","updated_at":"2026-01-30T14:02:50.000Z","dependencies_parsed_at":"2025-04-02T11:25:15.790Z","dependency_job_id":"d5820ba1-2e47-4589-b490-4a610d9ef111","html_url":"https://github.com/34j/ag-psd-psdtool","commit_stats":null,"previous_names":["34j/ag-psd-psdtool"],"tags_count":7,"template":false,"template_full_name":"34j/create-minimal-package","purl":"pkg:github/34j/ag-psd-psdtool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fag-psd-psdtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fag-psd-psdtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fag-psd-psdtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fag-psd-psdtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/34j","download_url":"https://codeload.github.com/34j/ag-psd-psdtool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/34j%2Fag-psd-psdtool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28932548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: 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":["browser","nodejs","psd","typescript"],"created_at":"2025-03-12T00:00:13.549Z","updated_at":"2026-01-31T07:01:46.467Z","avatar_url":"https://github.com/34j.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ag-psd-psdtool\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n[![Code Coverage][codecov-img]][codecov-url]\n[![Commitizen Friendly][commitizen-img]][commitizen-url]\n[![Semantic Release][semantic-release-img]][semantic-release-url]\n\n---\n\n**📘Documentation**: [https://34j.github.io/ag-psd-psdtool/](https://34j.github.io/ag-psd-psdtool/)\n\n**📦️NPM Package**: [https://www.npmjs.com/package/ag-psd-psdtool](https://www.npmjs.com/package/ag-psd-psdtool)\n\n---\n\nExport [PSDTool](https://oov.github.io/psdtool/)([kit](https://oov.github.io/aviutl_psdtoolkit/index.html))-compatible PSD files with options (visible states) changed using [ag-psd](https://github.com/Agamnentzar/ag-psd).\n\n## Installation\n\n```bash\nnpm install ag-psd-psdtool\n```\n\n## Usage\n\nThe code below works on both Node.js and browser environments thanks to the `fetch` API.\n\n```ts\nimport { readPsd } from 'ag-psd'\nimport { getSchema, renderPsd } from 'ag-psd-psdtool'\n\n// Fetch a PSD file\nconst url = 'https://raw.githubusercontent.com/34j/ag-psd-psdtool/refs/heads/main/test/assets/ccchu.psd'\nconst request = await fetch(url)\nconst psd = await request.arrayBuffer()\n\n// 1. Get the schema\nconst schema = getSchema(psd)\nconsole.log(schema)\n\n// 2 . Change the visible states\nconst canvas = renderPsd(psd, { mouth: 'normal' }, { flipx: true })\n```\n\nGenerated canvas:\n\n![canvas](https://raw.githubusercontent.com/34j/ag-psd-psdtool/refs/heads/main/test/generated/ccchu-gen-0-true-false.png)\n\nSchema:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"logo\": {\n      \"type\": [\n        \"string\",\n        \"boolean\"\n      ],\n      \"enum\": [\n        \"logo\",\n        false\n      ],\n      \"default\": \"logo\"\n    },\n    \"nose\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"mouth\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"normal\",\n        \"dot\"\n      ],\n      \"default\": \"normal\"\n    },\n    \"right_eye\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"normal\",\n        \"wink\",\n        \"horizontal\"\n      ],\n      \"default\": \"normal\"\n    }\n  }\n}\n```\n\n[build-img]:https://github.com/34j/ag-psd-psdtool/actions/workflows/release.yml/badge.svg\n[build-url]:https://github.com/34j/ag-psd-psdtool/actions/workflows/release.yml\n[downloads-img]:https://img.shields.io/npm/dt/ag-psd-psdtool\n[downloads-url]:https://www.npmtrends.com/ag-psd-psdtool\n[npm-img]:https://img.shields.io/npm/v/ag-psd-psdtool\n[npm-url]:https://www.npmjs.com/package/ag-psd-psdtool\n[issues-img]:https://img.shields.io/github/issues/34j/ag-psd-psdtool\n[issues-url]:https://github.com/34j/ag-psd-psdtool/issues\n[codecov-img]:https://codecov.io/gh/34j/ag-psd-psdtool/branch/main/graph/badge.svg\n[codecov-url]:https://codecov.io/gh/34j/ag-psd-psdtool\n[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]:https://github.com/semantic-release/semantic-release\n[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]:http://commitizen.github.io/cz-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F34j%2Fag-psd-psdtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F34j%2Fag-psd-psdtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F34j%2Fag-psd-psdtool/lists"}