{"id":19380748,"url":"https://github.com/aframevr/sample-assets","last_synced_at":"2025-04-23T19:33:53.424Z","repository":{"id":75583116,"uuid":"71561425","full_name":"aframevr/sample-assets","owner":"aframevr","description":":rice_scene: Sample assets for the Inspector.","archived":false,"fork":false,"pushed_at":"2024-09-09T05:04:16.000Z","size":20171,"stargazers_count":9,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T19:46:27.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aframevr.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":"2016-10-21T12:00:36.000Z","updated_at":"2024-09-09T05:04:20.000Z","dependencies_parsed_at":"2023-06-06T23:45:31.329Z","dependency_job_id":null,"html_url":"https://github.com/aframevr/sample-assets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aframevr%2Fsample-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aframevr%2Fsample-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aframevr%2Fsample-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aframevr%2Fsample-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aframevr","download_url":"https://codeload.github.com/aframevr/sample-assets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250499942,"owners_count":21440719,"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-11-10T09:14:43.373Z","updated_at":"2025-04-23T19:33:50.433Z","avatar_url":"https://github.com/aframevr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sample-assets\n\nCurated collection of assets (images, models and sounds) to use in A-Frame.\n\n\u003e Work in progress.\n\n## Folder structure\n\nYou can have as many subfolders as you want in the assets folder, each folder on the tree will be added as tags automatically to the final file. In the following folder structure `noiseperlin.jpg` image will have `tags=[noise, perlin]`:\n\n```\n- noise\n  - perlin\n      noiseperlin.jpg  \n```\n\n### Licenses\n\nInside each assets folder (image/sound/model) you could include a root level `license.txt` that will apply by default to any asset that doesn't contains a specific license. You can override the license for one folder and its subfolders just by including a `license.txt` file.\nIf you want to specify a license for just one file while leaving the default license for the rest of them, just include a `filename.txt` to the same folder of the original file.\n\nFor example:\n\n```\nlicense.txt            [LicenseA]\n- particles             * LicenseA applied\n- noise\n  license.txt          [LicenseB]\n  - perlin              * LicenseB applied\n      noiseperlin.txt  [Specific file license]\n      noiseperlin.jpg   * noiseperlin.txt license\n      perlin0.jpg       * LicenseB applied\n      perlin1.jpg       * LicenseB applied\n```\n\n## JSON Structure\n\nThe generated JSON files for each assets are stored on the `build` folder. They share the same structure:\n- `licenseId`: Index of the license used for this asset\n- `id`: Valid HTML ID for the asset\n- `path`: Relative path to the file\n- `tags`: Array with tags for this asset\n\nExample of JSON file for images:\n\n```json\n{\n  \"licenses\": [\n    \"MIT Three.js project\\n\"\n  ],\n  \"images\": [\n    {\n      \"licenseId\": 0,\n      \"id\": \"brick_bump\",\n      \"path\": \"images/bricks/brick_bump.jpg\",\n      \"tags\": [ \"bricks\" ]\n    }\n  ]\n}\n```\n\n## How to build\n\nTo build the output JSON files for each asset type you should execute the following command:\n\n```bash\nnpm run build\n```\n\n## How to use it\n\nYou can fetch the assets JSON using the following url:\n\nhttps://aframe.io/sample-assets/dist/images.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faframevr%2Fsample-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faframevr%2Fsample-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faframevr%2Fsample-assets/lists"}