Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This package implements the eg-walker CRDT algorithm for text collaboration, focusing on efficient event management and document synchronization.
Sign in to like and favorite skills
This package implements the eg-walker CRDT algorithm for text collaboration, focusing on efficient event management and document synchronization.
src/fp/utils/src/eg-walker.ts and src/crdt.tssrc/fp/ module
utils/ - Array, composition, and helper functionsstorage/ - Columnar storage implementationcore/ - Functional eg-walker implementationsrc/test/ with corresponding .test.ts filespnpm typecheckany types, handle undefined values explicitlypnpm --filter @softmaple/eg-walker testpnpm --filter @softmaple/eg-walker typecheckpnpm --filter @softmaple/eg-walker buildenableOptimizations = true)setOptimizationsEnabled(false) after instantiationsrc/test/benchmark.test.ts exercise both enabled and disabled pathspackages/eg-walker not just eg-walkerfix(packages/eg-walker): correct event orderingThe implementation follows the three-part architecture from the paper:
Events are stored in compressed columnar format: