Contribute to the editor
The editor at editor.dicebear.com is built with Vue 3, Vite and PrimeVue. You can find the source files in the dicebear/dicebear repository in the apps/editor folder.
Requirements
Set up locally
Create a fork from the dicebear/dicebear repository.
Clone the project:
git clone https://github.com/<YOUR_GITHUB_USERNAME>/dicebear.gitIf you've set up SSH, you can do this instead:
git clone git@github.com:<YOUR_GITHUB_USERNAME>/dicebear.gitInstall dependencies:
cd dicebear npm installCreate a build:
npm run build
Verifying your changes
You can start the editor locally on your computer with the following command to check your changes:
npm run dev --workspace @dicebear/editorOpen http://localhost:5173/ in your browser to see your changes.
You can also run the linter to check for code style issues:
npm run lint --workspace @dicebear/editorBranching and committing
Once you are happy with the changes, create a branch so you can commit the changes.
git checkout -b <YOUR_BRANCH>Afterwards you have to add your changes to the stage and commit them.
git add .
git commit -m "Change: <YOUR_CHANGES>"
git push origin <YOUR_BRANCH>Creating a Pull Request
Follow these instructions to create a Pull Request.
Deployment (maintainers only)
INFO
Only maintainers with write access to the repository can deploy the editor. This section is documented here for completeness.
The editor (editor.dicebear.com) is deployed manually via a GitHub Actions workflow. It can be triggered from the "Actions" tab on GitHub:
- Deploy Editor — Builds the editor app and deploys it to the CDN.