Skip to content

Kompass Editor

The Kompass Editor is a custom block-based editor built on Alpine.js. It stores content as a flat block array and renders it server-side via Blade — keeping your data clean and your templates in control.

Kompass Editor

Block Types

Each block has a type field and a content or items field. The following types are available out of the box:

TypeDescription
paragraphText paragraph
h1h6Heading levels 1–6
subtitleSubtitle
pre-headlineSmall label above a heading
ulBulleted list
olOrdered list
blockquotePull quote

Interactions

The editor provides a set of keyboard-driven and pointer-driven interactions that keep your writing flow fast:

  • / Slash command — Open the block-type picker to convert the current block
  • Floating toolbar — Select text to format: bold, italic, underline, strikethrough, link
  • Drag handle — Drag the left handle to reorder blocks
  • + button — Insert a new block after any line

Released under the MIT License.