@lesto/content-core
v0.1.7
Published
SUPPORTED (v1 content seam) — schema-driven content engine for markdown in TypeScript applications. The store/engine/CLI/MCP seam is the supported surface; sibling content-* packages (search, embeddings, prose, lint, seo, query, vite, components beyond Ht
Maintainers
Readme
@lesto/content-core
Schema-driven content engine for markdown in TypeScript applications.
Installation
npm install @lesto/content-core zodQuick Start
import { defineConfig, defineCollection } from "@lesto/content-core";
import { z } from "zod";
const posts = defineCollection({
name: "posts",
directory: "content/posts",
include: "**/*.md",
schema: z.object({
title: z.string(),
date: z.coerce.date(),
}),
});
export default defineConfig({
collections: [posts],
});Features
- Type-safe schemas with Zod validation
- Auto-rendered HTML from markdown
- Computed fields (word count, reading time, excerpts)
- Taxonomies for organizing content
- References between collections
- Workflow states (draft, scheduled, published)
Documentation
Full documentation at usedocks.dev
License
MIT
