VZparse
Minimal. Human-readable. Machine-parsable. Schema-validated.
Minimal. Human-readable. Machine-parsable. Schema-validated.
project: "VZparse"
tags: [
"minimal"
"readable"
"schema-validated"
]
# A simple nested object
spec: {
version: 1
author: "VZparse Contributors"
}
# Array of objects
examples: [
{ name: "JSON", born: 2001 }
{ name: "YAML", born: 2001 }
{ name: "VZparse", born: 2024 }
]
# Schema validation
schema: {
id: "int(min:1,max:1000)!"
name: "string(minLength:3,maxLength:50)!"
email: "string(format:email)!"
}
# Template strings
user: {
name: "Alice"
role: "admin"
}
greeting: "Hello, ${user.name}! You are a ${user.role}."
notes: |markdown
# VZparse Features
This is a **multiline string** with metadata.
Keeps formatting as-is.
## Advanced Features
- Schema validation
- Template strings
- Import system
- Multiline strings with metadataJSON is the most popular data-interchange format. But it isn't a very good configuration language.
VZparse keeps JSON's simplicity and adds the needed bits for a modern configuration language:
VZparse is human-readable, easy to parse, and type-safe.
${variable} syntax|markdown, |json``)npm install vzparseimport { VZ } from 'vzparse';
const config = VZ.parse(`
app: {
name: "MyApp"
version: "1.0.0"
}
user: {
name: "Alice"
role: "admin"
}
greeting: "Hello, ${user.name}! You are a ${user.role}."
`, {
resolveTemplates: true,
context: { user: { name: 'Alice', role: 'admin' } }
});
console.log(config.greeting); // "Hello, Alice! You are an admin."VZparse is actively developed with multiple implementations:
JavaScript/TypeScript
vzparse VZparse v1.0
VS Code Extension
vzparse-js-sdk Syntax highlighting
Website
learn.vzparse.xyz Documentation
What's the difference between VZparse and YAML/JSON?
How does schema validation work?
Can I use VZparse in production?