V extends your in-memory variables to also be saved/persisted instantly. Variables are instantly synchronized between all running instances of V in a room. When you (re)start in a room, variables and constants are reloaded/rehydrated automatically.
- Keep your variables in the cloud
- Sync variables between instances
- Automatic reloaded/rehydrated on start-up
Requires ES6 Proxy (Node 6+ and new browsers)
- Web GUI
- History - Time machine
- Events pub/sub
npm install --save vornpm i -S v
More CDNs coming soon
Constructor (3 Ways to do it)
If no roomId is passed, a new one will be assigned automatically and printed in the console.
NodeJS only with deasync support
const V =const v = roomId
const V =
const V =
opts object has the following options and their default options listed
myOpts =roomId: ''server: 'wss://api.online.vars'
const v = myOpts
V comes with extensive debugging logs. Each V instance and constructor-call has it own debug namespace.
In node, enable debug logs by setting the
DEBUG environment variable to
DEBUG=* node myProgram.js
In the browser, enable debug logs by running this in the developer console:
localStoragedebug = '*'
Disable by running this:
GPL-3.0 Copyright © Diego Rodríguez Baquero