{"id":21353341,"url":"https://github.com/rosswaycaster/js3dlook","last_synced_at":"2025-03-16T05:13:10.867Z","repository":{"id":57283935,"uuid":"130094256","full_name":"rosswaycaster/js3dlook","owner":"rosswaycaster","description":"3DLOOK Javascript library","archived":false,"fork":false,"pushed_at":"2023-06-01T04:47:01.000Z","size":652,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T16:40:58.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rosswaycaster.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}},"created_at":"2018-04-18T16:50:28.000Z","updated_at":"2024-09-20T18:33:16.000Z","dependencies_parsed_at":"2022-09-19T23:01:59.135Z","dependency_job_id":null,"html_url":"https://github.com/rosswaycaster/js3dlook","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/rosswaycaster%2Fjs3dlook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosswaycaster%2Fjs3dlook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosswaycaster%2Fjs3dlook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosswaycaster%2Fjs3dlook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosswaycaster","download_url":"https://codeload.github.com/rosswaycaster/js3dlook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826798,"owners_count":20354221,"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-22T03:17:18.020Z","updated_at":"2025-03-16T05:13:10.846Z","avatar_url":"https://github.com/rosswaycaster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js3dlook\n\n3DLOOK JavaScript Library\n\n## Usage\n\nInstall with npm: `npm install --save js3dlook`.\n\nCheck the 3DLOOK documentation for the api-flow sequence.\n\n**Create an instance of the library:**\n\n```js\nimport js3dlook from \"js3dlook\";\n\nconst js3DLOOK = js3dlook(\"iechiem9eeChaiyahf1oHie1jae5ahth8eoCiu8i\"); //SAMPLE KEY -- replace with your own api key\n\nconst store = {}; //object to store needed data\n```\n\n**Upload a front image:**\n\n```js\nconst front_image; //Reference to File\n\njs3DLOOK\n  .upload(front_image)\n  .then(body =\u003e {\n    //store the name of the file (body.name)\n    store.front = body.name;\n  })\n  .catch(err =\u003e {\n    console.log(err);\n  });\n```\n\n**Step 1 - Check the downloaded image to the requirements:**\n\n```js\njs3DLOOK\n  .step({\n    step: 1,\n    angle: 0,\n    image: store.front, //name of file from upload above\n    gender: \"male\",\n    height: 180\n  })\n  .then(body =\u003e {\n    //store the key for future calls\n    store.step1key = body.key;\n  })\n  .catch(err =\u003e {\n    console.log(err);\n  });\n```\n\n**Upload a side image:**\n\n```js\nconst side_image; //Reference to File\n\njs3DLOOK\n  .upload(side_image)\n  .then(body =\u003e {\n    //store the name of the file (body.name)\n    store.side = body.name;\n  })\n  .catch(err =\u003e {\n    console.log(err);\n  });\n```\n\n**Step 2 - Check the downloaded image to the requirements:**\n\n```js\njs3DLOOK\n  .step({\n    step: 2,\n    angle: 0,\n    image: store.side, //name of file from upload above\n    gender: \"male\",\n    height: 180,\n    key: store.step1key\n  })\n  .then(body =\u003e {\n    //store the key for future calls\n    store.step2key = body.key;\n  })\n  .catch(err =\u003e {\n    console.log(err);\n  });\n```\n\n**Complete**\n\n```js\njs3DLOOK\n  .complete({\n    angle: 0,\n    height: 180,\n    gender: \"male\",\n    image_1: store.front, //name of file from upload above\n    image_2: store.side, //name of file from upload above\n    key: store.step1key //name of file from step 1\n  })\n  .then(body =\u003e {\n    //body now holds all of the params you need\n  })\n  .catch(err =\u003e {\n    console.log(err);\n  });\n```\n\n## License\n\nISC.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosswaycaster%2Fjs3dlook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosswaycaster%2Fjs3dlook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosswaycaster%2Fjs3dlook/lists"}