@contentina/core
v0.0.6
Published
Localized content graph compiler core for Contentina.
Downloads
1,222
Readme
🧠 @contentina/core
Localized content graph compiler for TypeScript applications.
The heart of Contentina — schema-portable collections, processors, native localization, locale-aware references, routes, assets, generated helpers, and Orama search.
Install
bun add @contentina/coreQuick start
Create a contentina.config.ts at your project root:
import {
defineConfig,
defineLocales,
defineCollection,
} from "@contentina/core";
export default defineConfig({
locales: defineLocales({
default: "en",
supported: ["en", "de"],
}),
collections: {
posts: defineCollection({
source: "content/{en,de}/posts/*.{md,mdx}",
// schema, routes, processors...
}),
},
});Import generated output from your app:
import { posts } from "contentina/generated";Use a framework adapter (@contentina/vite, @contentina/next, …) to build, watch, and wire the contentina/generated alias automatically.
Part of Contentina · npm
