{"id":19513035,"url":"https://github.com/invrs/variate","last_synced_at":"2026-07-25T02:30:17.653Z","repository":{"id":57390859,"uuid":"49451475","full_name":"invrs/variate","owner":"invrs","description":"Client-side multivariate testing","archived":false,"fork":false,"pushed_at":"2016-08-18T20:11:11.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-10T00:04:32.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invrs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-11T20:11:28.000Z","updated_at":"2016-01-12T08:54:13.000Z","dependencies_parsed_at":"2022-09-18T05:36:15.399Z","dependency_job_id":null,"html_url":"https://github.com/invrs/variate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fvariate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fvariate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fvariate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fvariate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invrs","download_url":"https://codeload.github.com/invrs/variate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762307,"owners_count":19853457,"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","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-10T23:28:32.869Z","updated_at":"2026-07-25T02:30:17.439Z","avatar_url":"https://github.com/invrs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Variate [![Build Status](https://travis-ci.org/invrs/variate.svg?branch=master)](https://travis-ci.org/invrs/variate)\n\nClient-side multivariate testing.\n\n## Install\n\n```bash\nnpm install variate\n```\n\n## Usage\n\nVariate uses the [industry factory pattern](https://github.com/invrs/industry):\n\n```js\nimport variate from \"variate\"\n\nvariate({\n  cookie: {\n    expires: 10 * 365,\n    path:    \"/\",\n    domain:  \"site.com\",\n    secure:  true\n  },\n  tests: {\n    banner: [ \"short\", \"tall\" ]\n  },\n  callback: ({ name, test, variant, converted }) =\u003e {\n    // name - \"banner\"\n    // test - [ \"short\", \"tall\" ]\n    // variant - \"short\" or \"tall\"\n    // converted - true or false\n  }\n})\n\n// returns \"short\" or \"tall\"\n//\nvariate().test({ name: \"banner\" })\n\n// record conversion\n//\nvariate().convert({ name: \"banner\" })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvrs%2Fvariate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvrs%2Fvariate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvrs%2Fvariate/lists"}