{"id":13657932,"url":"https://github.com/p5-serial/p5.serialport","last_synced_at":"2025-10-26T14:30:28.956Z","repository":{"id":51741468,"uuid":"520598315","full_name":"p5-serial/p5.serialport","owner":"p5-serial","description":"Client for use with p5.serialserver","archived":false,"fork":false,"pushed_at":"2024-01-12T15:00:18.000Z","size":1480,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T20:13:36.717Z","etag":null,"topics":["arduino","javascript","p5","p5js","physicalcomputing","serial","serialport"],"latest_commit_sha":null,"homepage":"https://p5-serial.github.io/p5.serialport","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/p5-serial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-08-02T17:55:11.000Z","updated_at":"2025-01-28T16:42:27.000Z","dependencies_parsed_at":"2024-01-12T19:49:30.274Z","dependency_job_id":"af7f0e44-cf85-4a24-a8ed-3a91035fe384","html_url":"https://github.com/p5-serial/p5.serialport","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.027027027027026973","last_synced_commit":"9f13ee6416e72dd8027a1a910d079b91e8dfecf6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5-serial%2Fp5.serialport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5-serial%2Fp5.serialport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5-serial%2Fp5.serialport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p5-serial%2Fp5.serialport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p5-serial","download_url":"https://codeload.github.com/p5-serial/p5.serialport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238337756,"owners_count":19455366,"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":["arduino","javascript","p5","p5js","physicalcomputing","serial","serialport"],"created_at":"2024-08-02T05:00:53.661Z","updated_at":"2025-10-26T14:30:28.411Z","avatar_url":"https://github.com/p5-serial.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# p5.serialport\n\n## About\n\np5.serialport is a [p5.js](https://p5js.org/) library that enables communication between your p5.js sketch and Arduino microcontroller (or another serial enabled device).\n\nThis repository is part of the p5-serial project, for more info please visit https://github.com/p5-serial/p5-serial.github.io/\n\n## Installation\n\nYou don't need to install any dependencies!\n\nThe only prerrequisite for using with this library is first running a server using the companion library p5.serialserver, following the instructions on the repository [https://github.com/p5-serial/p5.serialserver](https://github.com/p5-serial/p5.serialserver).\n\n## Use\n\nAfter running the server, you can create a client using the p5.serialport library.\n\nWe recommend first trying the included [examples](https://github.com/p5-serial/p5.serialport/tree/main/examples) on this repository, which include live websites and Arduino code for testing the library.\n\nRemember that you will likely have to change the name of the serial port in the examples to the one your serial device is using.\n\nAfter you are familiarized with our examples, we suggest you use them as templates or basis of your own projects!\n\n## Methods\n\n```javascript\n// serial.read() returns a single byte of data (first in the buffer)\n// serial.readChar() returns a single char 'A', 'a'\n// serial.readBytes() returns all of the data available as an array of bytes\n// serial.readBytesUntil('\\n') returns all of the data available until a '\\n' (line break) is encountered\n// serial.readString() retunrs all of the data available as a string\n// serial.readStringUntil('\\n') returns all of the data available as a tring until a (line break) is encountered\n// serial.last() returns the last byte of data from the buffer\n// serial.lastChar() returns the last byte of data from the buffer as a char\n// serial.clear() clears the underlying serial buffer\n// serial.available() returns the number of bytes available in the buffer\n```\n\n## Contributions\n\nInfo about contributing is available at the main repository of this organization: [https://github.com/p5-serial/p5-serial.github.io/](https://github.com/p5-serial/p5-serial.github.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp5-serial%2Fp5.serialport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp5-serial%2Fp5.serialport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp5-serial%2Fp5.serialport/lists"}