{"id":26784628,"url":"https://github.com/image-js/image-dataset-demo","last_synced_at":"2025-06-14T11:38:14.852Z","repository":{"id":175943398,"uuid":"654505099","full_name":"image-js/image-dataset-demo","owner":"image-js","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T14:43:10.000Z","size":62074,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T04:48:13.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://image-js.github.io/image-dataset-demo/","language":"JavaScript","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/image-js.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-16T09:18:49.000Z","updated_at":"2024-06-07T14:43:13.000Z","dependencies_parsed_at":"2024-01-19T09:07:28.059Z","dependency_job_id":"904d4444-3a2d-4890-b58d-c4d808c5c008","html_url":"https://github.com/image-js/image-dataset-demo","commit_stats":null,"previous_names":["cheminfo/image-dataset-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fimage-dataset-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fimage-dataset-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fimage-dataset-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fimage-dataset-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/image-js","download_url":"https://codeload.github.com/image-js/image-dataset-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246171441,"owners_count":20734999,"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":"2025-03-29T10:29:14.209Z","updated_at":"2025-03-29T10:29:14.713Z","avatar_url":"https://github.com/image-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Adding more images\n\nAdd the images in a folder in docs\n\nCreate the toc file using: `node src/buildToc.mjs`\n\n## Demo files\n\nFiles are available at the following URL https://image-js.github.io/image-dataset-demo/\n\nIt is possible to load all the files at once using 'file-collection'\n\n```js\nconst url = 'https://image-js.github.io/image-dataset-demo/';\nconst fileCollection = new FileCollection();\nawait fileCollection.appendWebSource(url);\n```\n\nThere is a 'toc' file that could be placed in a menu:\n\n- https://image-js.github.io/image-dataset-demo/toc.json\n\nThis toc file contains 'source' that could be a props of a react component.\n\n```js\nimport { FileCollection } from 'file-collection';\n\nconst source = {\n  baseURL: 'https://image-js.github.io/image-dataset-demo/',\n  entries: [\n    {\n      relativePath: 'cats/cats-eyes-2944820_1280.jpg',\n    },\n  ],\n};\nconst fileCollection = new FileCollection();\nawait fileCollection.appendSource(source);\nconst files = [...fileCollection];\n\nconst arrayBuffer = await files[0].arrayBuffer();\n\nconsole.log(files);\nconsole.log(arrayBuffer.byteLength);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fimage-dataset-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimage-js%2Fimage-dataset-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fimage-dataset-demo/lists"}