Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thuglabs/csv-to-json-for-candy-machine
Generate JSON metadata files from CSV file. For further use with metaplex candy-machine
https://github.com/thuglabs/csv-to-json-for-candy-machine
Last synced: 27 days ago
JSON representation
Generate JSON metadata files from CSV file. For further use with metaplex candy-machine
- Host: GitHub
- URL: https://github.com/thuglabs/csv-to-json-for-candy-machine
- Owner: thuglabs
- License: mit
- Created: 2021-09-10T16:16:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-27T11:16:42.000Z (about 3 years ago)
- Last Synced: 2024-11-02T08:30:30.124Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 49
- Watchers: 2
- Forks: 44
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solana-nfts - CSV-to-JSON for Candy Machine
- awesome-solana-nfts-v2 - CSV-to-JSON for Candy Machine
README
# Convert CSV to JSON metadata files
This script generates JSON metadata files for use with [Metaplex Candy Machine](https://github.com/metaplex-foundation/metaplex/tree/master/js/packages/cli) cli.
## How to use
Edit file `src/generate-json.ts` line 18-50 inserting detailes specific for your collection, like art name, descrioption, collection url, creator address.
Replace `assets/data.csv` with your specific CSV file with structure similar to this with first column art index and the rest art attributes (traits)
| Art Index | Attribute A | Attribute B | Attribute C |
| --------- | ----------- | ----------- | ----------- |
| 0 | Black | Yes | C00 |
| 1 | White | Yes | C01 |
| 2 | Red | No | C02 |Run the script
```
yarn
yarn start
```JSON metadata file will be genrated for each row with name `[index].json` within `assets` folder.