{"id":19541311,"url":"https://github.com/wingify/vwo-openfeature-provider-node","last_synced_at":"2025-07-22T20:34:16.549Z","repository":{"id":237945763,"uuid":"794891808","full_name":"wingify/vwo-openfeature-provider-node","owner":"wingify","description":"Openfeature Provider for VWO Node SDK","archived":false,"fork":false,"pushed_at":"2024-05-03T13:13:03.000Z","size":19,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-29T19:41:14.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developers.vwo.com/v2/docs/node-openfeature-provider","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wingify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T07:00:08.000Z","updated_at":"2025-06-10T01:42:31.000Z","dependencies_parsed_at":"2024-05-03T17:44:07.028Z","dependency_job_id":null,"html_url":"https://github.com/wingify/vwo-openfeature-provider-node","commit_stats":null,"previous_names":["wingify/vwo-openfeature-provider-node"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wingify/vwo-openfeature-provider-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fvwo-openfeature-provider-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fvwo-openfeature-provider-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fvwo-openfeature-provider-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fvwo-openfeature-provider-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingify","download_url":"https://codeload.github.com/wingify/vwo-openfeature-provider-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingify%2Fvwo-openfeature-provider-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567640,"owners_count":23949391,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-11T03:09:37.253Z","updated_at":"2025-07-22T20:34:16.529Z","avatar_url":"https://github.com/wingify.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## VWO Openfeature Provider Node\n\n[![npm version](https://badge.fury.io/js/vwo-openfeature-provider-node.svg)](https://www.npmjs.com/package/vwo-openfeature-provider-node)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n### Requirements\n\n- Node 10+\n\n### Installation\n\n```bash\n# via npm\nnpm install vwo-openfeature-provider-node --save\n\n# via yarn\nyarn add vwo-openfeature-provider-node\n```\n\n### Example\n\n```javascript\nconst OpenFeature = require('@openfeature/server-sdk').OpenFeature;\nconst VWOProvider = require('vwo-openfeature-provider-node').VWOProvider;\nconst vwo = require('vwo-fme-node-sdk');\n\nasync function start() {\n  const vwoClient = await vwo.init({\n    sdkKey: '\u003center-vwo-sdk-key-here\u003e',\n    accountId: '\u003cvwo-account-id\u003e'\n  });\n  const context = {\n    user: {\n      id: 'unique-user-id',\n    },\n  };\n\n  const provider = new VWOProvider(vwoClient);\n  OpenFeature.setProvider(provider);\n\n  const newClient = OpenFeature.getClient();\n  newClient.setContext(context);\n\n  console.log(\n    'BOOLEAN',\n    await newClient.getBooleanValue(\n      'unique-feature-key',\n      false,\n      Object.assign({}, context, { key: 'boolean_variable' }),\n    ),\n  ); //pass 'key' if you want to fetch value of a specific variable. Otherwise it will return feature on/off\n  console.log(\n    'STRING',\n    await newClient.getStringValue('unique-feature-key', '', Object.assign({}, context, { key: 'string-variable' })),\n  ); //will return undefined without key\n  console.log(\n    'NUMERIC',\n    await newClient.getNumberValue('unique-feature-key', 10, Object.assign({}, context, { key: 'number-variable' })),\n  ); //will return undefined without key\n  console.log(\n    'FLOAT',\n    await newClient.getNumberValue('unique-feature-key', 10.0, Object.assign({}, context, { key: 'float-variable' })),\n  ); //will return undefined without key\n  console.log(\n    'JSON',\n    await newClient.getObjectValue('unique-feature-key', {}, Object.assign({}, context, { key: 'json-variable' })),\n  ); //pass 'key' if you want to fetch value of a specific variable of type JSON. Otherwise it will return all the variables.\n}\n\nstart();\n```\n\n### Scripts\n\n1. Build - it will compile typescript and create minified version too\n```\nyarn run build\n```\n\n2. Compile - convert typescript into javascript\n```\nyarn run tsc\n```\n\n3. Prettier - beautify code\n```\nyarn run prettier\n```\n\n4. Uglify - minify javascript code after compilation\n```\nyarn run uglify\n```\n\n### Contributing\n\nPlease go through our [contributing guidelines](https://github.com/wingify/vwo-openfeature-provider-node/blob/master/CONTRIBUTING.md)\n\n### Code of Conduct\n\n[Code of Conduct](https://github.com/wingify/vwo-openfeature-provider-node/blob/master/CODE_OF_CONDUCT.md)\n\n### License\n\n[Apache License, Version 2.0](https://github.com/wingify/vwo-openfeature-provider-node/blob/master/LICENSE)\n\nCopyright 2024 Wingify Software Pvt. Ltd.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Fvwo-openfeature-provider-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingify%2Fvwo-openfeature-provider-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingify%2Fvwo-openfeature-provider-node/lists"}