yjs-best-practices

Community

Stabilize Yjs usage and avoid duplicate imports.

Authorrally19
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Diagnose and fix common Yjs issues in applications, including duplicate imports, subdocuments, and encoding configuration.

Core Features & Use Cases

  • Avoid importing Yjs twice by consolidating to a single Yjs instance across the app and resolving version conflicts with bundler aliases.
  • Prefer YMap over subdocuments for typical collaboration data unless a subdocument is truly needed.
  • Use YKeyValue for efficient key-value storage to minimize document growth and improve performance.
  • Enable experimental V2 encoding for Y.Maps to improve efficiency and compatibility.

Quick Start

Audit your codebase for duplicate Yjs imports and implement a single Yjs instance with consolidated usage of YMap or YKeyValue

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: yjs-best-practices
Download link: https://github.com/rally19/goform/archive/main.zip#yjs-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.