@slake-dev/sync
v1.0.13
Published
Real-time sync layer for Slake collaborative annotations
Downloads
1,567
Readme
@slake-dev/sync
Client-side SDK for Slake — multiplayer design review on your running builds. Adds collaborative annotations, cursors, and comments to any React app.
Install
npm install @slake-dev/syncSetup
Wrap your app with the Slake provider:
import { SlakeAnnotation } from '@slake-dev/sync';
function App() {
return (
<>
<YourApp />
<SlakeAnnotation
serverUrl="http://localhost:4000"
projectId="my-project"
user={{ id: 'user-1', name: 'Alice' }}
/>
</>
);
}Quick start with the CLI
The easiest way to add Slake to an existing project:
npx @slake-dev/cli initPeer dependencies
react^18 or ^19react-dom^18 or ^19
