@lumis-sh/wasm-vue

Tree-sitter parser and queries for vue, compiled to WASM for Lumis
3,609 232
Install
npm install @lumis-sh/wasm-vue
Latest Version:0.26.2
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: leandrocp

@lumis-sh/wasm-vue

Self-contained Lumis language package for vue.

The Tree-sitter parser is compiled to WASM and ships with the queries that highlight it.

Built with tree-sitter build --wasm v0.26.11

Used by Lumis and compatible with web-tree-sitter v0.26 and other WASM runtimes.

Installation

npm install @lumis-sh/wasm-vue

Usage

The package exports the language, ready for Lumis, in Node and in a browser:

import { createHighlighter } from '@lumis-sh/lumis'
import vue from '@lumis-sh/wasm-vue'

const highlighter = await createHighlighter({ languages: [vue] })

What it contains

tree-sitter-vue.wasm is the parser. lumis.json describes it and records its size, its SHA-256 and the queries.

Node reads both from the installed package, and a bundler ships them with your code, so nothing is downloaded at runtime.

Parser

Parser Version Rev
https://github.com/tree-sitter-grammars/tree-sitter-vue.git 0.1.0 ce8011a414fdf8091f4e4071752efc376f4afb08

The same parser is published to Hex as lumis_wasm_vue — byte for byte, from one build, so both registries serve the same artifact.

CDN

License

The Lumis packaging is MIT. The parser itself is redistributed from the upstream project above; see that project for its license.

Related Packages

@arborium/vue

Syntax highlighting for Vue, powered by WebAssembly

68,328 507
@colletdev/vue

Vue 3 wrappers for Collet Rust/WASM UI components

13,534
@ticket-editor/vue

Embeddable Vue 3 ticket-format editor with a 1:1 wasm preview. Zero coupling to...

8,031 3
@wterm/vue

Vue component for wterm — a terminal emulator for the web

5,271 3,511
@zzk-1015/vue-onlyoffice-local

A Vue 3 plugin for fully-local OnlyOffice document editing. Aligns with the upst...

692 8

Version History

Version Released License
0.26.2 MIT
0.26.1 MIT
0.26.0 MIT