Save Dart objects locally, read them back as typed models, and add expiry or encryption when your app needs it.
Install Flutter with Dart 3.11 or newer, then run these commands from this repository's root.
cd phive/example
flutter pub get
dart run build_runner build
dart run lib/main.dartYou should see the note you just stored.
Restored note-1: Hello PHive
Temporary storage removed.
This desktop command-line example uses a temporary folder and cleans it up after running. The example guide shows which files to change.
Start with the runtime quick start. It walks through installation, a model, code generation, and a complete save/read example.
| Package | Add it when you want to |
|---|---|
| phive | Store and retrieve your models. |
| phive_generator | Generate adapters and model registration. Add it as a development dependency. |
| phive_barrel | Give stored values a lifetime or encrypt string fields. |
- Generate models with stable type IDs.
- Keep API-model caches readable as fields change.
- Add expiry or encryption.
- Try the Flutter demo for cache and parent-child relationship screens.
- Run integration tests when contributing.
- Run the acceptance proofs for stored data across builds.
See LICENSE for licensing.