{"id":16017962,"url":"https://github.com/calimero-project/serial-ffm","last_synced_at":"2026-06-16T14:00:29.565Z","repository":{"id":150313014,"uuid":"591432196","full_name":"calimero-project/serial-ffm","owner":"calimero-project","description":"Serial communication library using the Foreign Function and Memory API","archived":false,"fork":false,"pushed_at":"2026-06-05T19:10:42.000Z","size":494,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-05T21:09:20.162Z","etag":null,"topics":["foreign-function-memory","java","java-native","java-panama","jdk19","jdk20","jdk22","jdk23","linux","macos","panama","serial","serial-communication","serial-port","windows"],"latest_commit_sha":null,"homepage":"","language":"Java","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/calimero-project.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":"2023-01-20T18:39:22.000Z","updated_at":"2026-06-05T19:10:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2ef8295-fd85-4884-bc81-a48a0438477a","html_url":"https://github.com/calimero-project/serial-ffm","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/calimero-project/serial-ffm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calimero-project%2Fserial-ffm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calimero-project%2Fserial-ffm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calimero-project%2Fserial-ffm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calimero-project%2Fserial-ffm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calimero-project","download_url":"https://codeload.github.com/calimero-project/serial-ffm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calimero-project%2Fserial-ffm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34408788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["foreign-function-memory","java","java-native","java-panama","jdk19","jdk20","jdk22","jdk23","linux","macos","panama","serial","serial-communication","serial-port","windows"],"created_at":"2024-10-08T16:24:20.051Z","updated_at":"2026-06-16T14:00:29.540Z","avatar_url":"https://github.com/calimero-project.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Serial port communication using the Foreign Function and Memory API [![](https://jitpack.io/v/calimero-project/serial-ffm.svg)](https://jitpack.io/#calimero-project/serial-ffm) [![](https://img.shields.io/badge/jitpack-master-brightgreen?label=JitPack)](https://jitpack.io/#calimero-project/serial-ffm/master)\n=====\n\nThis Java library provides serial port access for Linux, macOS, and Windows using Java's [Foreign Function \u0026 Memory (FFM) API](https://openjdk.org/jeps/454)\n([`java.lang.foreign`](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/foreign/package-summary.html)).\n\n`serial-ffm` requires Java 23 (_java.base_) or newer. \n(Older versions exist for [JDK 19](https://github.com/calimero-project/serial-ffm/tree/jdk19), [JDK 21](https://github.com/calimero-project/serial-ffm/tree/jdk21), and [JDK 22](https://github.com/calimero-project/serial-ffm/releases/tag/jdk22)). \nThe implementation is a port of the [serial-native](https://github.com/calimero-project/serial-native) C libraries written to use JNI.\n\nThe Java bindings from native library headers are generated using [jextract](https://github.com/openjdk/jextract), leveraging the [gradle-jextract](https://plugins.gradle.org/plugin/io.github.krakowski.jextract) plugin in the gradle build file.\n\n\n### Build with Gradle \n\n    ./gradlew build -x test\n\nJextract is not run by default; to run it, pass `-PrunJextract`.\n\n### Examples\n\nUsing a serial port named _portId_ in a try-with-resources statement:\n\n```java\ntry (var port = SerialPort.open(portId)\n                          .baudrate(19_200)\n                          .databits(8)\n                          .parity(Parity.Even)\n                          .stopbits(StopBits.One)\n                          .flowControl(FlowControl.None)) {\n\n    var in = port.inputStream();\n    var out = port.outputStream();\n    // use streams ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalimero-project%2Fserial-ffm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalimero-project%2Fserial-ffm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalimero-project%2Fserial-ffm/lists"}