{"id":16153257,"url":"https://github.com/danielesteban/imgpocket","last_synced_at":"2025-03-18T19:32:19.384Z","repository":{"id":195266770,"uuid":"692582288","full_name":"danielesteban/imgpocket","owner":"danielesteban","description":"Encode/Decode magic data pockets inside images","archived":false,"fork":false,"pushed_at":"2023-09-18T15:04:12.000Z","size":22,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T23:21:37.882Z","etag":null,"topics":[],"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/danielesteban.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":"2023-09-16T23:37:46.000Z","updated_at":"2023-09-23T01:32:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"89b94085-940f-41ce-9983-d48e3d91a72b","html_url":"https://github.com/danielesteban/imgpocket","commit_stats":null,"previous_names":["danielesteban/imgpocket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielesteban%2Fimgpocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielesteban%2Fimgpocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielesteban%2Fimgpocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielesteban%2Fimgpocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielesteban","download_url":"https://codeload.github.com/danielesteban/imgpocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244288881,"owners_count":20429093,"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":[],"created_at":"2024-10-10T01:10:46.443Z","updated_at":"2025-03-18T19:32:14.375Z","avatar_url":"https://github.com/danielesteban.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"imgpocket\n[![npm-version](https://img.shields.io/npm/v/imgpocket.svg)](https://www.npmjs.com/package/imgpocket)\n==\n\n\u003e Encode/Decode magic data pockets inside images\n\n### Example\n\n[https://codesandbox.io/s/imgpocket-x8jl2q](https://codesandbox.io/s/imgpocket-x8jl2q)\n\n### Installation\n\n```bash\nnpm i imgpocket\n```\n\n### Usage\n\n```js\nimport { encodeString, decodeString } from 'imgpocket';\n\n// Encode:\n\nconst output = await encodeString(inputImage, JSON.stringify({ some: 'data' }));\noutput.toBlob((blob) =\u003e {\n  window.open(URL.createObjectURL(blob));\n});\n\n// Decode:\n\nconst decoded = JSON.parse(await decodeString(encodedImage));\nconsole.log(decoded); // { some: 'data' }\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielesteban%2Fimgpocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielesteban%2Fimgpocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielesteban%2Fimgpocket/lists"}