ContentKit is a powerful SDK for converting Markdown (or MDX) content into structured JSON data. It provides a complete solution for managing content in TypeScript projects, including type-safe configurations, a build system, and a CLI.
- Type-safe configurations: Define your content structure with TypeScript types.
- Markdown processing: Convert Markdown content into JSON with metadata and HTML.
- Multi-format frontmatter support: Parse YAML, JSON, and TOML frontmatter seamlessly.
- Auto-generated types: Automatically generate TypeScript types for your content.
- CLI: Build your content with a single command.
- Next.js integration: Automatically rebuild content in Next.js projects.
- Extensible: Modular design with utilities, core functionality, and CLI.
ContentKit is a monorepo with the following packages:
@ckjs/utils: Utility functions for logging and configuration loading.@ckjs/types: Type definitions for ContentKit.@ckjs/core: Core library for building and processing content.@ckjs/cli: Command-line interface for ContentKit.@ckjs/matter: Frontmatter parser for YAML, JSON, and TOML.@ckjs/next: Next.js client for ContentKit.
Install the contentkit package:
# Using npm
npm install contentkit
# Using yarn
yarn add contentkit
# Using pnpm
pnpm add contentkit
# Using bun
bun add contentkitVisit the ContentKit documentation for more information on how to get started with ContentKit.
BSD-3-Clause
