Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nice-mayflies-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"partysync": patch
---

PartySync, phase 1
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions fixtures/todo-sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## todo-sync

A fixture showing how to sync data from a Durable Object to a client with PartySync.
19 changes: 19 additions & 0 deletions fixtures/todo-sync/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@partyserver/fixture-todo-sync",
"private": true,
"version": "0.0.0",
"scripts": {
"start": "wrangler dev"
},
"dependencies": {
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"partyserver": "workspace:*",
"partysocket": "^1.0.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20241224.0"
}
}
27 changes: 27 additions & 0 deletions fixtures/todo-sync/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Todo Sync</title>
<!-- Favicon -->
<link rel="icon" href="/favicon.ico" sizes="any" />
<!-- Primary Meta Tags -->
<meta name="title" content="PartyServer" />
<meta name="description" content="Everything's better with friends!" />
<meta name="author" content="PartyServer" />
<!-- Theme Colour -->
<meta name="theme-color" content="#ffffff" />

<link rel="stylesheet" href="/normalize.css" />
<link rel="stylesheet" href="/dist/index.css" />
</head>
<body>
<div id="root">Loading...</div>
<script type="module" src="/dist/index.js"></script>
</body>
</html>
Loading