{"id":20021348,"url":"https://github.com/piotrpdev/realtime-serial-graph","last_synced_at":"2026-05-15T01:36:27.533Z","repository":{"id":239099997,"uuid":"797917905","full_name":"piotrpdev/realtime-serial-graph","owner":"piotrpdev","description":"Web Serial API realtime data graph","archived":false,"fork":false,"pushed_at":"2024-05-10T16:26:31.000Z","size":233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T21:06:10.614Z","etag":null,"topics":["api","arduino","graph","plot","real-time","realtime","serial","web"],"latest_commit_sha":null,"homepage":"https://serial.piotrp.dev","language":"TypeScript","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/piotrpdev.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}},"created_at":"2024-05-08T18:23:07.000Z","updated_at":"2024-05-10T01:34:34.000Z","dependencies_parsed_at":"2024-05-10T02:28:39.457Z","dependency_job_id":"6fd03b18-76ea-4de5-be0f-bfa014c0763c","html_url":"https://github.com/piotrpdev/realtime-serial-graph","commit_stats":null,"previous_names":["piotrpdev/realtime-serial-graph"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/piotrpdev/realtime-serial-graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2Frealtime-serial-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2Frealtime-serial-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2Frealtime-serial-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2Frealtime-serial-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrpdev","download_url":"https://codeload.github.com/piotrpdev/realtime-serial-graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrpdev%2Frealtime-serial-graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33050366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["api","arduino","graph","plot","real-time","realtime","serial","web"],"created_at":"2024-11-13T08:36:31.471Z","updated_at":"2026-05-15T01:36:27.502Z","avatar_url":"https://github.com/piotrpdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Realtime Serial Graph\r\n\r\n![demo](./.github/img/demo.png)\r\n\r\nWebsite that reads realtime data from a device (e.g. Arduino) using the [Web Serial API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API)\r\nand displays it nicely using [Dygraphs](https://github.com/danvk/dygraphs) and [PaperCSS](https://github.com/papercss/papercss).\r\n\r\n## Serial Data Format\r\n\r\nThe TypeScript code uses a custom [`Transformer`](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream#transformer) that extracts an [integer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt) inside two chevrons (`\"\u003c\"`, `\"\u003e\"`). If you don't want to make your own custom `Transformer` just send your serial data like this:\r\n\r\n```cpp\r\nSerial.print(\"\u003c\" + String(analogRead(A0)) + \"\u003e\");\r\n```\r\n\r\nAn example Arduino sketch is provided in [`./Heart_Rate_Display_Arduino/`](./Heart_Rate_Display_Arduino/), here is the source:\r\n\r\n```txt\r\nHeart_Rate_Display.ino\r\nDemo Program for AD8232 Heart Rate sensor.\r\nCasey Kuhns @ SparkFun Electronics\r\n6/27/2014\r\nhttps://github.com/sparkfun/AD8232_Heart_Rate_Monitor\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Frealtime-serial-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrpdev%2Frealtime-serial-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrpdev%2Frealtime-serial-graph/lists"}