@starside-io/verso-schema
v0.4.0
Published
Zod schemas and TypeScript types for Verso decks, slides, and themes
Readme
@starside-io/verso-schema
Zod schemas and TypeScript types for Verso decks, slides, and content blocks.
What's in here
Manifest— deck-level schema (deck.json)Slide— per-slide schema withlayout,content,path_include/exclude,transition,style_overridesContentBlock— recursive union of all block types (heading,text,bullets,image,quote,code,callout,card,panel,embed, and more)Theme,StyleOverrides,Align— supporting types/json-schemaexport — machine-readable JSON Schema for editor integrations
Install
npm install @starside-io/verso-schemaUsage
import { Slide, Manifest } from '@starside-io/verso-schema'
const result = Slide.safeParse(rawJson)Docs
Full schema reference: github.com/starside-io/verso/blob/main/docs/schema.md
Part of the Verso monorepo. Apache 2.0.
