{"id":21151017,"url":"https://github.com/kkostov/telemetrydeck-wasm","last_synced_at":"2025-07-09T09:31:42.138Z","repository":{"id":43836259,"uuid":"459874684","full_name":"kkostov/telemetrydeck-wasm","owner":"kkostov","description":"(unofficial) TelemetryDeck client for fast and reliable libraries and apps using Rust and WebAssembly","archived":false,"fork":false,"pushed_at":"2022-02-16T16:39:02.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-02T11:11:22.871Z","etag":null,"topics":["analytics","api-bindings","high-performance","privacy","rust","wasm","works-with-yew"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/kkostov.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}},"created_at":"2022-02-16T06:08:26.000Z","updated_at":"2024-06-23T22:15:51.000Z","dependencies_parsed_at":"2022-09-26T20:40:54.503Z","dependency_job_id":null,"html_url":"https://github.com/kkostov/telemetrydeck-wasm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kkostov/telemetrydeck-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkostov%2Ftelemetrydeck-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkostov%2Ftelemetrydeck-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkostov%2Ftelemetrydeck-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkostov%2Ftelemetrydeck-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkostov","download_url":"https://codeload.github.com/kkostov/telemetrydeck-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkostov%2Ftelemetrydeck-wasm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263483912,"owners_count":23473657,"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":["analytics","api-bindings","high-performance","privacy","rust","wasm","works-with-yew"],"created_at":"2024-11-20T10:12:22.802Z","updated_at":"2025-07-09T09:31:41.834Z","avatar_url":"https://github.com/kkostov.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/kkostov/telemetrydeck-wasm/actions/workflows/tests.yml/badge.svg)](https://github.com/kkostov/telemetrydeck-wasm/actions/workflows/tests.yml)\n[![Lint \u0026 Format](https://github.com/kkostov/telemetrydeck-wasm/actions/workflows/lint.yml/badge.svg)](https://github.com/kkostov/telemetrydeck-wasm/actions/workflows/lint.yml)\n[![Crate](https://img.shields.io/crates/v/telemetrydeck-wasm.svg)](https://crates.io/crates/telemetrydeck-wasm)\n[![API](https://docs.rs/telemetrydeck-wasm/badge.svg)](https://docs.rs/telemetrydeck-wasm)\n\n# TelemetryDeck Client\n\nClient for integrating private analytics in fast and reliable libraries and apps using Rust and WebAssembly\n\nThe library provides a wrapper around the [TelemetryDeck](https://telemetrydeck.com) endpoint for broadcasting signals.\n\n## Sending a signal\n\n```rust\n\nlet client = TelemetryDeck::new(\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\");\n\n// Signal a type and a user identifier\nclient.send(\"addOne\", Some(\"user\"), None, None);\n\n// Signal with custom payload parameters\nclient.send(\n  \"signalType\",\n  Some(\"user identifier\"),\n  Some(HashMap::from([(\"key\".to_string(), \"value\".to_string())])),\n  None,\n);\n```\n\n## Session identifier\n\nWhen an instance of `TelemetryDeck` is created, it is assigned a session identifier. This identifier persists for all outgoing signals during the lifetime of the instance.\n\nYou can reset the session identifier without recreating the client:\n\n```rust\nclient.reset_session(None)\n```\n\nYou can also provide your own session identifier:\n\n```rust\nclient.reset_session(Some(\"my session id\".to_string()));\n```\n\nCheck the example folder for a working app using [Yew](https://yew.rs).\n\n## Disclaimer\n\nThis repository is not affiliated with [TelemetryDeck](https://telemetrydeck.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkostov%2Ftelemetrydeck-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkostov%2Ftelemetrydeck-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkostov%2Ftelemetrydeck-wasm/lists"}