Skip to content

research: Add Y.Text and XML types integration#1

Draft
agcty wants to merge 1 commit intomainfrom
research/ytext-integration
Draft

research: Add Y.Text and XML types integration#1
agcty wants to merge 1 commit intomainfrom
research/ytext-integration

Conversation

@agcty
Copy link
Collaborator

@agcty agcty commented Nov 1, 2025

Experimental implementation of Y.Text, Y.XmlFragment, Y.XmlElement, and Y.XmlHook support for collaborative text editing and structured content use cases.

This research explores integrating Yjs leaf types (Y.Text and XML) with Valtio's reactive system for non-editor use cases. Note that production text editors should use native Yjs integrations (Lexical, TipTap, ProseMirror) which are optimized for their specific needs.

Features:

  • Y.Text reactive integration with automatic version tracking
  • XML types (XmlFragment, XmlElement, XmlHook) support
  • Comprehensive test suite (E2E, integration, typing tests)
  • Example application: examples/06_ytext/
  • Property-based testing with fast-check

Status: Research branch - exploring feasibility and use cases.

@agcty agcty added the help wanted Extra attention is needed label Nov 1, 2025
Rebases Y.Text/XML integration research work onto current main branch.
This brings in recent improvements from main (CI/CD, README updates, etc.)
while preserving the experimental Y.Text/leaf type integration work.

Changes include:
- Y.Text and XML types support (Y.XmlFragment, Y.XmlElement, Y.XmlHook)
- Leaf-computed reactivity system for non-container CRDTs
- Research example (examples/06_ytext) with collaborative text editor
- Comprehensive test suite for Y.Text operations and reactivity
- Core infrastructure updates to support leaf types alongside containers

Note: This is experimental research code. Y.Text integration has known
limitations and is preserved here for research purposes only.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@agcty agcty force-pushed the research/ytext-integration branch from 510e1cb to 37a9ee0 Compare November 1, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant