Introduction to Velite (Edited)
A modern content layer for Next.js with powerful transformation capabilities
What is Velite?
Velite is a modern content layer that transforms your markdown, MDX, and other content formats into type-safe data for your Next.js application. yes! Yas!
Key Features
- Custom Loaders - Support any file format
- Image Processing - Automatic optimization and blur placeholders
- Type Safety - Full TypeScript support
- Flexible Schema - Define complex content structures
Getting Started
Install Velite and configure your collections:
export default defineConfig({
collections: {
posts: {
pattern: 'posts/**/*.md',
schema: s.object({
title: s.string(),
date: s.isodate(),
content: s.markdown(),
}),
},
},
})
Image Handling
Velite automatically processes images:
Images get blur placeholders and optimized paths.
Related Resources
Check out the documentation for more details.
View JSON
{
"toc": [
{
"title": "What is Velite?",
"url": "#what-is-velite",
"items": [
{
"title": "Key Features",
"url": "#key-features",
"items": []
},
{
"title": "Getting Started",
"url": "#getting-started",
"items": []
},
{
"title": "Image Handling",
"url": "#image-handling",
"items": []
},
{
"title": "Related Resources",
"url": "#related-resources",
"items": []
}
]
}
],
"metadata": {
"readingTime": 1,
"wordCount": 105
}
}
