esc

Search the documentation and product pages. Type “theme” to switch themes.

Packages

Every krantho package on npm, what it is for, and which ones a site installs.

Beginner

Krantho is published to npm as one package per concern. They share one version and are released together, so a site keeps every @krantho/* package on the same version. Most sites install one bundle for their framework and the few packages their own code imports; Installation shows the commands.

Start here#

PackageWhat it is
create-kranthoScaffolds a new project: npx create-krantho my-site
@krantho/nextOne install for Next.js: the server adapter, React UI, Studio, local media and SEO
@krantho/sveltekitOne install for SvelteKit: the server adapter, Svelte UI, Studio, local media and SEO
@krantho/nodeOne install for Express, Vite or Node: the server adapter, Studio, local media and SEO; pick a UI package separately
@krantho/staticA site built from its markdown to static files, for GitHub Pages or any file host. Docs

Server#

PackageWhat it is
@krantho/serverThe runtime every adapter uses: persistence, the API, Studio and the in-process content loader. Docs
@krantho/server-nextThe Next.js App Router adapter
@krantho/server-sveltekitThe SvelteKit adapter
@krantho/server-nodeThe Node.js, Express and Vite adapter
@krantho/apiThe REST API handlers, with the OpenAPI specification. Docs
@krantho/studioStudio, prebuilt; the server serves it at /studio. Docs

Content and configuration#

PackageWhat it is
@krantho/coreThe content engine, with no UI framework dependencies. Docs
@krantho/schemaCollections defined with Zod schemas. Docs
@krantho/configThe typed configuration from krantho.config.ts and the environment. Docs

Persistence#

PackageWhat it is
@krantho/persistenceThe persistence contract every store implements. Docs
@krantho/persistence-sqliteSQLite, the default
@krantho/persistence-postgresPostgres, for production and serverless hosts
@krantho/persistence-fsMarkdown files as the store, for prototypes and static sites

Media#

PackageWhat it is
@krantho/media-localLocal disk. Docs
@krantho/media-vercel-blobVercel Blob. Docs
@krantho/media-s3S3-compatible storage. Docs
@krantho/media-gcsGoogle Cloud Storage. Docs

Rendering#

PackageWhat it is
@krantho/ui-reactReact server components and hooks. Docs
@krantho/ui-svelteSvelte 5 components
@krantho/ui-muiMaterial UI components
@krantho/ui-tailwindTailwind CSS components

SEO and AI#

PackageWhat it is
@krantho/seoSchema.org structured data and the archetype catalog. Docs
@krantho/seo-sharedSEO field discovery and shared types, with no dependencies
@krantho/aiThe language model client for enrichment and the assistant. Docs