{"id":16870079,"url":"https://github.com/diegorbaquero/node-v","last_synced_at":"2026-04-22T18:41:39.951Z","repository":{"id":50944041,"uuid":"77790397","full_name":"DiegoRBaquero/node-v","owner":"DiegoRBaquero","description":"🔒 Secure ❄️ Synchronized ⚡️ Realtime ☁️ Cloud 🌈 Native JavaScript Variables \u0026 Events","archived":false,"fork":false,"pushed_at":"2022-03-30T19:13:09.000Z","size":444,"stargazers_count":28,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-07T06:31:15.134Z","etag":null,"topics":["cloud","constants","es6","javascript","proxy","realtime","sync","synchronization","variables"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiegoRBaquero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-01T18:06:48.000Z","updated_at":"2023-06-21T14:23:10.000Z","dependencies_parsed_at":"2022-08-25T13:01:48.873Z","dependency_job_id":null,"html_url":"https://github.com/DiegoRBaquero/node-v","commit_stats":null,"previous_names":["diegorbaquero/v"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/DiegoRBaquero/node-v","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiegoRBaquero%2Fnode-v","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiegoRBaquero%2Fnode-v/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiegoRBaquero%2Fnode-v/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiegoRBaquero%2Fnode-v/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiegoRBaquero","download_url":"https://codeload.github.com/DiegoRBaquero/node-v/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiegoRBaquero%2Fnode-v/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275052415,"owners_count":25397144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","constants","es6","javascript","proxy","realtime","sync","synchronization","variables"],"created_at":"2024-10-13T15:02:09.402Z","updated_at":"2026-04-22T18:41:39.426Z","avatar_url":"https://github.com/DiegoRBaquero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/DiegoRBaquero/node-v/blob/master/logo.svg\" alt=\"V Logo\" width=\"180\" /\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e🔒 Secure ❄️ Synchronized ⚡️ Realtime ☁️ Cloud 🌈 Native JavaScript Variables \u0026amp; Events\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://npmjs.org/package/v\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/v.svg\" alt=\"npm\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.org/package/v\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/v.svg\" alt=\"downloads\" /\u003e\u003c/a\u003e \u003ca href=\"https://greenkeeper.io/\"\u003e\u003cimg src=\"https://badges.greenkeeper.io/DiegoRBaquero/node-v.svg\" alt=\"Greenkeeper badge\" /\u003e\u003c/a\u003e \n\u003ca href=\"https://travis-ci.org/DiegoRBaquero/node-v\"\u003e\u003cimg src=\"https://travis-ci.org/DiegoRBaquero/node-v.svg?branch=master\" alt=\"Build Status\" /\u003e\u003c/a\u003e \u003ca href=\"https://codecov.io/gh/DiegoRBaquero/node-v\"\u003e\u003cimg src=\"https://codecov.io/gh/DiegoRBaquero/node-v/branch/master/graph/badge.svg\" alt=\"codecov\" /\u003e\u003c/a\u003e \u003cbr\u003e \u003ca href=\"https://nodesecurity.io/orgs/diegorbaquero/projects/ed55cf1a-8809-4b3a-82df-a150fe0147e2\"\u003e\u003cimg src=\"https://nodesecurity.io/orgs/diegorbaquero/projects/ed55cf1a-8809-4b3a-82df-a150fe0147e2/badge\" alt=\"NSP Status\"\u003e\u003c/a\u003e \u003ca href=\"https://snyk.io/test/github/diegorbaquero/node-v\"\u003e\u003cimg src=\"https://snyk.io/test/github/diegorbaquero/node-v/badge.svg\" alt=\"Known Vulnerabilities\" data-canonical-src=\"https://snyk.io/test/github/diegorbaquero/node-v\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"justify\"\u003e\u003cstrong\u003eV\u003c/strong\u003e extends your in-memory variables to also be saved/persisted instantly. Variables are instantly synchronized between all running instances of \u003cstrong\u003eV\u003c/strong\u003e in a room. When you (re)start in a room, variables and constants are reloaded/rehydrated automatically.\u003c/p\u003e\n\n### Current Features\n- Keep your variables in the cloud\n- Sync variables between instances\n- Automatic reloaded/rehydrated on start-up\n\n#### Requires ES6 Proxy (Node 6+ and new browsers)\n\n### Coming Soon:\n- Web GUI\n- History - Time machine\n- Events pub/sub\n\n## Install\n\n### Node\n```sh\nnpm install --save v\nor\nnpm i -S v\n```\n\n### Browser\njsDelivr CDN:\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/v@latest/v.min.js\"\u003e\u003c/script\u003e\n```\n\nUnpkg CDN:\n```html\n\u003cscript src=\"https://unpkg.com/v/v.min.js\"\u003e\u003c/script\u003e\n```\n\nMore CDNs coming soon\n\n## API\n\n### Constructor (3 Ways to do it)\n\nIf no roomId is passed, a new one will be assigned automatically and printed in the console.\n\n##### NodeJS **only** with deasync support\n```js\nconst V = require('v')\nconst v = new V([roomId])\n```\n\n##### Callback\n```js\nconst V = require('v')\nV([roomId,] v =\u003e {\n  ...\n})\n```\n\n##### Promise\n```js\nconst V = require('v')\nV([roomId]).then(v =\u003e {\n  ...\n}).catch(e =\u003e {\n  ...\n})\n```\n\n#### Custom Opts\n\nThe `opts` object has the following options and their default options listed\n```js\nmyOpts = {\n  roomId: '',\n  server: 'ws(s)://my-domain.com'\n}\n```\n\nUse it:\n```js\nconst v = new V(myOpts)\n```\n\n## Debug logs\n\n**V** comes with extensive debugging logs. Each **V** instance and constructor-call has it own debug namespace.\n\nIn **node**, enable debug logs by setting the `DEBUG` environment variable to `*`\n\n```bash\nDEBUG=* node myProgram.js\n```\n\nIn the **browser**, enable debug logs by running this in the developer console:\n\n```js\nlocalStorage.debug = '*'\n```\n\nDisable by running this:\n\n```js\nlocalStorage.removeItem('debug')\n```\n\n## License\nMIT Copyright © [Diego Rodríguez Baquero](https://diegorbaquero.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegorbaquero%2Fnode-v","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegorbaquero%2Fnode-v","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegorbaquero%2Fnode-v/lists"}