Scribo
Scribo is an editor kit built on Lexical. It comes in two forms:
- A ready Markdown editor.
@eventuras/scribo-markdownis a React component that edits rich text and gives you Markdown. - A core with extensions.
@eventuras/scribo-coreis a set of Lexical extensions to build your own editor from. Other packages add to it: React bindings, a syntax highlighter, songs with chords.
The Markdown editor is itself a preset over the core.

Packages
| Package | What it is |
|---|---|
@eventuras/scribo-markdown | MarkdownEditor and MarkdownInput, with the callout and schedule plugins. |
@eventuras/scribo-core | The core: extensions for rich text, a toolbar built from data, Markdown and code blocks. No React. |
@eventuras/scribo-react | React bindings for the core: a toolbar, a language picker for code blocks and a placeholder. |
@eventuras/scribo-chords | Songs with chords, as an extension for the core, with a reader and a play mode. |
@eventuras/scribo-code-prism | Prism as the syntax highlighter for the core's code blocks. |
@eventuras/scribo is the old name of @eventuras/scribo-markdown. It is deprecated and only re-exports the new package.
Every package pins lexical and @lexical/* to exactly 0.50.0, the version Payload CMS uses, so an app that has both gets one Lexical.
Where to start
- Getting started installs the Markdown editor, and then builds an editor on the core.
- Writing an extension adds a command and a toolbar item of your own.
Songs with chords
@eventuras/scribo-chords shows what an extension can add. This is its song editor, an editor built on the core:

The same song in the reader, shown two semitones up. Transposing changes what is shown, never what is stored:

Play mode on a phone:

The song in the pictures is made up for the package.
Demos
The docs site carries a build of both demos:
These two links work on the built site only. To run a demo from a checkout, use pnpm dev for the Markdown editor and pnpm --filter @eventuras/scribo-chords dev for chords. The Markdown editor is also at scribo.losol.no.