npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@veltdev/nutrient-crdt-react

v1.0.1

Published

React hook and component wrapper for Nutrient Web SDK CRDT collaboration over @veltdev/nutrient-crdt

Readme

Velt Nutrient Web SDK CRDT React Library

With Velt Nutrient Web SDK CRDT React Library, you can add powerful multiplayer editing and state synchronization features to any React application using Nutrient Web SDK.

The library provides React-native realtime primitives:

  • useCollaboration hook for managing shared state and the base CollaborationManager
  • NutrientCrdtEditor drop-in component that owns the NutrientViewer.load()/unload() lifecycle
  • NutrientCrdtProvider + useCollaborationContext for sharing one collaboration value across a component tree
  • Fully-managed on a scalable realtime backend
  • Powered by Yjs for industry-standard conflict resolution

Features include:

  • Multiplayer Annotation Editing — highlights, comments, and form-field values synchronized in real time as Nutrient Instant JSON
  • Collaboration with presence and remote selection overlays
  • Conflict Resolution ensuring document consistency across all clients
  • Offline Support with automatic synchronization upon reconnection
  • Versions — save, list, and restore named document versions
  • React Hooks for seamless integration with React components
  • ... and so much more

Installation

npm install @veltdev/nutrient-crdt-react @veltdev/nutrient-crdt @nutrient-sdk/viewer @veltdev/react @veltdev/types

Public API

| Export | Kind | Purpose | |--------|------|---------| | useCollaboration(config) | hook | Creates and tracks a base CollaborationManager; returns status/synced/versions/selections state plus delegated helpers (attachInstance, applyInstantJson, addHighlight, addComment, setFormFieldValue, saveVersion, restoreVersion, forceReset, and more). | | NutrientCrdtEditor | component | Drop-in viewer host: loads (or accepts) a Nutrient viewer instance, wires it to the hook, and renders a render-prop with the collaboration value. | | NutrientCrdtProvider / CollaborationProvider | component | Provides one useCollaboration value through React context. | | useCollaborationContext / CollaborationContext | hook / context | Reads the provider value (null outside a provider). | | CollaborationManager, createCollaboration | re-export | The base package's manager class and factory. | | Content helpers | re-export | INSTANT_JSON_FORMAT, createDocumentState, createHighlightAnnotation, createCommentPayload, createSelectionState, addHighlightToInstantJson, addCommentToInstantJson, setFormFieldValue, mergeInstantJson, diffInstantJson, getInstantJsonRecordId, cloneJson, stableStringify, stripPdfId, hasInstantJson, isDocumentState, normalizeRects. | | Types | re-export | UseCollaborationConfig, UseCollaborationReturn, NutrientCrdtEditorProps, NutrientCrdtProviderProps, NutrientViewerModule, plus the base type set (CollaborationConfig, InstantJson, InstantJsonDiff, NutrientSdk, NutrientDocumentState, RemoteSelection, SyncStatus, Version, and more). |

Documentation

Use cases

The Nutrient Web SDK CRDT library is used to power:

  • Collaborative PDF annotation and review tools
  • Real-time document editing
  • Shared workspaces
  • Any shared, mutable environment

Resources

  • Explore multiplayer editing to see features like collaborative PDF annotation, text editing, and shared documents.
  • Sample Apps: Check out example implementations for various use cases.

Releases

Security

  • Velt is SOC2 Type 2 and HIPAA compliant. Learn more

Community

  • X: To receive updates, announcements, and general Velt tips.