@genetik/patches
v0.0.3
Published
Structured mutations over Genetik content: add node, remove node, update config, reorder slot. Used by revisions (drafts/published, history), undo/redo, and LLM edit-in-place.
Downloads
158
Readme
@genetik/patches
Structured mutations over Genetik content: add node, remove node, update config, reorder slot. Used by revisions (drafts/published, history), undo/redo, and LLM edit-in-place.
Installation
pnpm add @genetik/patchesUsage
- applyPatch(content, patch) — Apply one or more operations and return new content. Does not mutate input. Does not validate the result.
See the docs for API and examples.
