Simple building blocks for reliable applications
This documentation covers installation, core concepts and the full reference for the public interface.
Features
- watchChanges(target, handler). Calls the handler every time the target changes and returns a function to stop watching.
- createStore(options). Creates a store from the given options and returns an object with read and write methods.
- formatRecord(record, template). Renders a record using a template string with named placeholders.
- serializeState(state). Converts the current state to a compact string that can be restored later.
Installation
pnpm add tesseraQuick start
import { watchChanges } from "tessera";
const result = watchChanges(config, { strict: true });
console.log(result);