{"id":18841607,"url":"https://github.com/subvisual/detris-upload-ipfs","last_synced_at":"2026-01-30T12:30:12.668Z","repository":{"id":39705087,"uuid":"491513449","full_name":"subvisual/detris-upload-ipfs","owner":"subvisual","description":"Repository with a Node script to upload Detris data to IPFS","archived":false,"fork":false,"pushed_at":"2022-08-11T09:00:30.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T10:44:21.563Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subvisual.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}},"created_at":"2022-05-12T12:54:16.000Z","updated_at":"2023-07-24T15:47:13.000Z","dependencies_parsed_at":"2022-08-28T06:23:31.117Z","dependency_job_id":null,"html_url":"https://github.com/subvisual/detris-upload-ipfs","commit_stats":null,"previous_names":["subvisual/detris-upload-ipfs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fdetris-upload-ipfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fdetris-upload-ipfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fdetris-upload-ipfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fdetris-upload-ipfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subvisual","download_url":"https://codeload.github.com/subvisual/detris-upload-ipfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780122,"owners_count":19695734,"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-08T02:51:51.926Z","updated_at":"2025-02-20T04:42:22.212Z","avatar_url":"https://github.com/subvisual.png","language":"JavaScript","readme":"# detris-upload-ipfs\nRepository with a Node script to upload Detris data to IPFS using NFT.Storage.\n\n## Setup\n\nRun\n\n```\nasdf install\nyarn\ncp .envrc.sample .envrc\n```\n\nAnd then setup the `.envrc` with the correct variables.\n\n## Run the script\n\nThis script takes as input the path for a base folder that contains a structure of types of attributes we want to have, and each folder will have the compiled code for that Detris version and a preview image called `preview.png`.\n\nFirst you need to create a structure of folders that matches the path under `detrisMetadata`. The script will look inside each of them and upload it's content to IPFS. Example:\n\n```\n├── border\n│   ├── detris\n│   │  ├── ...\n│   │  └── preview.png\n│   ├── palette76\n│   │   ├── ...\n│   │   └── preview.png\n│   └── palette7998\n│       ├── ...\n│       └── preview.png\n├── border pieces\n│   ├── detris\n│   │   ├── ...\n│   │   └── preview.png\n│   ├── palette76\n│   │   ├── ...\n│   │   └── preview.png\n│   └── palette7998\n│       ├── ...\n│       └── preview.png\n├── inverted\n│   └── detris\n│       ├── ...\n│       └── preview.png\n├── neon\n│   ├── detris\n│   │   ├── ...\n│   │   └── preview.png\n│   ├── palette76\n│   │   ├── ...\n│   │   └── preview.png\n│   └── palette7998\n│       ├── ...\n│       └── preview.png\n├── single\n│   └── detris\n│       ├── ...\n│       └── preview.png\n├── solid\n│   ├── detris\n│   │   ├── ...\n│   │   └── preview.png\n│   ├── palette76\n│   │   ├── ...\n│   │   └── preview.png\n│   └── palette7998\n│       ├── ...\n│       └── preview.png\n└─\n```\n\nThen run `node --trace-warnings uploadToNFTStorage.mjs \u003cpath/to/base/directory/of/folder/structure\u003e`\n\nThe final output represents the CID for the directory that holds the metadata for your collection. Opening `ipfs.io/ipfs/\u003ccid\u003e` should show you the contents of that directory.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fdetris-upload-ipfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubvisual%2Fdetris-upload-ipfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fdetris-upload-ipfs/lists"}