vize_vitrine

Crates.iovize_vitrine
lib.rsvize_vitrine
version0.0.1-alpha.31
created_at2026-01-12 06:59:08.341766+00
updated_at2026-01-12 12:46:46.167013+00
descriptionVitrine - The display case for Vize (Node.js/WASM bindings)
homepage
repositoryhttps://github.com/ubugeeei/vize
max_upload_size
id2037142
size140,266
ubugeeei (ubugeeei)

documentation

README

vize_vitrine logo

vize_vitrine

The display case for Vize - Node.js & WebAssembly bindings


Name Origin

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:

  • Displays - Presents works for public viewing
  • Protects - Provides a safe interface to valuable items
  • Illuminates - Makes art accessible and visible

Similarly, vize_vitrine provides:

  • Node.js bindings - Native performance via NAPI
  • WebAssembly bindings - Browser-compatible compilation
  • Safe interfaces - Type-safe APIs for JavaScript/TypeScript

Features

Node.js (Native)

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' });

WebAssembly (Browser)

Cross-platform WASM bindings:

import init, { compileSfc } from '@vize/wasm';

await init();
const { code } = compileSfc(`...`, { filename: 'App.vue' });

Batch Compilation

Compile multiple files efficiently:

const { compileGlob } = require('@vize/native');

const results = compileGlob('src/**/*.vue', {
  threads: 4,
  format: 'js'
});

Build

# Native bindings (Node.js)
mise run build:native

# WASM bindings (Browser)
mise run build:wasm-web

Part of the Vize Art Collection

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)

License

MIT License

Commit count: 135

cargo fmt