Get started with yorkie-js-sdk CDN
Apache-2.0 licensed
The Yorkie JS SDK is a library for real-time collaboration on HTML documents.
Tags:- crdt
- realtime-collaboration
- grpc-web
- yorkie
- collaborative-applications
- yorkie-js-sdk
Stable version
Copied!
How to start using yorkie-js-sdk CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with yorkie-js-sdk CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/yorkie-js-sdk/0.4.15/yorkie-js-sdk.js"></script>
</head>
<body>
<button id="sync-btn">Sync Data</button>
<script>
const client = new Yorkie.Client('my-database', { sync: true });
document.getElementById('sync-btn').addEventListener('click', () => {
client.sync()
.then(() => console.log('Data synced'))
.catch((err) => console.error('Error syncing data:', err));
});
// Initialize the database with some data
client.set('name', 'John Doe')
.then(() => client.set('age', 30))
.then(() => console.log('Data initialized'))
.catch((err) => console.error('Error initializing data:', err));
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.0.10
0.0.7
0.0.8
0.0.9
0.1.0
0.1.1
0.1.10
0.1.11
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.2.0
0.2.10
0.2.11
0.2.12
0.2.13
0.2.14
0.2.15
0.2.16
0.2.19
0.2.20
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.13-rc
0.4.13-rc2
0.4.14
0.4.14-rc
0.4.15
0.4.15-rc
0.4.15-rc2
0.4.16
0.4.17
0.4.18
0.4.18-rc
0.4.19
0.4.19-rc
0.4.2
0.4.20
0.4.21
0.4.21-rc
0.4.21-rc2
0.4.21-rc3
0.4.22
0.4.23
0.4.24
0.4.25
0.4.26
0.4.27
0.4.28
0.4.3
0.4.31
0.4.4
0.4.5
0.4.6
0.4.7
0.4.9
0.5.0
0.5.1
0.5.2
0.5.3
*** 0.5.4