Add JSON import and export

This commit is contained in:
Jan Bader
2026-06-16 15:12:12 +02:00
parent 690faf6c57
commit 02e63d10dd
4 changed files with 156 additions and 2 deletions
+11
View File
@@ -101,6 +101,17 @@ Features:
- Delete a slot
- Automatic draft saving for the current unsaved work
## Import and export
The current build can be backed up or shared as JSON:
- Generate JSON in the text box and copy it.
- Download the current build as a `.json` file.
- Import by pasting JSON into the text box.
- Import by uploading a `.json` file.
Imports accept both the app's wrapped export format and the raw build object. Imported builds are normalized, rendered immediately, and autosaved as the current draft.
## Running locally
Open `index.html` in a browser.