npm.io
0.5.1 • Published 3d ago

vue-lynx

Licence
Apache-2.0
Version
0.5.1
Deps
7
Size
1.2 MB
Vulns
0
Weekly
0
Stars
457

vue-lynx

Vue 3 custom renderer for building Lynx apps.

Pre-Alpha — Expect bugs and enjoy!

Pre-Alpha Website License

Documentation

Visit vue.lynxjs.org for full documentation, including:

IDE Setup

Install the Vue Language Features (Volar) extension for VS Code, or the equivalent for your editor (Zed has built-in Vue support via its Vue extension).

Add the following to your tsconfig.json (or jsconfig.json for JS projects):

{
  "compilerOptions": {
    "types": ["vue-lynx/types"]
  },
  "vueCompilerOptions": {
    "plugins": ["vue-lynx/types/volar-plugin"]
  }
}

This enables:

  • Correct prop types and completions for all Lynx elements (<view>, <text>, <image>, etc.)
  • IDE errors when using unsupported event modifiers (.capture, .passive)
  • Type-checked global-bind*, global-catch*, and main-thread-* props

Projects created with create-vue-lynx have this pre-configured.

Examples

See the examples/ directory for complete working examples:

Contributing

git clone https://github.com/Huxpro/vue-lynx.git
cd vue-lynx
pnpm install
pnpm build
Scripts
Command Description
pnpm build Build all packages (internal, runtime, main-thread, plugin)
pnpm dev Watch mode for runtime, main-thread, and plugin
pnpm test Run tests (testing-library)
pnpm test:upstream Run upstream Vue compatibility tests
pnpm test:dev-smoke Run dev smoke tests
pnpm lint Lint with Biome
Run examples locally
cd examples/basic
pnpm install
pnpm dev

License

Apache-2.0

Keywords