{"id":35234385,"url":"https://github.com/quentinandre/distributionbuilder","last_synced_at":"2026-03-17T20:03:05.790Z","repository":{"id":93133876,"uuid":"70399384","full_name":"QuentinAndre/DistributionBuilder","owner":"QuentinAndre","description":"A Javascript library to conveniently add distribution builders to your online and offline experiments.","archived":false,"fork":false,"pushed_at":"2023-05-25T01:02:02.000Z","size":1907,"stargazers_count":12,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-10-20T22:43:33.710Z","etag":null,"topics":["cognition","experiment-design","javascript-library","offline-experiments"],"latest_commit_sha":null,"homepage":null,"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/QuentinAndre.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,"governance":null}},"created_at":"2016-10-09T11:44:26.000Z","updated_at":"2023-10-20T22:43:35.588Z","dependencies_parsed_at":"2023-06-05T02:45:12.952Z","dependency_job_id":null,"html_url":"https://github.com/QuentinAndre/DistributionBuilder","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/QuentinAndre/DistributionBuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinAndre%2FDistributionBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinAndre%2FDistributionBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinAndre%2FDistributionBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinAndre%2FDistributionBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuentinAndre","download_url":"https://codeload.github.com/QuentinAndre/DistributionBuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuentinAndre%2FDistributionBuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cognition","experiment-design","javascript-library","offline-experiments"],"created_at":"2025-12-30T03:30:32.855Z","updated_at":"2026-03-17T20:03:05.785Z","avatar_url":"https://github.com/QuentinAndre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# distBuilder\nA Javascript library to conveniently add distribution builders to your online and offline experiments.\n\n## Changelog:\n\n### v1.4 (master)\n* Added arguments to the initialization of the distBuilder:\n  * `toggleGridClick`. If true, this argument allows user to add balls to bucket by clicking on the grid.\n  * `addTotals`. If true, add a \"totals\" row at the bottom of the distBuilder, summarizing how many balls are in each bucket.\n    Thanks to Marine Hainguerlot for the suggestion!\n  \n* Fixed rare bugs causing the visual aspect of the distBuilder to diverge from its internal state\n* Cleaned up the code and documentation. It should now be faster for larger distBuilders.\n\n\n### v1.3 (master)\n* Added method: `distBuilder.setDistribution()`. This function is useful if you want the user to start from\na pre-specified distribution. Thanks to Roy Hsieh for the suggestion!\n\n\n### v1.2\n* Minor changes to CSS to enhance compatibility with Qualtrics.\n* distBuilder has been rewritten in Typescript. This does not affect the behavior of the library in any\nway, but makes it easier for developers to build more complex apps on top of distBuilder.\n\n\n### v1.1\n* The width of the distribution builder is now automatically adjusted\nusing CSS `flexbox`.\n* The argument `resize` of `DistributionBuilder.render()` will be\ndeprecated in future versions. For compatibility reasons, using the\n`resize` argument does not raise an error, but it no longer affects the\nbehavior of the distribution builder.\n* Changed the HTML structure: the inner `\u003cdiv class=\"cell\"\u003e\u003c/div\u003e` now\nincludes a `\u003cdiv class=\"ball\"\u003e\u003c/div\u003e`. The appearance of the \"balls\" in\nthe distribution builder can now be changed more easily.\n* The method `getDistribution()` now returns a copy of the current allocation. This is to avoid \naccidental side-effects.\n\n\n### v1.0\n* First release of the library.\n\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.166736.svg)](https://doi.org/10.5281/zenodo.166736)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinandre%2Fdistributionbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinandre%2Fdistributionbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinandre%2Fdistributionbuilder/lists"}