{"id":"qvyra/geode","name":"geode","scope":"qvyra","platform":"roblox","description":"Layered data framework for Roblox: DataStore, MemoryStore and MessagingService behind one API","version":"0.8.0","latest":"0.8.0","versions":["0.4.0","0.5.0","0.6.0","0.6.1","0.6.2","0.7.0","0.8.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"43c1a79196ca80c7d60eb35fe6c459f1fa5a1bc4bef21c356c3fa88362cea16a","likes":0,"downloads":0,"install":"forest install qvyra/geode","url":"https://forest.dev/p/roblox/qvyra/geode","files":"https://api.forest.dev/ai/package/roblox/qvyra/geode/files","readme":"<p align=\"center\"><img src=\"https://raw.githubusercontent.com/qvyra/geode/main/.github/assets/geode-cover.jpg\" alt=\"Geode cover: a cartoon cave lined with glowing blue, teal, red and gold crystals, with the Geode logo and the tagline 'Roblox data that survives a server dying'.\" width=\"100%\"></p>\n\n<p align=\"center\"><sub><a href=\"https://quivery.dev/projects/geode\">Portfolio page</a> · <a href=\"https://quivery.dev/projects/geode/benchmarks\">Benchmarks</a> · <a href=\"https://qvyra.github.io/geode\">Docs</a> · <a href=\"https://create.roblox.com/store/asset/134787455935323/Loupe\">Loupe, the Studio plugin</a></sub></p>\n\nA data framework for Roblox. Geode puts DataStoreService, MemoryStoreService and MessagingService behind one API, with session-locked player data, guards, reactive data and replication on top.\n\n> Geode is in early development. The API can still change before 1.0.\n\nGeode is an independent project. It shares no code with ProfileStore, ProfileService or Lapis. If you're coming from one of them, [this guide](https://qvyra.github.io/geode/docs/coming-from-profilestore) maps what you know.\n\n## Features\n\n- **Player data in one call:** profiles load on join, autosave, and save and release on leave or shutdown\n- **Session locking:** a session lease lives in the DataStore record, so two servers never write the same profile\n- **Fast server hops:** the old server is asked to release instead of waiting out the lease\n- **Purchases granted once:** each grant and its receipt are saved together\n- **Migrations and schemas,** including Roblox datatypes, with size budgets that never trim data\n- **Guards:** rules every write must pass, from clients and servers alike\n- **Bundles, reactions and derived fields** that stay consistent with the data\n- **Shared stores** for data any server writes\n- **MemoryStore helpers:** presence, locks, counters, rate limits and job queues\n- **Matchmaking and leaderboards**\n- **Replication** of chosen paths to clients, read there as atoms\n- **History, rollback and an audit log**\n- **Testable without Roblox:** in-memory services with fault injection and a virtual clock\n\n## Install\n\nWith [Wally](https://wally.run), add Geode to `wally.toml` and run `wally install`:\n\n```toml\n[dependencies]\nGeode = \"qvyra/geode@0.8.0\"\n```\n\nWith roblox-ts, install it from npm:\n\n```sh\nnpm i @rbxts/geode\n```\n\nand import it with `import Geode from \"@rbxts/geode\"`. The typings cover the whole API with the same names as Luau.\n\nWithout Rojo or a package manager, download `Geode.rbxm` from the [latest release](https://github.com/qvyra/geode/releases/latest) and insert it in Studio: right-click ReplicatedStorage, choose Insert from File and pick the file. Then require it with `require(ReplicatedStorage.Geode)`. The [installation page](https://qvyra.github.io/geode/docs/installation#model-file) has the details.\n\n## Quick start\n\n```lua\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\nlocal Geode = require(ReplicatedStorage.Packages.Geode)\n\nlocal PlayerData = Geode.players({\n\tname = \"PlayerData\",\n\ttemplate = { coins = 0, xp = 0, level = 1, inventory = {} },\n\treplicate = { coins = \"owner\", level = \"public\" },\n})\n\nPlayerData:onLoaded(function(player, profile)\n\tprofile:increment(\"coins\", 100)\nend)\n```\n\nEach player's data loads when they join and is saved and released when they leave or the server shuts down. `coins` replicates to its owner and `level` to everyone.\n\n## Documentation\n\n- [Docs site](https://qvyra.github.io/geode): installation, getting started, guides for every part, troubleshooting and the API reference\n- [DECISIONS.md](DECISIONS.md): why Geode is built the way it is\n- `example/`: a small game that uses most of it\n- [CONTRIBUTING.md](CONTRIBUTING.md): setup and the check suite\n\n## Support\n\nGeode is free and open source. If it saves you time and you want to give something back, there's a [Ko-fi page](https://ko-fi.com/quivery) and a [Roblox support place](https://www.roblox.com/games/136594389777030/Support-Quivery).\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n","readmeTruncated":false}