Astro collaborative starter
Welcome!
Looking to add collaboration to Astro? You've come to the right spot, Astronaut 🚀 This starter kit contains a set of quick and easy elements for adding multiplayer presence to your app. But is it really that easy?
---
import LiveblocksRoom from 'astro-collab/LiveblocksRoom.astro'
import LiveCursors from 'astro-collab/LiveCursors.astro'
const key = import.meta.env.PUBLIC_LIVEBLOCKS_PUBLIC_KEY
---
<LiveblocksRoom room-id="my-room" public-key={key}>
<LiveCursors />
</LiveblocksRoom>
Bam! A few lines of code, and you've already got multiplayer cursors. To learn more, take a look at the quick start guide, visit the GitHub repo, or have a play with the demos below.