Installation
Plim is published as a set of @plim/* packages on npm. Install the layers your
app needs.
Vanilla (no React)
Section titled “Vanilla (no React)”pnpm add @plim/core @plim/editor @plim/markdownpnpm add @plim/core @plim/editor @plim/markdown @plim/react react react-dom@plim/react declares react and react-dom (>=18) as peer dependencies, so
you provide them from your app.
Import the stylesheet
Section titled “Import the stylesheet”The editor ships its own stylesheet. Import it once at your app entry:
import '@plim/editor/styles.css';If you use comments, also import the comments stylesheet (both are overridable via CSS variables):
import '@plim/collaboration/comments.css';If you use custom emoji, import the mojis stylesheet too:
import '@plim/mojis/mojis.css';Optional packages
Section titled “Optional packages”These are independent and can be added later as needed:
@plim/html- SSR / server-side HTML rendering.@plim/mojis- Slackmoji-style custom inline emoji. See the Mojis guide.@plim/storage- durable persistence and autosave.@plim/ledger,@plim/transports,@plim/collaboration- the sync and collaboration stack.@plim/test-utils- add as adevDependencyfor headless unit tests.
Next: head to the Quickstart.