# @tryghost/kg-default-cards

> Mobiledoc card definitions for Ghost's editor

Latest version **10.3.6** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tryghost/kg-default-cards
pnpm add @tryghost/kg-default-cards
yarn add @tryghost/kg-default-cards
bun add @tryghost/kg-default-cards
```

## Health

**Score 85/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.3.6 |
| Published | 2026-09-15 |
| First published | 2020-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^22.13.1 \|\| ^24.0.0 |
| Dependencies | 7 |
| Unpacked size | 339.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 55250 |
| Author | Ghost Foundation |
| Maintainers | zimoatghost, allouis, kernalghost, chrisraible, erisds, johnonolan, kevinansfield, cobbspur, aileencgn, jloh, minimaluminium, sam-lord, pauladamdavis, bobvaneck, joeegrigg, hadret, erik-ghost, sagzy, vershwal, zach1618, mike182uk, luissazevedo, lsinger, nickmoreton, renatoworks, rblstr-ghost, evanhahn-ghost, austin.burdine, weylandswart, ghost-slimer, tmciesco, jonatan-ghost, 9larsons |

## Links

- npm: https://www.npmjs.com/package/@tryghost/kg-default-cards
- Repository: https://github.com/TryGhost/Ghost
- npm.io page: https://npm.io/package/@tryghost/kg-default-cards

## Dependencies (7)

- [juice](https://npm.io/package/juice.md) 11.1.1
- [luxon](https://npm.io/package/luxon.md) 3.7.2
- [handlebars](https://npm.io/package/handlebars.md) 4.7.9
- [@tryghost/string](https://npm.io/package/@tryghost/string.md) 0.3.6
- [@tryghost/kg-utils](https://npm.io/package/@tryghost/kg-utils.md) ~1.1.4
- [@tryghost/url-utils](https://npm.io/package/@tryghost/url-utils.md) 5.3.0
- [@tryghost/kg-markdown-html-renderer](https://npm.io/package/@tryghost/kg-markdown-html-renderer.md) ~7.2.4

## Recent versions

- 10.3.6 (latest) — 2026-09-15
- 10.3.5 — 2026-07-17
- 10.3.4 — 2026-07-10
- 10.3.3 — 2026-06-22
- 10.3.2 — 2026-06-02
- 10.3.1 — 2026-04-27
- 10.3.0 — 2026-04-20
- 10.2.13 — 2026-04-02
- 10.2.12 — 2026-04-02
- 10.2.11 — 2026-03-20
- 10.2.10 — 2026-03-16
- 10.2.9 — 2026-03-12
- 10.2.8 — 2026-03-02
- 10.2.7 — 2026-02-26
- 10.2.6 — 2026-02-05
- … 173 more at https://npm.io/package/@tryghost/kg-default-cards/versions

## README

# Koenig Default Cards

Mobiledoc card definitions for Ghost's editor.

> Legacy: this package supports posts that have never been converted from
> Mobiledoc. New editor work belongs in the Lexical packages.

## Install

`npm install @tryghost/kg-default-cards`

## Usage

```js
import {cards} from '@tryghost/kg-default-cards';

cards.map(card => card.name);
// ['bookmark', 'code', 'email', 'email-cta', 'embed', ...]
```

Each card exposes `name`, `type` and a `render` function, ready to hand to the
Mobiledoc renderer. Cards that contain URLs also expose the relevant transform
helpers (`absoluteToRelative`, `relativeToAbsolute`, `toTransformReady`) that
Ghost applies when storing and serving content.

## Develop

This package is part of the [Ghost monorepo](https://github.com/TryGhost/Ghost)
and resolves through the pnpm workspace — there is no linking or per-package
install step. Run `pnpm bootstrap` in the monorepo root, then work in
`koenig/kg-default-cards`.

See the [Koenig README](../README.md) for the shared build, test and release
workflow.

## Test

- `pnpm test:unit` runs the unit tests
- `pnpm test` runs the unit and type tests, including coverage thresholds
- `pnpm lint` runs the lint checks

# Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the [MIT license](https://github.com/TryGhost/Ghost/blob/main/LICENSE).

---
_Source: https://npm.io/package/@tryghost/kg-default-cards · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
