From Data to Application: Unlocking Potential with Velite
Velite is a tool for building type-safe data layer, turn Markdown / MDX, YAML, JSON, or other files into app's data layer with Zod schema.
Features
- Easy to use: Move your contents into
content
folder, define collections schema, runvelite
, then use the output data in your application. - Type-safe: Contents schema validation by Zod, and generate type inference for TypeScript.
- Framework Agnostic: JSON & Entry & DTS output, out of the box support for any JavaScript framework or library.
- Light-weight: Choose more native APIs instead of bloated NPM modules, less runtime dependencies, so it is fast and efficiently.
- Still powerful: Built-in Markdown / MDX, YAML, JSON support, relative files & images processing, schema validation, etc.
- Configurable: Both input and output directories can be customized, and support for custom loaders, hooks, etc.
- Extensible: Support any file types by custom loaders, Custom field validation and transform by custom schema, and any output formats by hooks.
License
MIT License