Registry / http-networking / wyvern

wyvern

JSON →
library0.2.0jsnpmunverified

wyvern is a reactive JavaScript transpiler that compiles reactive syntax into standard JavaScript. At version 0.2.0, it is in early development with an unstable API. It differentiates itself by providing a declarative reactive programming model that compiles to efficient vanilla JS, targeting developers who want reactivity without a runtime library. The package is meant to be used as a build tool (transpiler) and is not designed for runtime use. Release cadence is unknown as the project is new.

npm install wyvern
INSTALL
IMPORT
SIG · WYVERN
W
wyvern
http-networkingjavascriptv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile
import { compile } from 'wyvern';
const wyvern = require('wyvern'); const compile = wyvern.compile;
Package is ESM-only; CommonJS require will not work.
default (module)
import wyvern from 'wyvern';
const wyvern = require('wyvern');
Default export may not exist; prefer named imports.
transform
import { transform } from 'wyvern';
Check if transform is exported; version 0.2.0 may have limited exports.

Shows how to use the compile function to transpile a source file, with error handling.

import { compile } from 'wyvern'; import { readFileSync, writeFileSync } from 'fs'; const source = readFileSync('input.js', 'utf8'); try { const output = compile(source, { sourceType: 'module' }); writeFileSync('output.js', output.code, 'utf8'); } catch (e) { console.error('Compilation failed:', e.message); }
wyvern --version
Debug
Known issues
breakingAPI is unstable and may change without notice in versions < 1.0.0.
fix
Pin to exact version and expect breaking changes.
affects: <1.0
gotchaPackage is ESM-only; CommonJS require will fail with ERR_REQUIRE_ESM.
fix
Use ES module syntax (import) or dynamic import() in CommonJS projects with bundler.
affects: >=0.1
gotchacompile() options may be incomplete; check documentation for supported options.
fix
Supply only sourceType if unsure; options object may be ignored.
affects: 0.2.0
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using require() to import an ESM-only package.
fix
Replace require('wyvern') with import statements or use dynamic import.
TypeError: wyvern.compile is not a function
Default import or wrong import path.
fix
Use named import: import { compile } from 'wyvern';
Upgrade
Version history
0.2.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
wyvern — npm install wyvern · libregistry