{"id":43077417,"url":"https://github.com/itslimenade/bonbon","last_synced_at":"2026-05-04T10:01:45.835Z","repository":{"id":335073548,"uuid":"1136258324","full_name":"ItsLimeNade/bonbon","owner":"ItsLimeNade","description":"A sweet and simple Rust library for generating static diabetes data visualizations.","archived":false,"fork":false,"pushed_at":"2026-05-04T08:29:14.000Z","size":765,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-04T09:46:11.525Z","etag":null,"topics":["crate","diabetes","diabetes-dateset-analysis","graph","plotting","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/bonbon","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItsLimeNade.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-17T11:07:15.000Z","updated_at":"2026-05-04T08:29:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ItsLimeNade/bonbon","commit_stats":null,"previous_names":["itslimenade/bonbon"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ItsLimeNade/bonbon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsLimeNade%2Fbonbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsLimeNade%2Fbonbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsLimeNade%2Fbonbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsLimeNade%2Fbonbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsLimeNade","download_url":"https://codeload.github.com/ItsLimeNade/bonbon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsLimeNade%2Fbonbon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32602730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["crate","diabetes","diabetes-dateset-analysis","graph","plotting","rust"],"created_at":"2026-01-31T14:11:23.730Z","updated_at":"2026-05-04T10:01:45.829Z","avatar_url":"https://github.com/ItsLimeNade.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/images/bonbonlogo.png\" alt=\"Bonbon Logo\" width=\"120\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eBonbon\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nA sweet and simple Rust library for generating static diabetes data visualizations.\n\u003c/p\u003e\n\n---\n\n## Overview\n\nBonbon is a fast, customizable graph rendering library designed for diabetes related data visualization. It supports glucose entries, insulin doses, carbohydrate intake, and manual blood glucose readings with configurable themes, units, and layout options.\n\n## Features\n\n- **High Performance**: Optimized rendering with parallel processing via Rayon\n- **Flexible Units**: Support for mg/dL, mmol/L, or dual-unit display\n- **Treatment Visualization**: Insulin boluses, carbohydrate entries, and manual BG readings\n- **Customizable Themes**: Built-in dark \u0026 light themes with full customization support\n- **Dynamic Scaling**: Automatic Y-axis scaling based on glucose values\n- **Timezone Support**: Accurate time axis labels for any timezone\n- **Microbolus Filtering**: Configurable threshold to simplify SMB visualization\n- **BG Card**: Compact status card showing current glucose, trend, delta, IOB/COB, and a 3-hour sparkline\n\n---\n\n## Glucose Graph\n\nThe Glucose Graph is a full-resolution chart rendering glucose entries over time, with optional treatment markers (insulin boluses, carbs, manual BG readings), configurable Y-axis scaling, timezone-aware time axis, and dual-unit support.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/images/example_graph.png\" alt=\"Example Glucose Graph\" width=\"800\"\u003e\n\u003c/p\u003e\n\n\n---\n\n## BG Card\n\nThe BG Card is a compact 640×320 status card (scalable via `with_scale`) that renders current glucose, trend arrow, delta, age, IOB/COB, and a color-coded 3-hour sparkline with an ambient gradient fill.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/images/example_in_range_card.png\" alt=\"BG Card - In Range\" width=\"640\"\u003e\n  \u003cimg src=\"assets/images/example_low_card.png\" alt=\"BG Card - Low\" width=\"640\"\u003e\n\u003c/p\u003e\n\n\n\n---\n\n## Installation\n\nAdd Bonbon to your `Cargo.toml`:\n\n```toml\n[dependencies]\nbonbon = \"0.2\"\n```\n## Examples \u0026 Docs\nSome usage examples can be found in the `bonbon/examples` directory.\n\nAdditional documentation can be found on the `docs.rs` website.\n\n## Performance Tips\n\nTo achieve the best possible rendering speed, it is highly recommended to compile with **native CPU optimizations**. This enables modern SIMD instructions (AVX2, NEON, etc.), which accelerates the pixel blending and sprite rendering operations.\n\nYou can enable this by setting the `RUSTFLAGS` environment variable:\n\n```bash\nRUSTFLAGS=\"-C target-cpu=native\" cargo build --release\n```\n\nOr by adding a `.cargo/config.toml` to your project:\n\n```TOML\n[build]\nrustflags = [\"-C\", \"target-cpu=native\"]\n```\n\n## Benchmarks\n\n### BG Card build time at 4× scale (2560×1280)\nAveraged across 8 rendering scenarios (InRange, High, Low, multi-status, mmol/L, flat sparkline, single point, no sparkline).\n\n| Hardware | Avg. build time |\n| --- | --- |\n| **Ryzen 5 9600x** | ~25.3ms |\n\n### Graph build time (using native CPU compilation optimizations)\n| Benchmark Test | Resolution | Entries | Ryzen 5 9600x | Quad-core ARM Cortex-A72 |\n| --- | --- | --- | --- | --- |\n| **Standard FHD** | 1920x1080 | 288 | 2.26ms | 21.15ms |\n| **QHD** | 2560x1440 | 288 | 2.95ms | 27.80ms |\n| **UHD 4K** | 3840x2160 | 288 | 5.56ms | 59.26ms |\n| **Extreme 8K** | 7680x4320 | 288 | 19.66ms | 218.67ms |\n| **High Data Volume** | 1920x1080 | 8,640 | 34.62ms | 206.94ms |\n\n\n## License\n\nThis project is licensed under the  MPL-2.0 License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitslimenade%2Fbonbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitslimenade%2Fbonbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitslimenade%2Fbonbon/lists"}