# Save & restore

**Category:** Showcases  
**Live demo:** https://xenolithengine.github.io/xenolith-graph/examples/save-restore/  
**Frameworks shipped:** react, vue, svelte, solid, angular

## Description

The whole graph is JSON. Download / upload a .json file, and autosave to localStorage on every edit (driven by useGraphJSON). Reload the page — it comes back.

## Source files

  - [react] demos/SaveRestoreDemo.tsx
  - [react] shared/save-restore.ts
  - [vue] vue/SaveRestoreDemo.vue
  - [vue] vue/SavePanel.vue
  - [vue] shared/save-restore.ts
  - [svelte] vanilla/svelte-save-restore.ts
  - [svelte] shared/save-restore.ts
  - [solid] vanilla/solid-save-restore.ts
  - [solid] shared/save-restore.ts
  - [angular] angular/SaveRestoreDemo.component.ts
  - [angular] shared/save-restore.ts

## How to use this example

Open the live demo at https://xenolithengine.github.io/xenolith-graph/examples/save-restore/ to interact with it in the browser. The same source files are
reproduced verbatim in the page so you can copy-paste into your own project. Every example is
self-contained — pick one, copy the files, install `@xenolithengine/graph-editor` + the relevant framework
adapter, and it runs.

## See also

- Full project docs: https://xenolithengine.github.io/xenolith-graph/llms.txt
- All examples (raw): https://xenolithengine.github.io/xenolith-graph/api/graphs.jsonl
- MCP tool catalog: https://xenolithengine.github.io/xenolith-graph/api/mcp-tools.json
- Repository: https://github.com/XenolithEngine/xenolith-graph
