Skip to content
VaelJS Blog

vjs vs vjs-lite

VaelJS provides two compatible runtimes built on shared module policy, TypeScript stripping, and core Rust crates: vjs (V8) and vjs-lite (QuickJS).

Dimension vjs (vaeljs / vaeljs-core) vjs-lite (vaeljs-lite / vaeljs-lite-core)
JS Engine V8 via vendored deno_core 0.413.0 QuickJS-NG via rquickjs 0.15.0
Vael.engine "vael" "vael-lite"
Async / Event Loop Full Tokio multi-thread + current-thread event loop (hyper HTTP, vael:db, vael:fetch, vael:exec, vael:archive, vael:cron, *Async crypto) QuickJS job queue only (max 100,000 jobs; no host timers or external async I/O event loop)
TypeScript Stripping .ts and .mts via deno_ast (always enabled) .ts and .mts via deno_ast (opt-outable in Rust via --no-default-features)
Built-in Modules 75 total: 36 vael:* (33 default + 3 opt-in messaging) + 39 node:* 54 total: 27 sync vael:* + 27 sync/pure-JS node:*
vael.jsonc & Workspaces Built-in discovery + --config / --no-config Built-in discovery + --config / --no-config (opt-in manifest feature in core crate)
npm: & package.json Yes (offline-first CAS cache, vael.lock v1, .npmrc) Yes (offline-first CAS cache, vael.lock v1, .npmrc, zero Tokio/hyper via blocking ureq + rustls)
Remote (https:, gh:, jsr:) Opt-in via --allow-remote or VAELJS_ALLOW_REMOTE=1 Opt-in via --allow-remote or VAELJS_ALLOW_REMOTE=1 (blocking ureq + rustls)
Test Timeouts Default 30_000 ms (test(name, fn, { timeout })) Rejected with VAEL_TEST_NO_TIMER
Rust Embedding Footprint Full V8 + Tokio + Hyper Compact QuickJS-only; zero V8, Tokio, or Hyper

Every module below is verified against vaeljs-dts (Profile::V8 and Profile::Lite). Bare names never resolve to built-ins unless mapped explicitly in vael.jsonc.

Specifier vjs (V8) vjs-lite (QuickJS) Notes
vael:age Yes — X25519 binary age v1 encryption/decryption
vael:amqp Opt-in — Async AMQP 0-9-1 client (vael-amqp / vael-messaging Cargo feature)
vael:ansi Yes Yes SGR styling, 16/256/TrueColor, cursor/screen/OSC 8/DEC 2026, visibleWidth/truncate/wrap
vael:archive Sync + Async Sync only Hardened tar, tar.gz, tar.zst, zip (create, extract, list, readEntry V8-only)
vael:assert Yes Yes Callable assert, equals, strictEquals, throws, rejects, AssertionError
vael:chars Yes Yes Unicode General_Category predicates and case conversion
vael:console Yes Yes log, debug, info, warn, error
vael:cron Yes — UTC five-field cron() scheduler and next()
vael:crypto Sync + *Async Sync only AES-256, SHA-2, BLAKE2/BLAKE3, HMAC, PBKDF2, bcrypt, Shamir (*Async helpers V8-only)
vael:db Yes — Zero-ORM fluent SQL builder, sql templates, savepoints, rich types, SQLite + opt-in PostgreSQL/MySQL/MariaDB/MSSQL (vael-db-*)
vael:db/migrate Yes — Deterministic SQL migration loader, dry-run plan(), up()/down(), verify(), flatten(), and MySQL/MariaDB reconcile()
vael:exec Sync + Async/Stream Sync only Argv-only Command/cmd, which*, PathFinder/pathFinder, addLogger, lockFile*
vael:fetch Sync + Async Sync only SSRF-hardened fetch/fetchSync and SHA-256 atomic download/downloadSync
vael:fmt Yes Yes sprintf, printf, print, echo, echof, errorf, inspect, stripAnsiCode, setNoColor
vael:fmt/bytes Yes Yes Human-readable decimal/IEC byte and bit format()
vael:fmt/duration Yes Yes Human-readable millisecond duration format()
vael:fmt/inspect Yes Yes Focused subpath for inspect
vael:fmt/printf Yes Yes Focused subpath for sprintf/printf/echof/print/echo/errorf
vael:fmt/strip-ansi-code Yes Yes Focused subpath for stripAnsiCode
vael:fs Yes Yes Synchronous file/dir ops + writeFileAtomic
vael:fs/acl Yes Yes Cross-platform POSIX modes/ACLs, Windows DACLs, and xattr (capabilities(), *Sync)
vael:http Yes — Go 1.22+ ServeMux, middleware, .static(), serve(), .fetch()
vael:nats Opt-in — Async NATS & JetStream client (vael-nats / vael-messaging Cargo feature)
vael:os Yes Yes Build-time platform/arch constants + runtime host release()
vael:os/dirs Yes Yes Cross-platform XDG Base Directories and .NET SpecialFolder resolution
vael:path Yes Yes Lexical posix, win32, join, resolve, relative, common
vael:redis Opt-in — Async Redis client & Pub/Sub (vael-redis / vael-messaging Cargo feature)
vael:slices Yes Yes Live mutable/read-only Slice and CharSlice views
vael:ssh Yes Yes Sync SSH exec + native SFTP (conn.sftp) + agentSocket (Unix & Windows named pipe)
vael:stdio Yes — Readable, Writable, stdout, stderr
vael:strings Yes Yes Unicode 16.0 case-folding search and trimming
vael:template Yes Yes Go text/template + Sprig helpers (render, compile, createTemplateSet, escapeHtml)
vael:test Yes Yes Registration test runner (timeout rejected in vjs-lite)
vael:uuid Yes Yes RFC 9562 v4 and v7
vael:uuid/v4 Yes Yes Subpath exporting v4 (named and default)
vael:uuid/v7 Yes Yes Subpath exporting v7 (named and default)
Specifier vjs (V8) vjs-lite (QuickJS) Notes
node:assert Yes Yes Adapter over vael:assert
node:assert/strict Yes Yes Strict-mode alias
node:async_hooks Yes — AsyncLocalStorage, AsyncResource
node:buffer Yes Yes Buffer (extends Uint8Array)
node:child_process spawnSync, execFileSync, execFile spawnSync, execFileSync Shell-free execution (execFile is V8-only)
node:console Yes Yes Adapter over vael:console + Console
node:crypto Full Sync + webcrypto Async scrypt/hkdf/pbkdf2/randomFill V8-only; SHA-2 only
node:diagnostics_channel Yes Yes Pub-sub telemetry channels
node:dns Yes — Tokio async DNS (lookup, resolve*, Resolver)
node:dns/promises Yes — Promise DNS API
node:events Yes Yes EventEmitter, once, on
node:fs Sync + .promises Sync only Sync *Sync ops + constants (fs.promises V8-only)
node:fs/promises Yes — Async filesystem promises (V8-only)
node:http Yes — HTTP/1.1 client & server (hyper / Tokio)
node:https Yes — HTTPS client & server (rustls + http)
node:module Yes Yes builtinModules, isBuiltin, findPackageJSON (no createRequire)
node:net Yes — Tokio TCP/Unix Socket, Server, isIP*
node:os Yes Yes platform, arch, homedir, tmpdir, cpus, release, etc.
node:path Yes Yes Host dialect path helpers
node:path/posix Yes Yes POSIX path helpers
node:path/win32 Yes Yes Windows path helpers
node:perf_hooks Full Subset performance, PerformanceObserver (monitorEventLoopDelay V8-only)
node:process Yes Yes argv, cwd, chdir, env, exit, exitCode, hrtime, etc.
node:querystring Yes Yes parse, stringify, escape, unescape
node:readline Yes — Line-oriented CLI input
node:readline/promises Yes — Promise createInterface
node:stream Yes Yes Readable, Writable, Duplex, Transform, pipeline, finished
node:stream/consumers Yes Yes text, json, buffer, arrayBuffer, bytes, blob
node:stream/promises Yes Yes Promise pipeline and finished
node:stream/web Yes Yes WHATWG ReadableStream, WritableStream, TransformStream
node:string_decoder Yes Yes StringDecoder
node:timers Yes — setTimeout, setInterval, setImmediate (V8-only)
node:timers/promises Yes — Promise timers + scheduler.wait (V8-only)
node:tls Yes — TLSSocket, connect, createServer (rustls)
node:tty Full isatty only isatty(fd) (ReadStream/WriteStream V8-only)
node:url Yes Yes fileURLToPath, pathToFileURL, URL, URLSearchParams
node:util Yes Yes format, inspect, promisify, parseArgs, TextEncoder/TextDecoder
node:util/types Yes Yes Engine type-check predicates
node:zlib Sync + Stream Sync + crc32 gzipSync/gunzipSync/deflateSync/brotli*/zstd* + crc32
Flag / Setting vjs vjs-lite
<file>, test <glob>..., types Yes Yes
lsp [--stdio] Yes —
db migrate <subcommand> Yes —
<url> entrypoint (https:, gh:/github:, jsr:) Yes Yes
--config <path>, --no-config Yes Yes
--no-node-compat Yes Yes
--allow-remote, --no-allow-remote, VAELJS_ALLOW_REMOTE Yes Yes
--frozen-lockfile, --offline, --no-npm Yes Yes
  • Use vjs when you need Tokio async modules (vael:http, vael:db, vael:age, vael:cron, vael:stdio, async vael:fetch/vael:exec/vael:archive, vael:crypto *Async helpers, node:fs/promises, node:http/https/net/tls/dns, node:timers), test(..., { timeout }), vjs lsp, or V8 JIT throughput.
  • Use vjs-lite when you want fast-starting synchronous automation scripts (vael:fs, vael:fs/acl, vael:ssh + SFTP, vael:fetch sync, vael:exec sync, vael:archive sync, vael:ansi, vael:fmt, vael:template, vael:crypto sync, npm:, jsr:, gh:/github:, https:, vael.jsonc), shared cross-engine tests, or a lightweight embedded JS/TS engine (including wasm32) in Rust without V8, Tokio, or Hyper.