{"id":19580231,"url":"https://github.com/xclud/dart_serial","last_synced_at":"2025-04-27T08:32:14.953Z","repository":{"id":61974796,"uuid":"449741969","full_name":"xclud/dart_serial","owner":"xclud","description":"Wrapper around the `window.navigator.serial` for flutter web.","archived":false,"fork":false,"pushed_at":"2025-04-03T14:36:21.000Z","size":5570,"stargazers_count":13,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T12:54:40.616Z","etag":null,"topics":["dart","flutter","serialport"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/serial","language":"Dart","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/xclud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-19T15:13:44.000Z","updated_at":"2025-04-05T07:25:45.000Z","dependencies_parsed_at":"2023-02-02T05:15:21.725Z","dependency_job_id":null,"html_url":"https://github.com/xclud/dart_serial","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/xclud%2Fdart_serial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_serial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_serial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_serial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/dart_serial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251112546,"owners_count":21538162,"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":["dart","flutter","serialport"],"created_at":"2024-11-11T07:24:29.002Z","updated_at":"2025-04-27T08:32:09.943Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"`serial` is a wrapper around the `window.navigator.serial`. This package does not provide any additional API, but merely helps to make the `dart:html` package work \"out of the box\" without the need of manually writing any javascript code.\n\n## Web Demo\n\n[Web Demo](https://serial.pwa.ir)\n\n## Requirements\n\nIn order to access serial ports on web, you need your web page to open from an HTTPS url.\n\n\u003e Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.\n\nMore information: [https://developer.mozilla.org/en-US/docs/Web/API/SerialPort](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort)\n\n## Usage\n\n``` dart\nimport 'dart:html';\nimport 'package:serial/serial.dart';\n\nfinal port = await window.navigator.serial.requestPort();\nawait port.open(baudRate: 9600);\n\nfinal writer = port.writable.writer;\n\nawait writer.ready;\nawait writer.write(Uint8List.fromList('Hello World.'.codeUnits));\n\nawait writer.ready;\nawait writer.close();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_serial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fdart_serial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_serial/lists"}