Hot state, zero backend.
The simplest state in Nu. Declare a Shape, hang typed Refs, use them. Gone when the process ends.
See it.
Declare a Shape, hang typed Refs, use them. That is the whole surface.
The simplest state in Nu.
Same IntRef, DictRef, ShapeRef you use everywhere else in Nu. Reads and writes are in-process, no serialization, no round trip. Use it for cache, hot state, and coordination between Shapes in one process.
No backend to pick. No transactions to wrap. Restart clears it. That is the whole point.
Pick by lifetime.
nustd.mem and nustd.kv share the same Ref shapes. Pick by what the state needs to survive.
nustd.mem
Ephemeral, in-process.
Caches. Live counters. UI state. Anything you can rebuild on restart. Zero setup, zero disk.
nustd.kv
Durable, across restarts.
Users. Orders. Anything you need after a crash. Same Refs, backed by RocksDB or LMDB. Move it to nustd.kv when the state needs to survive a restart.
Combines well with.
Fabrics compose. Wire nustd.mem to a browser, a KV store, or another process without changing your Refs.
Try Nu.
One command gets you the wheel with every fabric. Then follow the movies tutorial to build a real app in an afternoon.
01 Install
pip install "nustack-py[all]"02 Run the demo
nu demo movies03 Build your app
Browse examplesLike what you see?
The project is young. Star it, join the room, watch what we ship next.