@duytran7/landing-core
v0.1.1
Published
Types, Zod schema, parser and component registry for landing page JSON config. Framework-agnostic.
Maintainers
Readme
@duytran7/landing-core
Types, Zod schema, parser, and component registry for landing page JSON config. Framework-agnostic (no React).
Install
pnpm add @duytran7/landing-coreExports
- Types:
LandingConfig,LandingSection,LandingThemeConfig,SectionBase,SectionAnimation,SectionEffects, and section types (HeroSection,NavSection,NavMobileConfig,FeaturesSection,VideoEmbedSection,CountdownSection,TrustBadgesSection, etc.). - Schema:
landingConfigSchema(Zod) to validate JSON. Supports theme (themeId,fontId), sectionanimationandeffects, Navmobile, Herobackground.videoOptions/lottieOptions. - Parser:
parseLandingConfig(json)orparseLandingConfigStrict(json). - Registry:
componentRegistry,getComponentRegistryEntry(id),getComponentRegistryJson()for AI, tooling, and MCP.
Section types (registry)
hero, nav, features, stats, logo-cloud, team, testimonials, pricing, faq, cta, newsletter, contact, gallery, banner, comparison, timeline, map, blog-grid, video-embed, countdown, trust-badges, footer.
See monorepo docs, docs/SCHEMA.md, and docs/COMPONENTS.md.
