Skip to content

ContentKit is a powerful SDK for converting Markdown (or MDX) content into structured JSON data

License

Notifications You must be signed in to change notification settings

infinitejs/contentkit

ContentKit Logo ContentKit

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.

Features

  • 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.

Packages

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.

Installation

Install the contentkit package:

# Using npm
npm install contentkit

# Using yarn
yarn add contentkit

# Using pnpm
pnpm add contentkit

# Using bun
bun add contentkit

Getting Started

Visit the ContentKit documentation for more information on how to get started with ContentKit.

License

BSD-3-Clause

About

ContentKit is a powerful SDK for converting Markdown (or MDX) content into structured JSON data

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 2

  •  
  •