| Crates.io | vize_vitrine |
| lib.rs | vize_vitrine |
| version | 0.0.1-alpha.31 |
| created_at | 2026-01-12 06:59:08.341766+00 |
| updated_at | 2026-01-12 12:46:46.167013+00 |
| description | Vitrine - The display case for Vize (Node.js/WASM bindings) |
| homepage | |
| repository | https://github.com/ubugeeei/vize |
| max_upload_size | |
| id | 2037142 |
| size | 140,266 |
The display case for Vize - Node.js & WebAssembly bindings
Vitrine (/vɪˈtriːn/) is a glass display case used in museums and galleries to showcase precious artworks and artifacts to the public. Just as a vitrine presents treasures to visitors while protecting them, vize_vitrine exposes the Vize compiler's capabilities to the JavaScript ecosystem through carefully crafted bindings.
In the art world, a vitrine:
Similarly, vize_vitrine provides:
High-performance native bindings using NAPI:
const { compileSfc } = require('@vize/native');
const { code } = compileSfc(`
<template>
<div>{{ msg }}</div>
</template>
<script setup>
const msg = 'Hello!'
</script>
`, { filename: 'App.vue' });
Cross-platform WASM bindings:
import init, { compileSfc } from '@vize/wasm';
await init();
const { code } = compileSfc(`...`, { filename: 'App.vue' });
Compile multiple files efficiently:
const { compileGlob } = require('@vize/native');
const results = compileGlob('src/**/*.vue', {
threads: 4,
format: 'js'
});
# Native bindings (Node.js)
mise run build:native
# WASM bindings (Browser)
mise run build:wasm-web
vize_vitrine is part of the Vize compiler's art-themed crate collection:
| Crate | Art Term | Role |
|---|---|---|
| vize_carton | Carton (Portfolio Case) | Shared utilities & allocator |
| vize_relief | Relief (Sculpted Surface) | AST structures |
| vize_atelier_core | Armature (Sculpture Framework) | Parser & tokenizer |
| vize_atelier | Atelier (Artist's Studio) | Compilers |
| vize_vitrine | Vitrine (Display Case) | Bindings (this crate) |
MIT License