# @loro-dev/flock-wasm

WASM bindings for `flock-rs`.

## Runtime mode

- `RawFlock` constructors (`new`, `fromJson`, `fromFile`) use buffered mode by default.
- Buffered mode means memtable is enabled by default.
- Buffered writes are flushed on `txnCommit` (and storage transaction commit), or when exporting file bytes.
- If you need strongest durability semantics, explicitly commit transactions more frequently.

## Build

```bash
pnpm -C packages/flock-wasm build
```

## Test

```bash
pnpm -C packages/flock-wasm test
```

## License

`@loro-dev/flock-wasm` is licensed under `AGPL-3.0-only`.
