{"id":47957780,"url":"https://github.com/youssof20/savestate","last_synced_at":"2026-04-08T13:00:54.573Z","repository":{"id":348652929,"uuid":"1199169661","full_name":"youssof20/savestate","owner":"youssof20","description":"Atomic save system for Godot 4 - .bak backups, schema migration, and Saveable node groups. Free Lite tier. Pro version with encryption, async, and editor tooling on itch.io.","archived":false,"fork":false,"pushed_at":"2026-04-03T05:55:41.000Z","size":169,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T12:02:27.653Z","etag":null,"topics":["game-development","gdscript","godot","godot-4","godot-addon","godot-plugin","indie-game-dev","mit-license","open-source","save-system"],"latest_commit_sha":null,"homepage":"","language":"GDScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youssof20.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-02T05:28:30.000Z","updated_at":"2026-04-06T14:07:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5f66f18-fd08-4a34-b564-d2c08f8a2c08","html_url":"https://github.com/youssof20/savestate","commit_stats":null,"previous_names":["youssof20/savestate"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/youssof20/savestate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssof20%2Fsavestate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssof20%2Fsavestate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssof20%2Fsavestate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssof20%2Fsavestate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youssof20","download_url":"https://codeload.github.com/youssof20/savestate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssof20%2Fsavestate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-development","gdscript","godot","godot-4","godot-addon","godot-plugin","indie-game-dev","mit-license","open-source","save-system"],"created_at":"2026-04-04T09:36:41.875Z","updated_at":"2026-04-08T13:00:54.509Z","avatar_url":"https://github.com/youssof20.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaveState Lite\n\n[![Hand-tested](https://img.shields.io/badge/Hand--tested-Godot%204.3%E2%80%934.6-success)](#godot-version-support)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nGodot 4 addon: **atomic** save files, rolling **`.bak`** backups, **schema versioning** with forward merge, and one **`SaveManager`** autoload for key–value data and named slots — without building a custom format from scratch.\n\n**Docs:** [Quick start](QUICKSTART.md) · [Full API](docs/API.md) · [Architecture \u0026 threading](docs/ARCHITECTURE.md) · [Migration (incl. `migration_required`)](docs/MIGRATION.md) · [Starter sample](samples/minimal-demo/README.md)\n\n**v1.2:** typed `register_key` (with optional Save Browser color hints), `register_editor_hint`, debounced `mark_dirty`, `set_schema_migrations`, JSON export, `SaveComponent` / `CollectionLink` / `SaveStatePickupVacuum`, slot import/export helpers, Save Browser color picker + `SaveStateUnixDisplay`, `save_menu_lite.tscn`, and Pro `templates/save_menu_pro.tscn`.\n\n---\n\n## Why this exists\n\nGodot projects often start with ad-hoc `FileAccess` writes. That becomes painful fast: torn writes after crashes, no backup story, and no clean way to evolve save data when you add fields. SaveState Lite centralizes **atomic commits** (write to temp → validate → rename), **optional `.bak`**, and a **single schema number** with merge-from-defaults for older files.\n\n**Technical challenges baked in:** careful ordering with temp files and rename for atomicity; keeping async Pro saves safe by **snapshotting on the main thread** before `WorkerThreadPool` I/O (see [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)); and editor/plugin ordering so Lite loads before Pro when both are enabled.\n\nSee [CHANGELOG.md](CHANGELOG.md) — each version lists **Lite** (this repo) and **Pro** ([itch.io](https://chuumberry.itch.io/savestate-pro)) separately.\n\n---\n\n## Installation\n\nThe **repository root** is not a Godot project (there is no `project.godot` there). Either open **`samples/minimal-demo`** after you copy the addon into it (see that folder’s README), or copy **`addons/savestate/`** into **your** game project’s `addons/` folder.\n\n1. Copy the `addons/savestate/` folder into your Godot project (merge with `addons/`).\n2. **Project → Project Settings → Plugins** → enable **SaveState (Lite)**.\n3. The **SaveManager** autoload is registered (`res://addons/savestate/save_manager.gd`).\n\n**SaveState Pro** (paid, separate from this repo) requires both Lite and the Pro plugin folder in your project. See [itch.io](https://chuumberry.itch.io/savestate-pro).\n\n**GitHub Releases** attach **`savestate-lite-\u003ctag\u003e.zip`** (drop-in `addons/savestate/`). Pushing a new tag `v*` triggers Actions to open the release and upload the zip. To **create or refresh** releases for existing tags (notes + zip), run **`tools/publish_github_releases.ps1`** from the repo root with **`GITHUB_TOKEN`** set to a PAT with repo **Contents** read/write (see the script header).\n\n---\n\n## Quick start\n\n```gdscript\nSaveManager.set_value(\u0026\"player_gold\", 250)\nSaveManager.persist()\n```\n\n```gdscript\nvar player_gold := int(SaveManager.get_value(\u0026\"player_gold\", 0))\n```\n\n```gdscript\nSaveManager.save_to_slot_sync(\u0026\"slot_1\", {\"player_health\": 100})\nvar data := SaveManager.load_from_slot_sync(\u0026\"slot_1\")\n```\n\nMore patterns: **[QUICKSTART.md](QUICKSTART.md)**. Full method list: **[docs/API.md](docs/API.md)**.\n\n---\n\n## Saving nodes (Lite)\n\nLite does not ship a `Saveable` node in this repo. Nodes in group `savestate_saveable` that implement **`get_storage_key`**, **`collect_snapshot`**, and **`apply_snapshot`** participate in `persist_including_saveables()` / `load_from_slot_and_apply_saveables()`. The **Saveable** node and inspector tooling ship with **SaveState Pro**: [SaveState Pro on itch.io](https://chuumberry.itch.io/savestate-pro).\n\n---\n\n## Pro version\n\nPro swaps the autoload for `pro_manager.gd`, adds async save/load, optional AES-256 + HMAC, thumbnails, **Save Browser** dock extras, Saveable inspector, and Quick Setup menu entries. Details: [https://chuumberry.itch.io/savestate-pro](https://chuumberry.itch.io/savestate-pro)\n\n---\n\n## Godot version support\n\nGodot **4.3**, **4.4**, **4.5**, and **4.6** are tested and supported. The addons use stable 4.x APIs (`DirAccess.remove_absolute`, `FileAccess.get_modified_time`, `Time.get_datetime_string_from_unix_time`, `ColorPickerButton`, etc.) as documented for those versions; Lite and Pro `plugin.cfg` files note this range.\n\n---\n\n## License\n\nLite is MIT licensed. Use it in any project, commercial or otherwise, with no attribution required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussof20%2Fsavestate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoussof20%2Fsavestate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussof20%2Fsavestate/lists"}