{"id":16300630,"url":"https://github.com/fco/aybee-client","last_synced_at":"2026-01-15T23:54:20.053Z","repository":{"id":44169670,"uuid":"140052676","full_name":"FCO/aybee-client","owner":"FCO","description":"Client for aybee Tests","archived":false,"fork":false,"pushed_at":"2023-01-13T21:50:53.000Z","size":388,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T05:42:55.451Z","etag":null,"topics":["abtest","abtest-framework","abtesting"],"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/FCO.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":"2018-07-07T04:30:06.000Z","updated_at":"2021-03-31T07:00:06.000Z","dependencies_parsed_at":"2023-02-09T17:16:22.108Z","dependency_job_id":null,"html_url":"https://github.com/FCO/aybee-client","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/FCO%2Faybee-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCO%2Faybee-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCO%2Faybee-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCO%2Faybee-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FCO","download_url":"https://codeload.github.com/FCO/aybee-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246834477,"owners_count":20841555,"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":["abtest","abtest-framework","abtesting"],"created_at":"2024-10-10T20:51:51.319Z","updated_at":"2026-01-15T23:54:20.029Z","avatar_url":"https://github.com/FCO.png","language":"JavaScript","readme":"# aybee-client\n\n## Synopsis\n\n`aybee-client` is a client library to [`aybee` tests system](http://github.com/FCO/aybee).\n\n## Example\n\n```javascript\n    const AyBee = require(\"aybee\")\n    const ayBee = await AyBee.config(\"b12458b6-815a-11e8-ba08-83307a5aa975\")\n\n    ayBee.ids.accountId = 123                           // warns if accountId is not registred\n    ayBee.ids.requestId = 456                           // warns if requestId is not registred\n\n    console.log(Object.keys(ayBee.experiments))         // get all participants experiment names\n    if(\"exp 001\" in ayBee.experiments) {                // if it's participating of experiment exp 001\n        console.log(`Exp: exp 001`)\n        console.log(\n            `Variant ${ayBee.experiments[\"exp 001\"]}`   // get the variant\n        )\n    }\n\n    const {\n        bla,\n        ble,\n        bli                = 42,\n        blo                = 13,\n        blu: anotherVar    = 3.14\n    } = ayBee.vars                                      // get variables defined by variants\n    console.log({bla, ble, bli, blo, anotherVar})\n\n    ayBee.metrics.productVisualized({product: 789})     // send metrics\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffco%2Faybee-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffco%2Faybee-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffco%2Faybee-client/lists"}