Simple and fast state management library.
The library supports TypeScript and ReScript (it is actually written in ReScript for improved type safety and performance).
Check the website for documentation and examples.
Simple documentation on the README.
- 2025-09-09 3.0.0
- Rename
unwrapforlift, change syntax forsignalto expose setter. - Protect tilia from exceptions in computed: the exception is caught, logged to
console.errorand re-thrown at the end of the next flush. - Add
leafto @tilia/react: a higher order component to close the observing phase at the exact end of the render. - Simplify
useComputedin @tilia/react to return the value directly.
- Rename
- 2025-08-08 2.2.0
- Add
unwrapto ease inserting a signal into a tilia object.
- Add
- 2025-08-08 2.1.1
- Fix
sourcetype: ignore return value for easier async support.
- Fix
- 2025-08-03 2.1.0
- Add
derivedto compute a signal from other tilia values. - Add
watchto separate the capture phase and the effect phase of observe.
- Add
- 2025-07-24 2.0.1
- Fix package.json configuration in @tilia/react publish script.
- 2025-07-21 2.0.0
- Add tests and examples with Gherkin for todo app.
- Moved core to npm "tilia" package.
- Changed
makesignature to build tilia context (provides the full API running in a separate context). - Enable forest mode to observve across separated objects.
- Add
computedto compute values in branches (moved intotiliacontext). - Moved
observeintotiliacontext. observewill be called for its own mutations (this is to allow state machines).- Removed re-exports in @tilia/react.
- Removed
compute(replaced bycomputed). - Removed
trackas this cannot scale to multiple instances and computed. - Renamed internal
_connectto_observe. - Reworked API to ensure strong typing and avoid runtime errors.
- Add
source,readonlyandsignalfor FRP style programming. - Add
carveto support derivation (build domain features from objects). - Improved flush strategy to trigger immediately but not in an observing function.
- 2025-05-05 1.6.0
- Add
computemethod to cache values on read.
- Add
- 2025-01-17 1.4.0
- Add
trackmethod to observe branches. - Add
flushstrategy for tracking notification.
- Add
- 2025-01-02 1.3.2 Fix extension in built artifacts.
- 2024-12-31 1.3.0
- Expose internals with _meta.
- Rewrite tracking to fix memory leaks when _ready and clear are never called.
- 2024-12-27 1.2.4 Add support for ready after clear.
- 2024-12-24 1.2.3 Rewrite tracking to fix notify and clear before ready.
- 2024-12-18 1.2.2 Fix readonly tracking: should not proxy.
- 2024-12-18 1.2.1 Fix bug to not track prototype methods.
- 2024-12-18 1.2.0 Improve ownKeys watching, notify on key deletion.
- 2024-12-18 1.1.1 Fix build issue (rescript was still required)
- 2024-12-17 1.1.0 Add support to share tracking between branches.
- 2024-12-13 1.0.0 Alpha release.