Installation
Install the edytor package in a Svelte 5 project and check the requirements for the editor, the CRDT entries and the server room.
Edytor ships as one npm package, edytor. It contains the <Edytor> component, the bundled plugins, the collaborative document API and its CRDT engine, and a Cloudflare Durable Object room.
Requirements
- Svelte 5.
svelteis a peer dependency (^5.0.0). The editor uses runes and snippets, so Svelte 4 is not supported. - A Svelte-aware bundler. The root entry ships
.sveltefiles. SvelteKit, or Vite with@sveltejs/vite-plugin-svelte, compiles them with its default config: nothing to add tovite.config. Astro renders a component from a package on the server only when that package is bundled, so addvite: { ssr: { noExternal: ['edytor'] } }toastro.config(without it, a server-rendered island fails with “Unknown file extension .svelte”). - Node.js 22 or later (the package’s
enginesfield). - A Baseline 2024 browser. Chrome and Edge 120, Firefox 125, Safari 17.4 or Chrome on Android 120, or later; the current versions are tested. Real phones and their keyboards are not tested yet. See Platform support.
Install
Edytor is on npm under latest:
npm install edytorpnpm add edytoryarn add edytorbun add edytornub add edytoraube add edytorEach release is published from CI with npm provenance. The 2.0.0 pre-releases stay on npm under the next tag; do not install them.
Earlier installs by URL keep working: this site still serves every pre-release tarball it hosted, each at its versioned URL, and the bytes under a URL never change, so a lockfile’s URL and integrity hash stay valid. Switch to edytor when you upgrade.
If your project does not have Svelte yet, add it too:
npm install -D sveltepnpm add -D svelteyarn add -D sveltebun add -D sveltenub add -D svelteaube add -D svelteDo not install yjs for Edytor. The collaboration engine (a fork of Yjs v14) is vendored inside the package and is available as edytor/crdt. The yjs package on npm is v13, which cannot exchange updates with v14.
The package pulls in a few runtime dependencies on its own: Atlassian’s Pragmatic Drag and Drop (block handles), TanStack Highlight (code block highlighting) and lib0.