Velite
Content layer library that turns Markdown, MDX, YAML and JSON files into typed data for a JavaScript or TypeScript application.
Velite is a content layer library that reads Markdown, MDX, YAML and JSON files from a content folder, checks each entry against a Zod schema declared in a config file, and writes the result as typed data an application imports. Image and file references inside the content are resolved at build time, and image optimization is part of the built-in asset processing. The author is Lei Wang.
The package is installed as a development dependency and run with the velite command, optionally in watch mode during development. The quick start covers the config file and the content folder layout.
Worth knowing
Velite is an ESM-only package, so it cannot be loaded with require(), and the nearest package.json needs "type": "module" or the config file needs a module extension.
The introduction says the documentation “is not yet complete”.
Identity
- Status
- Active
- Maintainer
- Lei Wang5
- Maintained by
- Individual
- First release
- 202412
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-23: links, License, License model
velite.js.org - 2026-10-23: links, Categories
velite.js.org/guide/introduction - 2026-10-23: links, Written in
github.com/zce/velite - 2026-10-23: License
github.com/zce/velite/blob/main/license - 2026-10-23: Maintainer
zce.me/ - 2026-10-23: Runtime, Minimum runtime, Install with, Content storage
velite.js.org/guide/quick-start - 2026-10-23: Runs as
velite.js.org/reference/cli - 2026-10-23: GitHub stars
api.github.com/repos/zce/velite - 2026-10-23: Contributors
api.github.com/repos/zce/velite/contributors - 2026-10-23: npm downloads a week
api.npmjs.org/downloads/point/last-week/velite - 2026-10-23: Current major version, Last release
github.com/zce/velite/releases/tag/v0.4.0 - 2026-10-23: First release
github.com/zce/velite/releases/tag/v0.1.0 - 2026-10-25: Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/velite