Skip to content

TryGhost/Koenig

Folders and files

NameName
Last commit message
Last commit date
Mar 6, 2025
Apr 16, 2024
Mar 25, 2025
Mar 12, 2019
Feb 2, 2024
May 18, 2023
Jan 6, 2025
Jan 6, 2025
Sep 19, 2022
May 16, 2024
Aug 20, 2024
Mar 6, 2025

Repository files navigation

Koenig

Ghost editor, based on the Lexical framework.

Get started

This is a mono repository, managed with lerna.

To get started in this repo:

  1. git clone this repo & cd into it as usual
  2. run yarn setup from the top-level:
    • installs all external dependencies
    • links all internal dependencies
    • runs an initial build of all projects

To add a new package to the repo:

  • install Slimer
  • run slimer new <package name>

Development

yarn dev runs the koenig-lexical package in development mode. Please refer to its README for more information.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Deployment

Ghost core team only.

Prerequisites

Create an .env file in packages/koenig-lexical, with environment variables for Sentry, so that we can track errors in the editor. There is a copy of this file in 1password.

VITE_SENTRY_ORG=""
VITE_SENTRY_PROJECT=""
VITE_SENTRY_AUTH_TOKEN=""

Deploy a new version

  1. run yarn ship in the top-level Koenig directory to publish to npm
  2. bump the Koenig dependencies in Ghost. Either:
    • wait for Renovate to create a bump PR (example) and merge it (recommended option)
    • or, do it manually, by adding the new Koenig package versions to the package.json files in Ghost/core and Ghost/admin

Copyright & License

Copyright (c) 2013-2025 Ghost Foundation - Released under the MIT license.