Easily automate the creation and updating of contents.json
for WhatsApp stickers! This tool scans the assets
directory of your WhatsApp sticker project and generates the necessary JSON file, saving you time and effort.
- Auto-Generate
contents.json
– No manual edits required! - Cross-Platform Support – Works on both Windows and Linux.
- Simple & Efficient – Just update a few variables and run the script.
- Folder-Based Organization – Automatically detects sticker packs inside
assets
.
- Windows –
generate-content-json.bat
- Linux –
generate-content-json.sh
(tested and verified)
Note: The Windows script is not tested yet.
Ensure jq
is installed:
- Using Chocolatey:
choco install jq
- Using Scoop:
scoop install jq
- Manual Installation: Download from the official jq website and add it to your system's
PATH
.
Install jq
via package manager:
sudo apt-get install jq # Debian/Ubuntu
sudo yum install jq # CentOS/RHEL
sudo dnf install jq # Fedora
Ensure execution permissions for the script:
chmod +x generate-content-json.sh
- Clone the repository:
git clone https://github.com/yusufadji/whatsapp-sticker-json-generator.git cd whatsapp-sticker-json-generator
- Place your sticker files in the
assets
folder.
- Open
generate-content-json.sh
in a text editor and modify the[MODIFY THIS]
variables. - Run:
./generate-content-json.sh
- Open
generate-content-json.bat
and modify theREM [MODIFY THIS]
variables. - Double-click
generate-content-json.bat
to execute.
Organize your project like this:
project-root/
│
├── assets/
│ ├── sticker_pack_1/
│ │ ├── sticker1.png
│ │ ├── sticker2.png
│ │ └── tray.png
│ ├── sticker_pack_2/
│ │ ├── sticker1.png
│ │ └── tray.png
├── generate-content-json.bat
└── generate-content-json.sh
- ✅ Linux script is fully functional
- 🚧 Windows script is not tested yet
- 🚀 Future updates planned!
Want to improve this tool? Feel free to submit pull requests or report issues!
This project is licensed under the MIT License – see the LICENSE file for details.
💡 Make your WhatsApp sticker management effortless! Give this project a ⭐ on GitHub!