{"id":15204173,"url":"https://github.com/socialtables/obj2json","last_synced_at":"2025-10-02T21:30:49.401Z","repository":{"id":66176501,"uuid":"43172068","full_name":"socialtables/obj2json","owner":"socialtables","description":"Convert Wavefront .obj files to Three.js JSON format, using Blender","archived":true,"fork":false,"pushed_at":"2023-06-29T21:15:41.000Z","size":6453,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-01-18T12:18:25.451Z","etag":null,"topics":["flock","library","product-3d","renovation","three-js"],"latest_commit_sha":null,"homepage":"","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/socialtables.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-25T19:47:13.000Z","updated_at":"2024-03-14T15:54:20.000Z","dependencies_parsed_at":"2024-11-16T21:38:55.669Z","dependency_job_id":null,"html_url":"https://github.com/socialtables/obj2json","commit_stats":{"total_commits":35,"total_committers":7,"mean_commits":5.0,"dds":"0.34285714285714286","last_synced_commit":"efd40b605291909ad165aa2d4ab09dbeb2626421"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialtables%2Fobj2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialtables%2Fobj2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialtables%2Fobj2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socialtables%2Fobj2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socialtables","download_url":"https://codeload.github.com/socialtables/obj2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235043606,"owners_count":18927006,"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":["flock","library","product-3d","renovation","three-js"],"created_at":"2024-09-28T05:23:23.059Z","updated_at":"2025-10-02T21:30:47.398Z","avatar_url":"https://github.com/socialtables.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obj2json\n\n[![Circle CI](https://circleci.com/gh/socialtables/obj2json.png?circle-token=9489f3523a92a326b6f027880c3900b2b91fa794)](https://circleci.com/gh/socialtables/obj2json)\n\nConvert Wavefront .obj files to Three.js JSON format, using\n[Blender](http://www.blender.org) and its Python API. Bundles the\n[Three.js exporter](https://github.com/mrdoob/three.js/tree/master/utils/exporters/blender/)\nalong with a custom script to drive the import / export.\n\nExample:\n```javascript\nvar path = require(\"path\");\nvar obj2json = require(\"obj2json\");\n// NOTE: The module can detect standard install locations for Blender on Linux\n// and OS X, but also accepts a `blenderPath` option to provide a non-standard path\nvar opts = {\n\tinputFile: path.join(__dirname, \"circle.obj\"),\n\toutputFile: path.join(__dirname, \"circle2.json\")\n};\nobj2json(opts, function(err, outputFilePath) {\n\tif (err) {\n\t\tconsole.error(\"ERROR:\", err);\n\t}\n\telse {\n\t\tconsole.log(\"Output file at:\", outputFilePath);\n\t}\n});\n```\n\nA promise-based interface is also available, based on Node 0.12+ native Promises:\n```javascript\nvar path = require(\"path\");\nvar obj2json = require(\"obj2json/as-promised\");\nvar opts = {\n\tinputFile: path.join(__dirname, \"circle.obj\"),\n\toutputFile: path.join(__dirname, \"circle2.json\")\n};\nobj2json(opts)\n\t.then(function(outputFilePath) {\n\t\tconsole.log(\"Output file at:\", outputFilePath);\n\t})\n\t.catch(function (err) {\n\t\tconsole.error(\"ERROR:\", err);\n\t});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialtables%2Fobj2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialtables%2Fobj2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialtables%2Fobj2json/lists"}